.work-gallery { padding: clamp(48px, 7vw, 96px) 0; background: #151719; color: #fff; }
.work-gallery .gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.work-gallery .eyebrow { color: #d4ae72; }
.home-page .work-gallery h2 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; }
.gallery-heading > p { max-width: 330px; color: #c6c8ca; font-size: .95rem; }
.gallery-stage { position: relative; background: #0b0c0d; border: 1px solid #393b3d; overflow: hidden; }
.gallery-photo-link { display: block; width: 100%; cursor: zoom-in; }
.gallery-photo { display: block; width: 100%; height: clamp(300px, 49vw, 650px); object-fit: contain; }
.gallery-expand { position: absolute; right: 18px; top: 18px; padding: 10px 16px; color: white; background: #151719db; border: 1px solid #ffffff55; border-radius: 30px; pointer-events: none; font-size: .8rem; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.gallery-caption { margin: 0; font-size: 1rem; color: #eee; }
.gallery-position { color: #d4ae72; font-size: .78rem; letter-spacing: .12em; margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.gallery-controls { display: flex; gap: 10px; flex-shrink: 0; }
.gallery-controls[hidden] { display: none; }
.gallery-button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #77716a; border-radius: 50%; background: transparent; color: white; cursor: pointer; font: inherit; font-size: 1.4rem; transition: background .2s, color .2s; }
.gallery-button:hover { background: #d4ae72; color: #151719; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 5px 3px 16px; scrollbar-color: #b18b52 #292b2d; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 112px; border: 2px solid transparent; padding: 3px; opacity: .55; transition: opacity .2s, border-color .2s; }
.gallery-thumb:hover, .gallery-thumb[aria-current="true"] { opacity: 1; border-color: #d4ae72; }
.gallery-thumb img { width: 100%; height: 72px; object-fit: cover; display: block; }
.work-gallery a:focus-visible, .work-gallery button:focus-visible, .gallery-dialog button:focus-visible { outline: 3px solid #ecc990; outline-offset: 4px; }
.gallery-hint { color: #aeb1b4; font-size: .75rem; margin: 12px 0 0; }
.gallery-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; padding: 20px; background: #0c0e10; color: #fff; }
.gallery-dialog::backdrop { background: #0c0e10f5; }
.gallery-dialog[open] { display: flex; flex-direction: column; }
.gallery-dialog-header, .gallery-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gallery-dialog-header p { margin: 0; color: #d4ae72; }
.gallery-dialog img { width: 100%; flex: 1; min-height: 0; object-fit: contain; margin: 16px 0; }
.gallery-dialog-footer p { margin: 0; }
@media (max-width: 600px) {
  .work-gallery .gallery-heading { display: block; }
  .gallery-heading > p { margin-bottom: 0; }
  .gallery-photo { height: 360px; height: min(110vw, 480px); }
  .gallery-expand { right: 10px; top: 10px; font-size: .7rem; }
  .gallery-thumb { flex-basis: 88px; }
  .gallery-thumb img { height: 60px; }
  .gallery-toolbar { gap: 12px; }
  .gallery-caption, .gallery-dialog-footer p { font-size: .85rem; }
  .gallery-dialog { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .work-gallery *, .gallery-dialog * { transition: none; scroll-behavior: auto; } }
