/* Product galleries side by side on desktop and stacked on phones. */
.merch-page { color: #103c2c; font-family: Georgia, serif; }
.merch-main { width: min(calc(100% - 88px), 1600px); margin: 24px auto 64px; }
.merch-sales-note { margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.merch-map { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 8vw, 144px); row-gap: 32px; isolation: isolate; }
.merch-mobile-nav { display: none; }
.merch-product { position: relative; width: 100%; min-width: 0; justify-self: center; z-index: 1; scroll-margin-top: 24px; }
.product-gallery { margin: 0; }
.product-zoom { display: block; color: inherit; touch-action: pan-y pinch-zoom; }
.product-hero { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.product-gallery-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; line-height: 1.4; }
.product-gallery-help { display: none; }
.product-gallery-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product-thumbnail { display: block; padding: 0 0 5px; border-bottom: 1px solid transparent; }
.product-thumbnail[aria-current="true"] { border-bottom-color: #000; }
.product-thumbnail img { display: block; width: 52px; height: 69px; object-fit: cover; }
.product-info { margin-top: 22px; }
.product-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.product-heading h2 { margin: 0; font: 400 38px/1.1 'Pirata One', Georgia, serif; }
.product-heading p { margin: 0; font-size: 16px; }
.product-description { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.product-price { margin: 14px 0 0; font-size: 22px; line-height: 1.4; }
.merch-page a:focus-visible, .merch-page button:focus-visible { outline: 2px solid #000; outline-offset: 5px; }
.product-lightbox { max-width: calc(100vw - 40px); max-height: calc(100svh - 40px); padding: 52px 20px 20px; border: 1px solid #000; background: #f4ecd8; color: #103c2c; }
.product-lightbox::backdrop { background: rgb(16 30 21 / 80%); }
.product-lightbox-image { display: block; max-width: min(85vw, 1000px); max-height: calc(100svh - 146px); width: auto; height: auto; object-fit: contain; }
.product-lightbox-close { position: absolute; top: 10px; right: 14px; padding: 5px; border: 0; background: none; color: #000; cursor: pointer; font: 16px/1.2 Georgia, serif; }
.product-lightbox-caption { margin: 12px 0 0; font-size: 15px; }
@media (max-width: 760px) {
  .merch-main { width: calc(100% - 48px); margin-top: 12px; }
  .merch-map { column-gap: 48px; }
}
@media (max-width: 700px) {
  .merch-main { margin-top: 8px; margin-bottom: 16px; }
  .merch-map { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .merch-mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; position: relative; z-index: 1; }
  .merch-mobile-nav a { display: grid; place-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid #000; border-radius: 50%; background: #f4ecd8; color: #000; text-decoration: none; font: 400 26px/1.1 'Pirata One', Georgia, serif; }
  .merch-mobile-nav a:first-child { color: #103c2c; }
  .merch-product { margin-bottom: 48px; }
  .has-photo-swipe .product-gallery-help { display: block; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
  .product-thumbnails { gap: 10px; margin-top: 12px; }
  .product-thumbnail img { width: 44px; height: 59px; }
  .product-info { margin-top: 18px; }
  .product-heading h2 { font-size: 36px; }
  .product-description { font-size: 16px; }
  .product-lightbox { max-width: calc(100vw - 24px); padding: 48px 12px 12px; }
  .product-lightbox-image { max-width: calc(100vw - 50px); }
}

.photo-colour-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.product-hero[data-cutout="true"], .product-thumbnail img[data-cutout="true"] { object-fit: contain; }

/* Centre the black flat-lay within the gallery frame; keep the source photo intact. */
.product-zoom, .product-thumbnail { overflow: hidden; }
.product-hero[data-photo-grade="black-flatlay"], .product-thumbnail img[data-photo-grade="black-flatlay"] { transform: translate(18.4%, 2.66%) scale(1.368); }
.product-lightbox[data-photo-grade="black-flatlay"] .product-lightbox-frame { width: min(85vw, 1000px, calc((100svh - 146px) * .75)); aspect-ratio: 3 / 4; overflow: hidden; }
.product-lightbox[data-photo-grade="black-flatlay"] .product-lightbox-image { width: 100%; height: auto; max-width: none; max-height: none; transform: translate(18.4%, 2.66%) scale(1.368); }
