/* Warm architectural glass: the image remains visible through each surface.
   Solid colors are the baseline for browsers without backdrop filtering. */
:root {
  --glass-light: #eeeae1;
  --glass-dark: #48423c;
  --glass-rim: #fffdf2cc;
  --glass-shadow: 0 14px 35px #241d1933, 0 2px 5px #241d1926,
    inset 0 1px 0 #ffffffed, inset 1px 0 0 #ffffff66,
    inset 0 -1px 0 #48423c40;
}

.hero { margin-bottom: 52px; }
.hero-gallery {
  position: relative;
  --gallery-height: 730px;
  height: var(--gallery-height);
  min-height: var(--gallery-height);
  grid-template-rows: minmax(0, 1fr);
}
.hero-track { grid-area: 1 / 1; }
/* In the split hero, both columns share the row's height, including wide screens
   and taller copy. Stacked layouts retain their explicit photo heights. */
@media (min-width: 1101px) {
  .hero-gallery { height: auto; }
}
.hero-slide figcaption {
  top: 24px; bottom: auto; left: 24px;
  max-width: calc(100% - 48px);
  padding: 9px 14px;
  font-size: 20px;
  border: 1px solid var(--glass-rim);
  border-radius: 10px;
  background: var(--glass-light);
  color: #080604;
  box-shadow: var(--glass-shadow);
}
.gallery-console {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 24px;
  padding: 12px 16px;
  transform: translateY(45%);
  border: 1px solid var(--glass-rim);
  border-radius: 14px;
  background: var(--glass-light);
  box-shadow: var(--glass-shadow);
  color: #080604;
}
.gallery-console .hero-filmstrip {
  grid-row: auto;
  gap: 14px;
  padding: 0;
}
.gallery-console .hero-choice { gap: 9px; padding: 4px 0; min-height: 44px; color: #080604; }
.gallery-console .hero-choice > img { width: 48px; height: 43px; border-width: 3px; opacity: 1; }
.gallery-console .hero-choice > span { font-size: 21px; }
.gallery-console .hero-choice[aria-pressed="true"] { color: #080604; }
.gallery-console .hero-choice[aria-pressed="true"] > span::after { background: #342018; }
.gallery-console .gallery-bar {
  grid-row: auto;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 1px solid #48423c4d;
  gap: 12px;
}
.gallery-console .gallery-bar > p, .gallery-console .gallery-count { display: none; }
.gallery-console .gallery-controls { gap: 6px; }
.gallery-console .gallery-controls button {
  width: 44px; height: 44px;
  border: 1px solid #48423c55;
  border-radius: 50%;
  background: #ffffff33;
  color: #080604;
  box-shadow: inset 0 1px 0 #ffffffb3;
}
.gallery-console .gallery-controls button:not(:disabled):hover {
  background: #fffdf2b3; color: #342018;
}
.gallery-console .gallery-controls button:disabled { color: #686156; }
.gallery-console button:focus-visible { outline: 2px solid #342018; outline-offset: 4px; }

/* Material controls sit directly on the sample, like a smoked-glass tray. */
.material-stage { padding: 0; background: #a2644b; box-shadow: none; }
.material-photo { aspect-ratio: 1; }
.material-stage .material-dock {
  position: absolute; left: 18px; right: 18px; bottom: 12px;
  display: block;
  padding: 12px 14px 10px;
  border: 1px solid #fffdf28c;
  border-radius: 12px;
  background: var(--glass-dark);
  color: #fffdf6;
  box-shadow: 0 10px 30px #241d194d, inset 0 1px 0 #ffffff8c,
    inset 1px 0 0 #ffffff33, inset 0 -1px 0 #211b1680;
}
.material-caption-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 0 2px 8px;
  border-bottom: 1px solid #fffdf24d;
  font-size: 15px;
}
#material-position { font-size: 12px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.material-dock .material-selectors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; padding: 8px 0 0; border: 0;
}
.material-dock .material-choice {
  flex-direction: row; justify-content: center;
  min-height: 44px; gap: 8px; padding: 3px 0;
  color: #fffdf6; font-size: 14px;
  border: 0;
  border-radius: 4px;
}
.material-dock .material-choice img {
  width: 32px; height: 32px; flex-shrink: 0;
  box-shadow: 0 2px 4px #211b1640;
  border: 1px solid #ffffff99;
}
.material-dock .material-choice[aria-pressed="true"] { font-weight: 650; }
.material-dock .material-choice[aria-pressed="true"] img { outline-color: #fff0d8; outline-offset: 3px; }
.material-dock .material-choice:hover { background: #ffffff1a; }
.material-dock .material-choice:focus-visible { outline: 2px solid #fffdf6; outline-offset: 3px; }
.material-story { display: block; }
.material-story > .eyebrow { margin-bottom: 22px; }
.material-story .material-category { margin-top: 0 !important; }
.material-story .explore-note { margin-top: 24px; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-slide figcaption, .gallery-console {
    background: rgba(244, 239, 226, .50);
    -webkit-backdrop-filter: blur(7px) saturate(1.12);
    backdrop-filter: blur(7px) saturate(1.12);
  }
  .gallery-console { background: rgba(244, 239, 226, .50); }
  .material-stage .material-dock {
    background: rgba(0, 0, 0, .54);
    -webkit-backdrop-filter: blur(7px) saturate(1.1);
    backdrop-filter: blur(7px) saturate(1.1);
  }
}
@media (max-width: 1100px) {
  .hero-gallery { --gallery-height: 680px; }
  .gallery-console { margin: 0 var(--gutter); }
  .material-photo { aspect-ratio: 1.35; }
  .material-stage .material-dock { left: 18px; right: 18px; bottom: 12px; }
  .material-story { max-width: 760px; margin: 0 auto; }
}
/* Narrow split-screen desktop columns use the same compact two-row dock as phones. */
@media (min-width: 1101px) and (max-width: 1250px) {
  .hero { margin-bottom: 78px; }
  .gallery-console { grid-template-columns: 1fr; gap: 8px; }
  .gallery-console .gallery-bar { border-left: 0; border-top: 1px solid #48423c4d; padding: 6px 0 0; justify-content: flex-end; }
}
@media (max-width: 700px) {
  .hero { margin-bottom: 80px; }
  .hero-gallery { --gallery-height: 600px; }
  .hero-slide figcaption { top: 18px; left: 18px; max-width: calc(100% - 36px); font-size: 18px; padding: 9px 12px; }
  .gallery-console { grid-template-columns: 1fr; margin: 0 16px; padding: 10px 14px 8px; gap: 8px; border-radius: 12px; }
  .gallery-console .hero-filmstrip { gap: 12px; }
  .gallery-console .hero-choice { gap: 7px; padding: 2px 0 4px; }
  .gallery-console .hero-choice > img { width: 46px; height: 39px; }
  .gallery-console .hero-choice > span { font-size: 20px; }
  .gallery-console .hero-choice[aria-pressed="true"] > span::after { bottom: -5px; }
  .gallery-console .gallery-bar { margin: 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid #48423c4d; gap: 8px; justify-content: flex-end; }
  .gallery-console .gallery-controls { gap: 4px; }
  .material-photo { aspect-ratio: .9; }
  .material-stage .material-dock { left: 10px; right: 10px; bottom: 10px; padding: 10px 10px 8px; }
  .material-caption-line { font-size: 14px; padding-bottom: 7px; gap: 8px; }
  .material-dock .material-selectors { gap: 5px; padding-top: 7px; }
  .material-dock .material-choice { flex-direction: column; font-size: 13px; gap: 5px; }
  .material-dock .material-choice img { width: 30px; height: 30px; }
}
@media (max-width: 370px) {
  .hero-gallery { --gallery-height: 570px; }
  .hero-slide figcaption { font-size: 18px; }
  .gallery-console { margin: 0 12px; padding-left: 12px; padding-right: 12px; }
  .gallery-console .hero-filmstrip { gap: 8px; }
  .gallery-console .hero-choice > span { font-size: 20px; }
  .gallery-console .gallery-bar { margin: 0; gap: 6px; }
  .gallery-console .gallery-count { display: none; }
  .gallery-console .gallery-controls { gap: 3px; }
  .material-caption-line { font-size: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  .hero-slide figcaption, .gallery-console { background: var(--glass-light); }
  .material-stage .material-dock { background: var(--glass-dark); }
  .hero-slide figcaption, .gallery-console, .material-stage .material-dock {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .hero-slide figcaption, .gallery-console, .material-stage .material-dock {
    background: Canvas; color: CanvasText; border: 1px solid CanvasText;
    box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .material-dock .material-choice[aria-pressed="true"] img { outline-color: Highlight; }
}
@media print {
  .hero { margin-bottom: 0; }
  .hero-gallery { height: auto; min-height: 0; }
  .gallery-console { display: none; }
  .hero-slide figcaption, .material-stage .material-dock {
    position: static; background: var(--paper); color: var(--ink); box-shadow: none;
    border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
