.product-album {
  width: min(1440px, 90%);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) 0 clamp(64px, 8vw, 120px);
  color: #252321;
}
.album-intro { margin-bottom: clamp(28px, 4vw, 52px); }
.album-intro h1 { font-size: clamp(48px, 5vw, 80px); line-height: 1.06; font-weight: 400; }
.album-intro p { margin: 12px 0 0; font-size: 1rem; }
.album-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 0; border-block: 1px solid #dcd7d0; margin-bottom: 26px;
}
.album-tools { flex-wrap: wrap; }
.album-tools output { font-size: .9rem; margin-inline-end: auto; }
.seat-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.seat-filters button { padding: 8px 12px; font: inherit; color: inherit; background: white; border: 1px solid #dcd7d0; cursor: pointer; }
.seat-filters button[aria-pressed="true"] { background: #111; color: white; border-color: #111; }
.seat-filters button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.album-search { display: inline-flex; align-items: center; gap: 10px; }
.album-search input {
  appearance: none; border: 1px solid #bdb7b0; border-radius: 0;
  padding: 9px 12px; width: min(230px, 45vw); background: white; color: inherit; font: inherit;
}
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px clamp(16px, 2.5vw, 36px); }
.album-card { display: block; color: inherit; text-decoration: none; min-width: 0; }
.album-photo { display: grid; place-items: center; background: #fff; aspect-ratio: 4 / 3; }
.album-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.album-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #dedad5; }
.album-caption strong { display: inline-block; padding: 10px 16px; background: #000; color: #fff; font: inherit; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.album-caption small { font-size: .8rem; color: #615c57; white-space: nowrap; }
.album-card:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .album-catalog .album-card > .album-photo { overflow: hidden; }
  .album-catalog .album-card > .album-photo img {
    transition: transform 260ms ease-out;
  }
  .album-catalog .album-card:hover > .album-photo img {
    transform: scale(1.035);
  }
}
.album-card[hidden], .product-album [hidden] { display: none; }
.album-empty { padding: 30px 0; }
.album-view {
  box-sizing: border-box; width: min(1800px, 97vw); max-width: 100%;
  max-height: 94vh; max-height: 94dvh; margin: auto; padding: clamp(14px, 2vw, 26px);
  border: 0; color: #252321; background: white;
}
.album-view::backdrop { background: rgba(18, 16, 14, .78); }
html:has(.album-view[open]) { overflow: hidden; }
.album-view header, .album-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.album-view h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 400; }
.album-view button { background: white; color: inherit; font: inherit; padding: 10px 15px; min-height: 44px; border: 1px solid #ccc5bd; }
.album-view button:hover { background: #f6f5f2; }
.album-view[open] { display: grid; height: 96dvh; max-height: 96dvh; grid-template-rows: auto minmax(0,1fr) auto auto; gap: 8px; padding: clamp(10px,1vw,18px); }
.album-stage { overflow: auto; background: white; }
.album-viewport { position: relative; min-width: 0; min-height: 0; }
.album-viewport .album-stage { position: absolute; inset: 0; }
.album-view button.viewer-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; font: 30px/1 Arial, sans-serif; flex-shrink: 0; }
.album-viewport .viewer-icon { position: absolute; top: 50%; transform: translateY(-50%); }
.album-viewport [data-prev] { left: 10px; }
.album-viewport [data-next] { right: 10px; }
.album-count { text-align: center; }
.album-stage img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; margin-inline: auto; position: relative; top: max(0px, calc((100% - var(--photo-size,100%)) / 2)); }
.album-zoom { display: flex; justify-content: center; gap: 4px; }
.album-zoom button { min-width: 44px; }
.album-zoom button:disabled { opacity: .45; }
.product-album :focus-visible, .album-view :focus-visible { outline: 2px solid #5d4537; outline-offset: 3px; }
@media (max-width: 850px) { .album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 550px) {
  .product-album { width: 90%; }
  .album-grid { grid-template-columns: 1fr; gap: 25px; }
  .album-search { gap: 6px; }
  .album-search input { width: 38vw; }
}
.finish-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.finish-links a { color: inherit; text-underline-offset: 5px; }
.product-album > a + .album-intro { margin-top: 24px; }
#model-photos section { margin-top: 38px; scroll-margin-top: 110px; }
#model-photos h2 { margin-bottom: 18px; font-weight: 400; }
.album-intro:has(#model-title) { margin: 22px 0 26px; }
.finish-links:has(a[href^="#"]) { gap: 8px; }
.finish-links a[href^="#"] { padding: 8px 14px; border: 1px solid #ccc5bd; color: inherit; text-decoration: none; }
.finish-links a[href^="#"]:hover, .finish-links a[href^="#"]:focus-visible { background: #111; color: white; }
#model-photos .photo-category { border-top: 1px solid #dcd7d0; padding-top: clamp(18px, 2vw, 32px); }
.photo-category h2 { font-size: clamp(28px, 3vw, 44px); }
.photo-category h3 { margin: 24px 0 12px; font: inherit; font-weight: 600; }
.photo-category .album-grid { gap: clamp(12px, 2vw, 28px); }
@media (min-width: 851px) {
  #model-photos .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.album-catalog .album-caption {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 0 14px;
}
.album-catalog .album-caption > a,
.album-catalog .album-caption strong {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.album-catalog .album-caption strong {
  padding: 8px 12px;
  font-size: .9375rem;
}

@media (min-width: 1024px) {
  .product-album:has(.album-catalog) { width: min(2080px, calc(100% - 48px)); }
  .album-grid.album-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(20px, 1.6vw, 32px);
    row-gap: 28px;
  }
}
.album-view header [data-close] { margin-inline-end: clamp(12px, 2.7vw, 50px); }
@media (min-width: 768px) {
  .album-view header [data-close] { position: relative; inset-inline-start: 13px; top: 17px; z-index: 1; }
}
.album-catalog .colour-row { grid-column: 1 / -1; min-width: 0; }
.colour-row .album-caption { border-bottom: 0; }
.colour-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 32px); padding-bottom: 12px; border-bottom: 1px solid #dedad5; }
.colour-option { min-width: 0; color: inherit; text-decoration: none; }
.colour-option > span:last-child { display: block; padding-top: 8px; }
.colour-option:hover > span:last-child { text-decoration: underline; }
.photo-category h3[id] { scroll-margin-top: 100px; }
@media (max-width: 850px) { .colour-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) { .colour-strip { grid-template-columns: minmax(0, 1fr); } }

body:has(#model-photos) { container-type: inline-size; }
#model-photos #factory {
  width: 100cqw;
  margin-inline-start: calc(50% - 50cqw);
}
#factory > :is(h2, h3) { padding-inline: clamp(12px, 2vw, 32px); }
#model-photos #factory .album-grid {
  --photo-gap: clamp(12px, 2vw, 28px);
  --photo-width: calc((100% - 3 * var(--photo-gap)) / 4);
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: var(--photo-width);
  gap: var(--photo-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
#factory .album-photo {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
}
#factory .album-photo img { object-fit: cover; }
@media (max-width: 850px) {
  #model-photos #factory .album-grid { --photo-width: calc((100% - var(--photo-gap)) / 2); }
}
@media (max-width: 550px) {
  #model-photos #factory .album-grid { --photo-width: 100%; }
}

.album-catalog .colour-picker { grid-column: auto; }
.album-grid.album-catalog { row-gap: 0; }
.album-catalog > .album-card:not([hidden]) {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  padding-bottom: 28px;
}
.album-catalog > .album-card > .album-photo { grid-row: 1; }
.album-catalog > .album-card > .colour-strip { grid-row: 2; }
.album-catalog > .album-card > .selected-colour { grid-row: 3; }
.album-catalog > .album-card > .album-caption {
  grid-row: 4;
  align-content: start;
  border-bottom: 1px solid #dedad5;
}
.colour-picker .colour-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  padding: 0;
}
.colour-picker .colour-strip button {
  background: white;
  border: 1px solid #dedad5;
  padding: 2px;
  width: 48px;
  height: 38px;
  cursor: pointer;
}
.colour-picker .colour-strip button[aria-pressed="true"] { border-color: black; }
.colour-picker .colour-strip img { width: 100%; height: 100%; object-fit: contain; }
.selected-colour { display: block; padding: 4px 0 10px; font-size: .8rem; }

.product-album:has(.model-hero) { width: min(1840px, 94%); }
.model-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: clamp(16px, 3vw, 60px);
  align-items: center;
  margin: clamp(16px, 3vw, 48px) 0;
}
.model-hero .album-intro { margin: 0; }
.model-hero h1 { font-size: clamp(40px, 4.5vw, 84px); line-height: 1.04; text-wrap: balance; }
.model-hero .album-photo { aspect-ratio: auto; height: clamp(320px, 54vh, 710px); }
.model-hero ~ .finish-links { padding-block: 12px; border-top: 1px solid #dedad5; }
.model-hero ~ .finish-links a { border: 0; padding-inline: 0; margin-right: 22px; }
#model-photos :is(#product, #scenes) .album-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 44px);
}
@media (max-width: 650px) {
  .model-hero { grid-template-columns: 1fr; }
  .model-hero .album-photo { height: auto; aspect-ratio: 4 / 3; }
  #model-photos :is(#product, #scenes) .album-grid { grid-template-columns: 1fr; }
}

#model-photos #scenes .scene-spread {
  gap: clamp(10px, 1.2vw, 22px);
  margin-bottom: clamp(32px, 4vw, 72px);
}
#scenes .scene-spread .album-photo { aspect-ratio: auto; min-width: 0; }
#scenes .scene-spread img { height: auto; display: block; }
@media (min-width: 760px) {
  #model-photos #scenes .scene-spread { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #scenes .scene-spread-feature .album-photo:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  #scenes .scene-spread-feature .album-photo:first-child img { height: 100%; object-fit: cover; }
}

.factory-strip { position: relative; }
.factory-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  color: #171717;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
}
.factory-arrow:last-child { inset-inline-start: auto; inset-inline-end: 12px; }
.factory-arrow:hover:enabled, .factory-arrow:focus-visible { background: #171717; color: white; }
.factory-arrow:disabled { opacity: .55; cursor: default; }
.factory-arrow[hidden] { display: none; }

@media (min-width: 800px) {
  #model-photos #scenes.gold-piped-album .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 24px);
  }
  .gold-piped-album .album-photo { aspect-ratio: 1; }
  #scenes.gold-piped-album .album-photo img { object-fit: cover; }
  #product.gold-piped-album .album-grid { max-width: 1200px; margin-inline: auto; }
  #factory.gold-piped-album .album-photo { aspect-ratio: 4 / 3; }
}

@media (min-width: 850px) {
  #model-photos #product.curated-angles .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #model-photos #product.curated-angles .album-grid:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#scenes .album-photo:has(img[src$="/ivory-cinema-panorama.jpg"]) {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 1;
}

#model-photos #scenes .two-tone-scenes {
  width: min(90%, 1220px);
  margin: clamp(28px, 4vw, 64px) auto clamp(48px, 7vw, 112px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) clamp(22px, 3vw, 48px);
  align-items: center;
}
#scenes .two-tone-scenes .album-photo {
  min-width: 0;
  aspect-ratio: 1;
}
#scenes .two-tone-scenes .album-photo img { object-fit: cover; }
#scenes .two-tone-scenes .album-photo:first-child,
#scenes .two-tone-scenes .album-photo:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}
#scenes .two-tone-scenes .album-photo:first-child {
  width: min(68%, 720px);
  aspect-ratio: auto;
}
#scenes .two-tone-scenes .album-photo:first-child img { height: auto; }
#scenes .two-tone-scenes .album-photo:last-child {
  width: 100%;
  aspect-ratio: 2 / 1;
}
@media (max-width: 650px) {
  #model-photos #scenes .two-tone-scenes {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #scenes .two-tone-scenes .album-photo { width: 78%; justify-self: center; }
  #scenes .two-tone-scenes .album-photo:first-child { width: 100%; }
  #scenes .two-tone-scenes .album-photo:last-child { aspect-ratio: 4 / 3; }
}

#model-photos #product .album-grid.detail-strip {
  width: min(82%, 1200px);
  margin: clamp(24px, 3vw, 48px) auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
}
.detail-strip .album-photo { aspect-ratio: 1; }
@media (max-width: 650px) {
  #model-photos #product .album-grid.detail-strip { width: 100%; }
}
