/* Actual screenshots only. No synthetic screen content or duplicate viewport substitutions. */
.project-device-gallery{--edge:#655c47;--metal:#191917;--ink:#0b0b0a;color:#f4eedf;max-width:1200px;margin:0 auto;padding:32px 20px}
.project-device-gallery h3{font-size:clamp(28px,4vw,48px);margin:0 0 12px}.project-device-gallery .status{color:#dec493;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.device-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.42fr) minmax(0,.22fr);gap:20px;align-items:end;padding:30px 0 22px}
.device{margin:0;min-width:0}.device-frame{background:var(--metal);border:1px solid var(--edge);padding:9px;border-radius:14px;box-shadow:0 18px 34px #0008;position:relative}
.device-screen{display:block;width:100%;height:auto;background:var(--ink);border-radius:5px;object-fit:contain}.device button{font:inherit;color:inherit;cursor:zoom-in;width:100%;display:block}.device button:focus-visible{outline:3px solid #f3cf79;outline-offset:6px}
.device-laptop .device-frame{border-radius:13px 13px 3px 3px}.device-laptop .device-base{height:12px;background:linear-gradient(#777267,#242421);border:1px solid #8d8270;border-radius:2px 2px 70% 70%;margin:0 -5%;position:relative}.device-laptop .device-base:after{content:'';position:absolute;left:40%;right:40%;top:0;height:3px;background:#171714;border-radius:0 0 4px 4px}
.device-tablet .device-frame{padding:10px;border-radius:20px}.device-phone .device-frame{padding:7px;border-radius:23px}.device-phone .device-screen{border-radius:16px}.device figcaption{font-size:12px;color:#c9c2b4;text-align:center;margin:14px 0 0}
.device-description{font-size:14px;line-height:1.6;color:#c9c2b4;max-width:760px}
@media(max-width:700px){.device-scene{display:flex;flex-wrap:wrap;gap:18px;max-width:520px;margin:auto;align-items:flex-end}.device-laptop{width:100%;flex:none}.device-phone{width:34%;max-width:155px;flex:none}.device-tablet{width:60%;max-width:260px;flex:none}.project-device-gallery{padding:24px 16px}.device-frame{padding:6px}.device-tablet .device-frame{padding:7px}.device-phone .device-frame{padding:5px;border-radius:18px}.device-phone .device-screen{border-radius:13px}}
@media(prefers-reduced-motion:no-preference){.device button{transition:border-color .2s}.device button:hover{border-color:#dec493}}

/* Scope to new showcase; do not alter forms or unrelated page styles. */
.project-device-gallery{padding:24px 0;max-width:100%;width:100%;grid-column:1/-1;min-width:0}
.project-device-gallery .device-frame{display:block;text-decoration:none}.project-device-gallery .device-screen{height:auto!important;max-height:none!important;width:100%!important;object-fit:contain;border:0;background:#0b0b0a}
.project-device-gallery .device{padding:0;background:none;border:0;min-width:0}.project-device-gallery figcaption{font-family:inherit;letter-spacing:0;text-transform:none;line-height:1.5;padding:0}
.project-device-gallery .device-description{font-size:14px;line-height:1.6;letter-spacing:0;text-transform:none;max-width:760px}
.project-device-gallery a:focus-visible{outline:3px solid #f3cf79;outline-offset:5px}.second-project.has-device-gallery{display:block}.second-project.has-device-gallery>div:first-child{max-width:650px;margin-bottom:20px}.project-grid>article.has-device-gallery:first-child{display:block}.cowboys-editorial.has-device-gallery{display:block}.has-device-gallery .cowboys-story{max-width:760px}.has-device-gallery .cowboys-story p{max-width:760px}
.preview-dialog:not([open]){display:none}.preview-dialog{color:#f4eedf;background:#11130f;border:1px solid #c5aa70;padding:24px;max-width:1100px;width:calc(100% - 40px);max-height:90vh;overflow:auto}.preview-dialog::backdrop{background:#000d}.preview-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#11130f}.preview-dialog h2{font:20px Arial,sans-serif}.preview-close{font:14px Arial,sans-serif;background:#d1b776;color:#111;border:0;padding:14px;min-height:44px;cursor:pointer}.preview-full{display:block;max-width:100%;height:auto;margin:20px auto}.preview-original{color:#ddc799;padding:14px 0;font-size:14px}.preview-hint{font-size:13px}.preview-close:focus-visible{outline:3px solid white;outline-offset:4px}
@media(max-width:700px){.project-device-gallery .device-base{margin:0}.project-device-gallery{padding:20px 0}.project-device-gallery .device-scene{gap:16px}.project-device-gallery .device-description{font-size:13px}}
.second-project .project-device-gallery .device{width:auto}.second-project .project-device-gallery .device-description{max-width:760px}.second-project .project-device-gallery .device-screen{border:0}
@media(max-width:700px){.second-project .project-device-gallery .device-laptop{width:100%}.second-project .project-device-gallery .device-tablet{width:60%}.second-project .project-device-gallery .device-phone{width:34%}}
