html.gallery-page,.gallery-page body{background:#fff;color:#171717}
.gallery-page{--gallery-header-height:calc(72px * var(--header-scale,1))}
.gallery-main,.gallery-footer{width:min(1180px,calc(100% - 80px));margin-inline:auto}
.gallery-main{min-height:calc(100svh - 90px);padding:calc(var(--gallery-header-height) + 36px) 0 64px}
.gallery-back{display:inline-flex;align-items:center;gap:10px;min-height:38px;padding:2px 16px 0;border:1px solid #dedede;border-radius:3px;background:#fafafa;color:#555;font:400 13px/1 D-DIN,Arial,sans-serif;text-transform:uppercase;text-decoration:none;transition:background .18s,color .18s}
.gallery-back svg,.gallery-pagination svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.gallery-back:hover{background:#171717;color:#fff;border-color:#171717}
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:40px 0 32px}
.gallery-heading h1{margin:0;font:400 clamp(36px,4vw,54px)/1.1 D-DIN,Arial,sans-serif;letter-spacing:-.025em;text-transform:uppercase}
.gallery-heading p{margin:14px 0 0;color:#777;font-size:17px;line-height:1.6}
.gallery-heading #gallery-status{flex-shrink:0;margin:0 0 3px;font-size:14px;color:#777;font-variant-numeric:tabular-nums}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 22px;outline:none}
.gallery-card{margin:0;min-width:0}
.gallery-media{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#f3f3f3;isolation:isolate}
.gallery-media video{display:block;width:100%;height:100%;object-fit:contain;background:#111}
.gallery-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;color:#777;font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums}
.gallery-card h2{margin:0;font:400 14px/1.4 D-DIN,Arial,sans-serif;letter-spacing:.04em;color:#555}
.gallery-error{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;text-align:center;background:#f5f5f5;color:#555;font-size:14px}
.gallery-error[hidden]{display:none}
.gallery-error button{padding:8px 16px;border:1px solid #ccc;border-radius:3px;color:inherit;background:transparent;font:inherit;cursor:pointer}
.gallery-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:44px}
.gallery-pagination a,.gallery-pagination>span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid transparent;border-radius:3px;color:#777;background:transparent;font-size:14px;text-decoration:none;transition:background .18s,color .18s}
.gallery-pagination a:hover{background:#f3f3f3;color:#171717}
.gallery-pagination a[aria-current=page]{background:#171717;color:#fff;border-color:#171717}
.gallery-pagination .page-direction{border-color:#dedede;background:#fafafa}
.gallery-pagination [aria-disabled=true]{opacity:.35}
.gallery-footer{display:flex;justify-content:space-between;gap:24px;padding:18px 0 28px;color:#888;font-size:12px;line-height:1.5}
.gallery-footer a{color:inherit;text-decoration:none}
.gallery-footer a:hover{text-decoration:underline;text-underline-offset:3px}
.gallery-page :is(.gallery-back,.gallery-pagination a,.gallery-error button):focus-visible{outline:2px solid #777;outline-offset:4px}
.gallery-message{grid-column:1/-1;padding:64px 0;color:#777;line-height:1.6}
@media(min-width:1025px) and (pointer:fine){.macbook-pro-14.gallery-page{--gallery-header-height:calc(104px * var(--header-scale,1))}}
@media(max-width:1024px),(pointer:coarse) and (max-width:1366px){.gallery-page{--gallery-header-height:calc(64px + env(safe-area-inset-top))}}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.gallery-main,.gallery-footer{width:calc(100% - 40px)}.gallery-main{padding-top:calc(var(--gallery-header-height) + 28px)}.gallery-heading{display:block;margin:32px 0 28px}.gallery-heading #gallery-status{margin-top:20px}.gallery-heading p{font-size:16px}.gallery-grid{gap:28px 18px}.gallery-pagination{gap:4px;margin-top:32px}.gallery-pagination a,.gallery-pagination>span{min-width:34px;height:38px;padding-inline:8px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:1fr}.gallery-pagination{max-width:350px;margin-inline:auto}.gallery-footer{flex-direction:column;gap:10px}}
@media(prefers-reduced-motion:reduce){.gallery-page{scroll-behavior:auto}.gallery-page *{transition:none!important}}
