.gallery-page{
  display:flex;
  flex-direction:column;
  gap:28px;
}

/* Gallery wings share the existing poster frames and museum plaques. */
.gallery-page [hidden],
#gallery-lightbox-film[hidden]{ display:none !important; }

.gallery-wing-switch{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}

.gallery-wing-switch .btn{
  min-height:44px;
  white-space:normal;
  line-height:1.35;
  text-align:center;
}

.gallery-wing-switch .btn[aria-pressed="false"]{
  color:#d9d2c5;
  border-color:#675b45;
  background:#171b21;
}

.gallery-wing-switch .btn:focus-visible,
.gallery-norm-film:focus-visible,
#gallery-lightbox-film:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:4px;
}

.gallery-norm-heading{ margin:0 auto 24px; max-width:1024px; }
.gallery-norm-heading h2{ margin:4px 0 8px; color:#f5ead5; font-size:clamp(1.45rem,3vw,2rem); line-height:1.2; }
.gallery-norm-heading p{ margin:0; color:#c9c1b2; }
.gallery-norm-kicker{ color:#e7c477; font-size:.72rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
#gallery-norm-content{ display:grid; gap:32px; }

.family-portraits{
  box-sizing:border-box;
  width:100%;
  max-width:1024px;
  margin:0 auto 32px;
  padding:clamp(12px,3vw,24px);
  border:1px solid #675b45;
  border-radius:18px;
  background:linear-gradient(180deg,#201e1b,#11141c);
}

.family-portraits h3{
  margin:0 0 12px;
  color:#f5ead5;
}

.family-portrait{margin:0;}
.family-portrait img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2 / 1;
  border-radius:12px;
  background:#121114;
}

.family-portrait figcaption{
  margin:10px 0 0;
  color:#f5ead5;
  font-weight:700;
}

.family-portraits-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  margin-top:8px;
}

.family-portraits-controls[hidden]{display:none;}
.family-portraits-position{color:#c9c1b2;}
.family-portraits-buttons{display:flex;flex-wrap:wrap;gap:6px;}
.family-portraits-buttons button{
  min-height:44px;
  padding:0 10px;
  color:#f5ead5;
  background:#25211a;
  border:1px solid #675b45;
  border-radius:8px;
  font:inherit;
  cursor:pointer;
}
.family-portraits-buttons button:hover{background:#392e1c;}
.family-portraits-buttons button:focus-visible{
  outline:2px solid var(--gold,#ffcd52);
  outline-offset:2px;
}

.gallery-norm-card .gallery-poster-frame{ aspect-ratio:auto; }
.gallery-norm-card .gallery-poster-image{ height:auto; object-fit:contain; }
.gallery-norm-card{ width:100%; }
.gallery-norm-card .gallery-poster-image{ aspect-ratio:9 / 16; }
.gallery-norm-card .gallery-card-meta{ margin-bottom:8px; }
.gallery-norm-film{ display:block; width:fit-content; max-width:calc(100% - 32px); margin:0 auto 12px; padding:12px 4px; color:#e7c477; text-align:center; font-size:.82rem; line-height:1.4; font-weight:800; text-underline-offset:4px; }

/* Norm portrait artwork keeps its native ratio. */
.gallery-lightbox.is-norm{ display:grid; place-items:center; padding:64px 16px 16px; overflow:auto; }
.gallery-lightbox.is-norm[hidden]{ display:none; }
.gallery-lightbox.is-norm .gallery-lightbox-dialog{ display:flex; flex-direction:column; align-items:center; margin:0; width:100%; min-width:0; max-width:1400px; }
.gallery-lightbox.is-norm .gallery-lightbox-frame{ padding:12px; max-width:100%; }
.gallery-lightbox.is-norm .gallery-lightbox-frame::before{ inset:12px; }
.gallery-lightbox.is-norm .gallery-lightbox-image{ width:auto; height:auto; max-width:calc(100vw - 64px); max-height:calc(100dvh - 312px); object-fit:contain; }
.gallery-lightbox.is-norm .gallery-lightbox-meta{ width:fit-content; min-width:0; max-width:min(calc(100vw - 64px),720px); margin-top:12px; padding:12px 20px; overflow-wrap:break-word; }
#gallery-lightbox-film{ display:block; margin-top:6px; padding:8px 2px; color:#231705; font-size:.85rem; font-weight:900; text-underline-offset:3px; }
.gallery-lightbox.is-norm .gallery-lightbox-controls{ display:flex; justify-content:center; gap:24px; margin-top:12px; }
.gallery-lightbox.is-norm .gallery-lightbox-nav{ position:static; transform:none; width:48px; height:48px; flex-shrink:0; }

@media (max-width:1000px) and (min-width:641px){
  .gallery-norm-wing .gallery-norm-grid{ grid-template-columns:repeat(2,minmax(0,320px)); gap:24px; }
}
@media (max-width:640px){
  .gallery-wing-switch{ flex-direction:column; margin-bottom:4px; }
  .gallery-wing-switch .btn{ width:100%; }
}
@media (max-height:500px){
  .gallery-lightbox.is-norm{ padding-top:56px; }
  .gallery-lightbox.is-norm .gallery-lightbox-dialog{ display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,220px); gap:8px 16px; align-items:center; justify-items:center; width:fit-content; max-width:100%; }
  .gallery-lightbox.is-norm .gallery-lightbox-frame{ grid-row:1 / 3; }
  .gallery-lightbox.is-norm .gallery-lightbox-image{ max-height:calc(100dvh - 104px); max-width:calc(100vw - 320px); }
  .gallery-lightbox.is-norm .gallery-lightbox-meta{ margin:0; width:100%; max-width:220px; }
  .gallery-lightbox.is-norm .gallery-lightbox-controls{ margin:0; }
}

.gallery-hero{
  --site-page-hero-accent-rgb:196,170,120;
  --site-page-hero-secondary-rgb:168,85,247;
  margin:0;
}

.gallery-page-title{
  color:#ffffff;
}

.gallery-filter-bar{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin:-8px 0 0;
  padding:15px 18px;
  border:1px solid rgba(196,170,120,.18);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(24,25,28,.96),rgba(14,15,17,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 24px rgba(0,0,0,.18);
}

.gallery-filter-bar label{
  display:grid;
  gap:6px;
  min-width:min(100%,240px);
}

.gallery-filter-bar label > span{
  color:#c4aa78;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.gallery-filter-bar select{
  min-height:44px;
  padding:9px 36px 9px 12px;
  border:1px solid rgba(196,170,120,.30);
  border-radius:12px;
  color:#f3eee4;
  background:#111318;
  font:inherit;
  font-weight:800;
}

.gallery-filter-bar p{
  margin:0 0 10px;
  color:#aaa395;
  font-size:.86rem;
  font-weight:750;
}

.gallery-hero .site-page-hero-description{
  color:#cec7bb;
}

.gallery-shell{
  margin:0;
  border-color:rgba(196,170,120,.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,236,196,.07), transparent 20%),
    radial-gradient(circle at 50% 0%, rgba(255,233,190,.08), transparent 24%),
    radial-gradient(circle at 82% 0%, rgba(255,236,196,.07), transparent 20%),
    linear-gradient(180deg, rgba(44,46,49,.16), rgba(44,46,49,0) 18%),
    linear-gradient(180deg, rgba(25,26,28,.988), rgba(11,12,14,.996));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.022),
    inset 0 0 0 1px rgba(255,255,255,.012),
    0 14px 34px rgba(0,0,0,.30),
    0 0 0 1px rgba(196,170,120,.05);
}

.gallery-shell::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(255,255,255,.02);
  border-radius:14px;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,0) 20%);
}

.gallery-shell::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.05) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 42%, rgba(255,255,255,.035) 0 1px, transparent 1px),
    radial-gradient(circle at 42% 78%, rgba(255,255,255,.04) 0 1px, transparent 1px);
  background-size:26px 26px, 32px 32px, 28px 28px;
  mix-blend-mode:soft-light;
}

.gallery-groups{
  display:grid;
  gap:40px;
  padding:4px 2px 2px;
}

.gallery-progressive-controls{
  display:flex;
  justify-content:center;
  padding:2px 0 10px;
}

.gallery-progressive-controls .btn{
  min-width:min(100%,270px);
}

.gallery-year-group{
  display:grid;
  gap:18px;
}

.gallery-coming-group{
  position:relative;
  margin:0 0 6px;
  padding:24px;
  border:1px solid rgba(196,150,72,.34);
  border-radius:20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(196,150,72,.10), transparent 31%),
    radial-gradient(circle at 12% 0%, rgba(255,236,196,.07), transparent 29%),
    linear-gradient(135deg, #27241e 0%, #30291f 52%, #1d1b18 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 0 0 1px rgba(113,78,24,.10),
    0 14px 30px rgba(0,0,0,.24);
}

.gallery-coming-head > div{
  background:linear-gradient(135deg, #172554, #2563eb 28%, #a855f7 70%, #3b0764);
  border-color:rgba(147,197,253,.60);
}

.gallery-coming-head .gallery-year-kicker{
  color:#2b1a06;
  text-shadow:0 1px 0 rgba(255,239,190,.58);
}

.gallery-coming-head .gallery-year-title{
  color:#160e04;
  font-weight:800;
  text-shadow:
    0 1px 0 rgba(255,239,190,.62),
    0 2px 4px rgba(53,31,5,.20);
}

.gallery-coming-copy{
  max-width:760px;
  margin:-4px 0 0;
  color:#d1c8b8;
  line-height:1.55;
}

.gallery-coming-group .gallery-year-rule{
  background:linear-gradient(90deg, rgba(227,179,65,.32), rgba(196,150,72,.13) 58%, transparent 100%);
}

.gallery-card-coming{
  border-color:rgba(227,179,65,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.28), 0 0 22px rgba(227,179,65,.10);
}

@media (max-width:640px){
  .gallery-coming-group{ padding:16px; }
}

.gallery-year-head{
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.gallery-year-kicker{
  display:inline-block;
  margin:0 0 6px;
  color:#4b3411;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
}

.gallery-year-title{
  margin:0;
  color:#2f1f07;
  font-family:Georgia, "Times New Roman", serif;
  font-size:1.18rem;
  line-height:1.1;
  letter-spacing:.01em;
  text-align:center;
}

.gallery-year-head > div{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:170px;
  padding:14px 22px 13px;
  border:1px solid rgba(146,108,42,.64);
  border-radius:0;
  background:
    linear-gradient(135deg, rgba(106,72,24,.98) 0%, rgba(196,150,72,.98) 18%, rgba(239,210,142,.98) 34%, rgba(170,122,48,.98) 52%, rgba(92,60,18,.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,244,210,.28),
    inset 0 -1px 0 rgba(68,42,10,.42),
    0 10px 22px rgba(0,0,0,.20);
  clip-path:polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.gallery-year-head.gallery-coming-head{
  justify-content:center;
}

.gallery-year-head.gallery-coming-head > div{
  box-shadow:
    inset 0 1px 0 rgba(255,244,210,.28),
    inset 0 -1px 0 rgba(68,42,10,.42);
}

.gallery-year-head > div::before,
.gallery-year-head > div::after{
  content:"";
  position:absolute;
  top:10px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,245,214,.95), rgba(204,164,82,.92) 38%, rgba(112,76,24,.98) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.35),
    0 1px 2px rgba(0,0,0,.35);
}

.gallery-year-head > div::before{
  left:10px;
}

.gallery-year-head > div::after{
  right:10px;
}

.gallery-year-rule{
  height:1px;
  background:linear-gradient(90deg, rgba(196,170,120,.36), rgba(255,255,255,.06) 52%, transparent 100%);
}

.gallery-year-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 320px));
  justify-content:center;
  gap:30px 32px;
}

.gallery-card{
  position:relative;
  overflow:visible;
  border:1px solid rgba(255,255,255,.035);
  border-radius:18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,236,196,.04), transparent 18%),
    linear-gradient(180deg, rgba(28,29,31,.86), rgba(15,16,18,.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.012),
    inset 0 0 0 1px rgba(255,255,255,.008),
    0 8px 20px rgba(0,0,0,.18);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  max-width:320px;
  margin:0 auto;
}

.gallery-card:hover{
  transform:translateY(-3px);
  border-color:rgba(196,170,120,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.016),
    inset 0 0 0 1px rgba(255,255,255,.01),
    0 12px 26px rgba(0,0,0,.24);
}

.gallery-card::before{
  content:"";
  position:absolute;
  top:8px;
  left:50%;
  width:72%;
  height:110px;
  transform:translateX(-50%);
  pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(255,231,180,.12) 0%, rgba(255,231,180,.035) 42%, transparent 72%);
  filter:blur(8px);
  opacity:.9;
}

.gallery-poster-button{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:none;
  background:none;
  cursor:pointer;
  text-align:left;
}

.gallery-poster-button:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:4px;
  border-radius:12px;
}

.gallery-poster-frame{
  position:relative;
  aspect-ratio:2 / 3;
  overflow:hidden;
  margin:18px 18px 0;
  padding:14px;
  border-radius:10px;
  background:
    linear-gradient(135deg, #6b4a18 0%, #c89b3c 18%, #f2dd9b 34%, #9a6d26 52%, #5c3d12 100%);
  box-shadow:
    inset 0 0 0 2px rgba(62,40,10,.55),
    inset 0 0 0 8px rgba(201,160,72,.22),
    0 14px 24px rgba(0,0,0,.26);
}

.gallery-poster-frame::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(66,44,14,.55);
  pointer-events:none;
  z-index:2;
  box-shadow:
    inset 0 0 0 1px rgba(255,235,170,.12),
    0 0 0 1px rgba(0,0,0,.18);
}

.gallery-poster-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  position:relative;
  z-index:1;
  border:2px solid rgba(28,18,10,.70);
  box-shadow:
    0 6px 16px rgba(0,0,0,.28);
}

.gallery-card-meta{
  position:relative;
  margin:14px 16px 18px;
  padding:15px 18px 14px;
  text-align:center;
  border:1px solid rgba(146,108,42,.62);
  border-radius:0;
  background:
    linear-gradient(135deg, rgba(98,66,22,.98) 0%, rgba(188,144,68,.98) 18%, rgba(228,198,132,.98) 34%, rgba(162,116,46,.98) 52%, rgba(86,56,18,.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,244,210,.24),
    inset 0 -1px 0 rgba(68,42,10,.36),
    0 8px 16px rgba(0,0,0,.18);
  clip-path:polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.gallery-card-meta::before,
.gallery-card-meta::after{
  content:"";
  position:absolute;
  top:10px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,245,214,.95), rgba(204,164,82,.92) 38%, rgba(112,76,24,.98) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.35),
    0 1px 2px rgba(0,0,0,.35);
}

.gallery-card-meta::before{
  left:10px;
}

.gallery-card-meta::after{
  right:10px;
}

.gallery-card-label{
  margin:0 0 6px;
  color:#46300f;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  text-align:center;
}

.gallery-card-title{
  margin:0 0 4px;
  color:#2b1c06;
  font-family:Georgia, "Times New Roman", serif;
  font-size:.96rem;
  line-height:1.22;
  letter-spacing:.01em;
  text-align:center;
}

.gallery-card-subline{
  margin:0;
  color:#584016;
  font-size:.74rem;
  line-height:1.28;
  letter-spacing:.10em;
  text-transform:uppercase;
  text-align:center;
}

.gallery-card-date{
  margin:0;
  color:#c9c1b2;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.gallery-empty{
  padding:20px 0 4px;
  color:var(--muted);
}

.gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:12000;
}

.gallery-lightbox[hidden]{
  display:none;
}

.gallery-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,235,195,.06), transparent 18%),
    radial-gradient(circle at 50% 34%, rgba(255,235,195,.03), transparent 30%),
    #000000;
}

.gallery-lightbox-dialog{
  position:relative;
  z-index:2;
  width:max-content;
  max-width:92vw;
  margin:3vh auto 0;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.gallery-lightbox-frame{
  position:relative;
  display:inline-block;
  padding:18px;
  border-radius:10px;
  background:
    linear-gradient(135deg, #6b4a18 0%, #c89b3c 18%, #f2dd9b 34%, #9a6d26 52%, #5c3d12 100%);
  box-shadow:
    inset 0 0 0 2px rgba(62,40,10,.55),
    inset 0 0 0 8px rgba(201,160,72,.22),
    0 18px 38px rgba(0,0,0,.50);
}

.gallery-lightbox-frame::before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(66,44,14,.55);
  pointer-events:none;
  z-index:2;
  box-shadow:
    inset 0 0 0 1px rgba(255,235,170,.12),
    0 0 0 1px rgba(0,0,0,.18);
}

.gallery-lightbox-image{
  width:auto;
  max-width:min(88vw, 720px);
  max-height:78vh;
  height:auto;
  display:block;
  position:relative;
  z-index:1;
  border:2px solid rgba(28,18,10,.70);
  box-shadow:
    0 6px 16px rgba(0,0,0,.28);
  background:#090b10;
}

.gallery-lightbox-meta{
  position:relative;
  width:max-content;
  max-width:min(88vw, 720px);
  margin:16px auto 0;
  padding:15px 22px 14px;
  text-align:center;
  border:1px solid rgba(146,108,42,.62);
  border-radius:0;
  background:
    linear-gradient(135deg, rgba(98,66,22,.98) 0%, rgba(188,144,68,.98) 18%, rgba(228,198,132,.98) 34%, rgba(162,116,46,.98) 52%, rgba(86,56,18,.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,244,210,.24),
    inset 0 -1px 0 rgba(68,42,10,.36),
    0 8px 16px rgba(0,0,0,.18);
  clip-path:polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.gallery-lightbox-meta::before,
.gallery-lightbox-meta::after{
  content:"";
  position:absolute;
  top:10px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,245,214,.95), rgba(204,164,82,.92) 38%, rgba(112,76,24,.98) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.35),
    0 1px 2px rgba(0,0,0,.35);
}

.gallery-lightbox-meta::before{
  left:10px;
}

.gallery-lightbox-meta::after{
  right:10px;
}

.gallery-lightbox-meta h3{
  margin:0 0 4px;
  color:#2b1c06;
  font-family:Georgia, "Times New Roman", serif;
  font-size:1.02rem;
  line-height:1.22;
  letter-spacing:.01em;
  text-align:center;
}

.gallery-lightbox-meta p{
  margin:0;
  color:#584016;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:.74rem;
  text-align:center;
}

.gallery-lightbox-close{
  position:absolute;
  top:16px;
  right:18px;
  z-index:3;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-size:1.65rem;
  line-height:1;
  color:#ffffff;
  background:
    linear-gradient(180deg, rgba(54,56,60,.96), rgba(22,23,26,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(0,0,0,.32),
    0 0 0 1px rgba(196,170,120,.10);
}

.gallery-lightbox-nav{
  position:fixed;
  top:50%;
  z-index:3;
  width:56px;
  height:56px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translateY(-50%);
  font-size:2.3rem;
  line-height:1;
  color:#f5f2eb;
  background:
    linear-gradient(180deg, rgba(54,56,60,.96), rgba(22,23,26,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 24px rgba(0,0,0,.34),
    0 0 0 1px rgba(196,170,120,.10);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease;
}

.gallery-lightbox-prev{
  left:28px;
}

.gallery-lightbox-next{
  right:28px;
}

.gallery-lightbox-nav:hover{
  transform:translateY(-50%) scale(1.04);
  background:
    linear-gradient(180deg, rgba(72,74,78,.98), rgba(26,27,30,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 28px rgba(0,0,0,.38),
    0 0 0 1px rgba(196,170,120,.16);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible{
  outline:3px solid #ffffff;
  outline-offset:4px;
}

.gallery-lightbox-nav:disabled{
  opacity:.28;
  cursor:default;
  transform:translateY(-50%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 6px 14px rgba(0,0,0,.22),
    0 0 0 1px rgba(196,170,120,.06);
}

@media (max-width:1000px){
  .gallery-year-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 320px));
    justify-content:center;
    gap:30px 32px;
    align-items:start;
  }
}

@media (max-width:640px){
  .gallery-filter-bar{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }

  .gallery-filter-bar label{
    width:100%;
    max-width:none;
  }

  .gallery-filter-bar p{
    margin:0;
  }

  .gallery-year-grid{
    grid-template-columns:minmax(0, 320px);
    gap:22px;
  }

  .gallery-year-title{
    font-size:1.6rem;
  }

  .gallery-year-head > div{
    min-width:150px;
    padding:12px 18px 11px;
  }
  
  .gallery-lightbox-dialog{
    width:max-content;
    max-width:calc(100vw - 28px);
    margin:3vh auto 0;
    padding:0;
    text-align:center;
  }

  .gallery-lightbox-image{
    /* Leave room for both 18px frame edges and 14px viewport gutters. */
    max-width:calc(100vw - 64px);
    /* Reserve vertical space for the frame, caption, and phone controls. */
    max-height:min(78vh, calc(97dvh - 200px));
  }

  .gallery-lightbox-nav{
    position:static;
    width:48px;
    height:48px;
    font-size:2rem;
    transform:none;
  }

  .gallery-lightbox-nav:hover,
  .gallery-lightbox-nav:disabled{
    transform:none;
  }

  .gallery-lightbox-controls{
    display:flex;
    justify-content:center;
    gap:24px;
    margin-top:16px;
  }

  .gallery-lightbox-prev{
    left:14px;
  }

  .gallery-lightbox-next{
    right:14px;
  }

  .gallery-card-meta{
    padding:14px 16px 13px;
  }

  .gallery-lightbox-meta{
    max-width:min(90vw, 720px);
    padding:14px 18px 13px;
  }
}

/* =========================================
   GALLERY WINNER BADGES — MUSEUM PLATE
========================================= */

.gallery-card-meta.has-winner-badges {
  min-height: 76px;
  padding-left: 72px;
}

.gallery-winner-badges {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.gallery-winner-badges-one {
  width: 46px;
  height: 46px;
}

.gallery-winner-badges-multi {
  width: 58px;
  min-height: 40px;
  flex-wrap: wrap;
  gap: 0;
}

.gallery-winner-avatar-wrap,
.gallery-winner-unknown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.20), transparent 30%),
    linear-gradient(180deg, rgba(18,20,24,.98), rgba(4,6,10,.98));
  border: 2px solid rgba(255,244,210,.76);
  box-shadow:
    0 3px 8px rgba(0,0,0,.34),
    0 0 0 1px rgba(64,42,12,.50),
    inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}

.gallery-winner-badges-one .gallery-winner-avatar-wrap,
.gallery-winner-badges-one .gallery-winner-unknown {
  width: 46px;
  height: 46px;
}

.gallery-winner-badges-multi .gallery-winner-avatar-wrap,
.gallery-winner-badges-multi .gallery-winner-unknown {
  width: 34px;
  height: 34px;
  margin-right: -8px;
  margin-bottom: -4px;
}

.gallery-winner-badges-multi .gallery-winner-avatar-wrap:nth-child(n+4) {
  display: none;
}

.gallery-winner-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-winner-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #050608;
  font-weight: 950;
  font-size: 1.05rem;
}

.gallery-winner-avatar-wrap.is-missing-avatar .gallery-winner-avatar-fallback {
  display: flex;
}

.gallery-winner-unknown {
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.14), transparent 30%),
    linear-gradient(180deg, #111318, #030405);
  font-weight: 950;
  font-size: 1.28rem;
  line-height: 1;
}

.gallery-winner-badges::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255,235,170,.18);
  opacity: .75;
}

@media (max-width: 640px) {
  .gallery-card-meta.has-winner-badges {
    padding-left: 64px;
  }

  .gallery-winner-badges {
    left: 15px;
    bottom: 13px;
  }

  .gallery-winner-badges-one .gallery-winner-avatar-wrap,
  .gallery-winner-badges-one .gallery-winner-unknown {
    width: 40px;
    height: 40px;
  }

  .gallery-winner-badges-multi .gallery-winner-avatar-wrap,
  .gallery-winner-badges-multi .gallery-winner-unknown {
    width: 30px;
    height: 30px;
    margin-right: -7px;
  }
}
