/* ==========================================================================
   Product detail page (/gallery-store/p/<slug>) — after nickeykehoe.com/products/*
   gallery 57% (thumb rail + painting hung on a lit cream wall) · info 43% (sticky)
   olive collector's band · full-bleed room views · "Up close" strip · specs · related
   Type scale is sized for older readers: body copy 16–17px, labels 13–14px, nothing under 12px.
   Phones (<= 767px, and landscape phones: landscape and <= 540px tall): every painting, room view and detail
   photo is shown whole (never cover-cropped).
   Side padding never drops below the safe-area insets (viewport-fit=cover lays landscape iPhones under the notch).
   ========================================================================== */

.pdp {
  --pdp-pad: max(48px, var(--safe-l, 0px), var(--safe-r, 0px));
  --pdp-wall: #f4f0e5;
  --pdp-stage-h: clamp(460px, calc(100vh - var(--header-h, 100px) - 120px), 880px);
  --pdp-sticky-top: calc(var(--header-offset, 0px) + 24px);
  --pdp-shadow:
    0 1px 1px rgba(40, 32, 20, .08),
    0 3px 6px -2px rgba(40, 32, 20, .14),
    0 14px 22px -10px rgba(40, 32, 20, .22),
    0 44px 60px -30px rgba(40, 32, 20, .38);
}
.pdp-eyebrow { font: 400 14px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pdp-h2 { font: 400 clamp(29px, 2.7vw, 39px)/1.2 var(--serif-store); }

/* every button on the page: taller, larger text, tighter tracking */
.pdp .nk-btn, .pdp-bar .nk-btn {
  min-height: 52px; padding: 8px 16px; font-size: 14px; line-height: 1.3; letter-spacing: .1em;
}

/* ---------- breadcrumb row ---------- */
.pdp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 40px var(--pdp-pad) 0; }
.pdp-pager { display: flex; gap: 24px; flex: none; }
.pdp-pager a { font: 400 14px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.pdp-pager a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- two columns ---------- */
.pdp-main {
  display: grid; grid-template-columns: minmax(0, .57fr) minmax(0, .43fr); gap: 0 clamp(40px, 5vw, 80px);
  align-items: start; padding: 26px var(--pdp-pad) 104px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.pdp-gallery {
  position: sticky; top: var(--pdp-sticky-top); display: flex; gap: 18px; align-items: flex-start;
  transition: top .45s var(--ease-out);
}
.pdp-rail {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 12px; width: 70px; max-height: var(--pdp-stage-h);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.pdp-rail::-webkit-scrollbar { display: none; }
.pdp-thumb { position: relative; flex: none; display: block; width: 70px; padding-bottom: 9px; opacity: .5; transition: opacity .3s var(--ease); }
.pdp-thumb:hover, .pdp-thumb[aria-current="true"] { opacity: 1; }
.pdp-thumb__img { width: 70px; height: 70px; object-fit: cover; }
.pdp-thumb::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--nk-ink);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.pdp-thumb[aria-current="true"]::after { transform: scaleX(1); }
.pdp-thumb:focus-visible { outline: 2px solid var(--nk-ink); outline-offset: -2px; }

/* the stage is a softly lit cream wall */
.pdp-stage {
  position: relative; flex: 1 1 auto; min-width: 0; height: var(--pdp-stage-h); overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% -6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%),
    radial-gradient(120% 70% at 50% 118%, rgba(110, 92, 62, .12), rgba(110, 92, 62, 0) 62%),
    var(--pdp-wall);
}
.pdp-track { position: absolute; inset: 0; }
.pdp-slide {
  position: absolute; inset: 0; display: grid; place-items: center; container-type: size;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.pdp-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.pdp-slide { padding-bottom: 48px; } /* hang a touch above centre, clear of the stage controls */

/* the frame takes the image's true proportions: width = min(max width, max height × ratio) */
.pdp-frame {
  --fw: 100cqw; --fh: 100cqh;
  position: relative; display: block; overflow: hidden; aspect-ratio: var(--r, 1);
  width: min(var(--fw), calc(var(--fh) * var(--r, 1))); cursor: zoom-in;
}
.pdp-frame__img { width: 100%; height: 100%; object-fit: cover; }
/* slides 2+ start as a placeholder that product.js fills in; without JS the <noscript> copy shows instead */
html:not(.js) .pdp-frame__img[data-lazy-srcset] { display: none; }
.pdp-slide--hang .pdp-frame { --fw: 76cqw; --fh: 78cqh; box-shadow: var(--pdp-shadow); }
.pdp-slide--hang.pdp-slide--medium .pdp-frame { --fw: 70cqw; --fh: 72cqh; }
.pdp-slide--hang.pdp-slide--small .pdp-frame { --fw: 62cqw; --fh: 64cqh; }
.pdp-slide--photo .pdp-frame { --fw: 92cqw; --fh: 86cqh; box-shadow: 0 2px 3px rgba(40, 32, 20, .06), 0 26px 44px -26px rgba(40, 32, 20, .32); }
/* light falling from above, across the paint surface */
.pdp-slide--hang .pdp-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(172deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0) 70%, rgba(30, 22, 10, .07));
}
.pdp-slide--hang .pdp-frame { transform: translate3d(0, 10px, 0) scale(.985); transition: transform 1.1s var(--ease-out); }
.pdp-slide--hang.is-active .pdp-frame { transform: none; }
.pdp-slide--photo .pdp-frame__img { transform: scale(1.03); transition: transform 1.4s var(--ease-out); }
.pdp-slide--photo.is-active .pdp-frame__img { transform: none; }
.pdp-frame:focus-visible { outline: 1px solid var(--nk-ink); outline-offset: 6px; }

/* hover zoom (2×, follows the cursor) */
.pdp-zoom {
  position: absolute; left: 0; top: 0; z-index: 1; width: 200%; height: 200%; max-width: none;
  opacity: 0; transition: opacity .35s var(--ease); will-change: transform; pointer-events: none;
}
.pdp-frame.is-zooming .pdp-zoom { opacity: 1; }
.pdp-frame.is-zooming::after { opacity: 0; }

.pdp-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3; padding: 7px 10px 6px; background: var(--nk-bg);
  font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.pdp-tag--sold { background: var(--nk-ink); color: var(--nk-bg); }
.pdp-tag + .pdp-tag { top: 50px; }

.pdp-stage__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 16px; pointer-events: none;
}
.pdp-hint { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--nk-muted); }
.pdp-hint .icon { width: 15px; height: 15px; flex: none; }
.pdp-stage__nav { display: flex; align-items: center; gap: 4px; pointer-events: auto; }
.pdp-count { min-width: 58px; text-align: center; font: 400 14px/1 var(--sans); letter-spacing: .08em; }
.pdp-arrow { display: grid; place-items: center; width: 44px; height: 44px; color: var(--nk-ink); transition: opacity .25s, transform .3s var(--ease-out); }
.pdp-arrow:hover { transform: translateX(3px); }
.pdp-arrow--prev .icon { transform: scaleX(-1); }
.pdp-arrow--prev:hover { transform: translateX(-3px); }
.pdp-arrow:disabled { opacity: .25; cursor: default; transform: none; }
.pdp-dots { display: none; }
@media (hover: none) { .pdp-hint { display: none; } }

/* ==========================================================================
   Info column
   ========================================================================== */
.pdp-info { position: sticky; top: var(--pdp-sticky-top); max-width: 540px; padding-top: 6px; transition: top .45s var(--ease-out); }
.pdp-info__vendor { font: 400 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pdp-info__vendor a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pdp-info__title { margin: 14px 0 12px; font: 400 clamp(34px, 2.5vw, 36px)/1.16 var(--serif-store); letter-spacing: .005em; }
.pdp-info__sub { font: 400 14px/1.55 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--nk-muted); }
.pdp-info__rule { margin: 26px 0; background: var(--nk-line-strong); }
.pdp-desc p { font: 400 17px/1.7 var(--sans-store); letter-spacing: .01em; }
.pdp-desc p + p { margin-top: 1em; }
.pdp-desc p.pdp-desc__art { font-weight: 500; }
.pdp-desc p.pdp-desc__note { font-size: 15px; line-height: 1.65; font-style: italic; color: var(--nk-muted); }
.pdp-ready {
  margin-top: 22px; padding: 14px 18px; border-left: 2px solid var(--nk-olive); background: rgba(75, 78, 51, .07);
  font: italic 400 16px/1.6 var(--sans-store); color: var(--nk-olive);
}
.pdp-facts { margin-top: 26px; border-top: 1px solid var(--nk-line-strong); }
.pdp-facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--nk-line); }
.pdp-facts dt { font: 400 13px/1.97 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--nk-muted); }
.pdp-facts dd { font: 400 16px/1.6 var(--sans-store); }
.pdp-facts__aside { margin-left: 6px; font-size: 14px; color: var(--nk-muted); white-space: nowrap; }
.pdp-price { margin: 28px 0 20px; font: 400 18px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.pdp-price s { margin-right: 8px; color: var(--nk-muted); }
.pdp-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pdp-buttons .nk-btn { width: 100%; padding: 8px 12px; }
.pdp-buttons > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.pdp-btn-sold[disabled] { opacity: 1; background: var(--nk-line-strong); border-color: var(--nk-line-strong); color: var(--nk-ink); }
.nk-btn.is-added { background: var(--nk-olive); border-color: var(--nk-olive); color: var(--nk-bg); }
.pdp-small { margin-top: 16px; font: 400 15px/1.6 var(--sans-store); letter-spacing: .02em; color: var(--nk-muted); }

/* ==========================================================================
   Collector's note (olive band)
   ========================================================================== */
.pdp-band { background: var(--nk-olive); color: #f4f1e6; }
.pdp-band__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px);
  max-width: 1440px; margin: 0 auto; padding: 104px var(--pdp-pad);
}
.pdp-band__title { margin: 18px 0 28px; font: 400 clamp(34px, 3.5vw, 48px)/1.12 var(--serif-store); }
.pdp-band__text p:not(.pdp-eyebrow) { max-width: 540px; font: 400 17px/1.75 var(--sans-store); letter-spacing: .01em; color: rgba(244, 241, 230, .9); }
.pdp-band__text p + p { margin-top: 1.1em; }
.pdp-band .nk-accordion { align-self: start; border-top-color: rgba(244, 241, 230, .3); }
.pdp-band .nk-accordion details { border-bottom-color: rgba(244, 241, 230, .3); scroll-margin-top: calc(var(--header-h, 100px) + 24px); }
.pdp-band .nk-accordion summary { padding: 22px 0; font-size: 14px; line-height: 1.4; letter-spacing: .1em; }
.pdp-band .nk-accordion summary:hover { opacity: .8; }
.pdp-band .nk-accordion .nk-accordion__body { padding-bottom: 24px; font-size: 17px; line-height: 1.75; letter-spacing: .01em; color: rgba(244, 241, 230, .9); }
.pdp-band .nk-accordion__body p + p { margin-top: .9em; }
.pdp-band .nk-accordion__body a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pdp-band .nk-accordion__body strong { font-weight: 500; color: #f4f1e6; }
.pdp-band :focus-visible { outline-color: #f4f1e6; }
.pdp-band details[open] .nk-accordion__body { animation: pdp-drop .45s var(--ease-out); }
@keyframes pdp-drop { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================================
   Section heads
   ========================================================================== */
.pdp-head { padding: 0 var(--pdp-pad) 40px; }
.pdp-head .pdp-h2 { margin-top: 12px; }
.pdp-head__sub { margin-top: 14px; font: 400 16px/1.65 var(--sans-store); color: var(--nk-muted); }
.pdp-head--center { text-align: center; }
.pdp-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ==========================================================================
   In the room — full bleed, hairline gaps, curtain reveal
   ========================================================================== */
.pdp-rooms { padding-top: 112px; scroll-margin-top: calc(var(--header-h, 100px) - 30px); }
.pdp-rooms__grid { display: flex; gap: 1px; background: var(--nk-line); border-block: 1px solid var(--nk-line); }
.pdp-rooms__grid--many { max-width: calc(92vh * var(--sum, 2)); margin: 0 auto; }
.pdp-rooms__grid--one { justify-content: center; background: transparent; border: 0; padding: 0 var(--pdp-pad); }
.pdp-room {
  position: relative; display: block; overflow: hidden; flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r);
  background: var(--nk-bg); cursor: zoom-in;
}
.pdp-rooms__grid--one .pdp-room { flex: none; width: min(100%, calc(86vh * var(--r)), 1400px); }
.pdp-room__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-out); }
.pdp-room__cue {
  position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(255, 253, 246, .94); font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.pdp-room__cue .icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .pdp-room:hover .pdp-room__img { transform: scale(1.025); }
  .pdp-room:hover .pdp-room__cue { opacity: 1; transform: none; }
}
.pdp-room:focus-visible { outline: 2px solid var(--nk-ink); outline-offset: -6px; }
.pdp-room:focus-visible .pdp-room__cue { opacity: 1; transform: none; }
/* curtain reveal: tablet / desktop only — on phones (portrait or landscape) the room fades in whole */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) and (min-height: 541px),
       (prefers-reduced-motion: no-preference) and (min-width: 768px) and (orientation: portrait) {
  html.js .pdp-room { clip-path: inset(7% 7% 7% 7%); transition: opacity 1s var(--ease), clip-path 1.6s var(--ease-out); }
  html.js .pdp-room .pdp-room__img { transform: scale(1.12); }
  html.js .pdp-room.is-revealed { clip-path: inset(0 0 0 0); }
  html.js .pdp-room.is-revealed .pdp-room__img { transform: scale(1); }
  html.js .pdp-room.is-revealed:hover .pdp-room__img { transform: scale(1.025); }
}

/* ==========================================================================
   Up close — horizontal snap strip (tall crops on desktop, whole photos on phones)
   ========================================================================== */
.pdp-details { padding-top: 112px; }
.pdp-strip-nav { display: flex; gap: 4px; flex: none; }
.pdp-strip-nav[hidden] { display: none; }
.pdp-strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pdp-pad);
  padding: 0 var(--pdp-pad) 4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pdp-strip::-webkit-scrollbar { display: none; }
.pdp-strip__item { flex: 0 0 auto; width: clamp(240px, 27vw, 420px); scroll-snap-align: start; }
.pdp-strip__item:first-child { margin-left: auto; }
.pdp-strip__item:last-child { margin-right: auto; }
.pdp-strip__link { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; }
.pdp-strip__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.pdp-strip__link:hover .pdp-strip__img { transform: scale(1.05); }
.pdp-strip__link:focus-visible { outline: 2px solid var(--nk-ink); outline-offset: -6px; }
.pdp-strip__cap { display: block; margin-top: 12px; font: 400 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--nk-muted); }

/* ==========================================================================
   Specifications (crawlable facts)
   ========================================================================== */
.pdp-specs {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px);
  max-width: 1440px; margin: 0 auto; padding: 112px var(--pdp-pad) 0;
}
.pdp-specs .pdp-h2 { margin-top: 12px; }
.pdp-specs__summary { margin-top: 22px; max-width: 480px; font: 400 17px/1.75 var(--sans-store); letter-spacing: .01em; }
.pdp-spec { border-top: 1px solid var(--nk-line-strong); }
.pdp-spec > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--nk-line); }
.pdp-spec dt { font: 400 13px/2.03 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--nk-muted); }
.pdp-spec dd { font: 400 16px/1.65 var(--sans-store); }
.pdp-spec dd a { text-decoration: underline; text-underline-offset: 3px; }
.pdp-spec__palette { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pdp-spec__color { display: inline-flex; align-items: center; gap: 8px; }
.pdp-spec__color .swatch { width: 16px; height: 16px; }

/* ==========================================================================
   You may also like — hairline grid of product cards
   ========================================================================== */
.pdp-related { padding-top: 120px; }
.pdp-related__title { margin-bottom: 48px; text-align: center; font: 400 clamp(32px, 3vw, 44px)/1.2 var(--serif-store); }
.pdp-related__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-inline: var(--safe-l, 0px) var(--safe-r, 0px);
  background: var(--nk-line); border-block: 1px solid var(--nk-line);
}
.pdp-related__more { padding: 44px 24px 120px; text-align: center; }
.pdp-related__more .nk-btn { padding: 8px 28px; }

/* ==========================================================================
   Sticky add-to-cart bar
   ========================================================================== */
.pdp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 700; display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 246, .97); border-top: 1px solid var(--nk-line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.pdp-bar.is-visible { transform: none; visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
.pdp-bar__img img { width: 52px; height: 52px; object-fit: cover; }
.pdp-bar__text { display: grid; gap: 3px; min-width: 0; }
.pdp-bar__title {
  font: 400 15px/1.3 var(--sans-store); letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere;
}
.pdp-bar__price { font: 400 15px/1.3 var(--sans); letter-spacing: .06em; color: var(--nk-muted); }
.pdp-bar__btn { margin-left: auto; flex: none; }
.pdp-bar .pdp-bar__btn { padding: 8px 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .pdp { --pdp-pad: max(32px, var(--safe-l, 0px), var(--safe-r, 0px)); }
  .pdp-hint span { display: none; }
  .pdp-spec > div { grid-template-columns: 140px minmax(0, 1fr); }
}

/* tablet + mobile: stacked; gallery becomes a swipeable snap carousel with dots */
@media (max-width: 999px) {
  .pdp { --pdp-pad: max(24px, var(--safe-l, 0px), var(--safe-r, 0px)); padding-bottom: 80px; }
  .pdp-page--sold .pdp { padding-bottom: 0; }
  .pdp-main { grid-template-columns: minmax(0, 1fr); padding: 18px 0 80px; }
  .pdp-gallery { position: static; display: block; }
  .pdp-rail, .pdp-hint, .pdp-stage__nav { display: none; }
  .pdp-stage { height: auto; background: none; overflow: visible; }
  .pdp-track {
    position: static; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .pdp-track::-webkit-scrollbar { display: none; }
  .pdp-slide {
    position: relative; inset: auto; flex: 0 0 100%; height: min(100vw, 76vh); height: min(100vw, 76svh); scroll-snap-align: center; scroll-snap-stop: always;
    opacity: 1; visibility: visible; transition: none; padding: 0 var(--safe-r, 0px) 0 var(--safe-l, 0px);
    background:
      radial-gradient(80% 55% at 50% -6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%),
      radial-gradient(120% 70% at 50% 118%, rgba(110, 92, 62, .12), rgba(110, 92, 62, 0) 62%),
      var(--pdp-wall);
  }
  .pdp-slide--hang .pdp-frame, .pdp-slide--photo .pdp-frame__img { transform: none; }
  /* the frame already has the photo's own proportions; contain guarantees nothing is ever trimmed */
  .pdp-frame__img { object-fit: contain; }
  .pdp-slide--hang .pdp-frame { --fw: 78cqw; --fh: 80cqh; }
  .pdp-slide--photo .pdp-frame { --fw: 100cqw; --fh: 100cqh; box-shadow: none; }
  .pdp-slide--hang.pdp-slide--medium .pdp-frame { --fw: 72cqw; --fh: 74cqh; }
  .pdp-slide--hang.pdp-slide--small .pdp-frame { --fw: 64cqw; --fh: 66cqh; }
  .pdp-tag { top: 14px; left: 14px; }
  .pdp-tag + .pdp-tag { top: 46px; }
  .pdp-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .pdp-dot { display: grid; place-items: center; width: 32px; height: 32px; }
  .pdp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nk-ink); opacity: .25; transition: opacity .3s, transform .3s var(--ease-out); }
  .pdp-dot[aria-current="true"]::before { opacity: 1; transform: scale(1.25); }
  .pdp-info { position: static; max-width: 640px; margin: 0 auto; padding: 30px var(--pdp-pad) 0; }
  .pdp-info__title { font-size: 32px; }
  .pdp-band__inner, .pdp-specs { grid-template-columns: minmax(0, 1fr); }
  .pdp-band__inner { padding-block: 80px; }
  .pdp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-bar__img { display: none; }
}

/* phones */
@media (max-width: 767px) {
  .pdp { --pdp-pad: max(16px, var(--safe-l, 0px), var(--safe-r, 0px)); padding-bottom: 96px; }
  .pdp-top { padding-top: 18px; flex-wrap: wrap; }
  .pdp-pager { display: none; }
  .pdp-info__title { font-size: 28px; line-height: 1.18; }
  .pdp-facts > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .pdp-band__inner { padding-block: 64px; }
  .pdp-band__title { font-size: 34px; }
  .pdp-rooms, .pdp-details, .pdp-specs { padding-top: 80px; }
  .pdp-related { padding-top: 88px; }
  .pdp-related__title { margin-bottom: 36px; }
  .pdp-related__more { padding-bottom: 88px; }
  .pdp-head { padding-bottom: 28px; }
  .pdp-head--split { gap: 16px; }
  .pdp-spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .pdp-bar { gap: 12px; }
  .pdp-bar .pdp-bar__btn { padding: 8px 18px; }
}

/* phones, portrait and landscape: room views and detail photos are shown whole, never cover-cropped */
@media (max-width: 767px), (orientation: landscape) and (max-height: 540px) {
  .pdp-frame__img { object-fit: contain; }

  /* rooms: one under another, each whole at its own proportions */
  .pdp-rooms__grid { flex-direction: column; }
  .pdp-rooms__grid--one { padding: 0; }
  .pdp-rooms__grid .pdp-room, .pdp-rooms__grid--one .pdp-room { flex: none; width: 100%; }
  .pdp-room__img { object-fit: contain; }

  /* up close: a swipeable row of whole detail photos at their natural proportions, bottoms aligned */
  .pdp-strip { --strip-h: min(80vw, 62vh); align-items: flex-end; gap: 12px; }
  .pdp-strip__item { width: auto; }
  .pdp-strip__link { aspect-ratio: var(--r, .75); width: min(84vw, calc(var(--strip-h) * var(--r, .75))); }
  .pdp-strip__img { object-fit: contain; }
  .pdp-strip__link:hover .pdp-strip__img { transform: none; }
}

/* landscape phones: each room view fits the short screen whole, centred and clear of the notch */
@media (orientation: landscape) and (max-height: 540px) {
  .pdp-rooms__grid, .pdp-rooms__grid--one { align-items: center; gap: 16px; padding: 0 var(--pdp-pad); background: none; border: 0; }
  .pdp-rooms__grid .pdp-room, .pdp-rooms__grid--one .pdp-room {
    width: min(100%, calc(88vh * var(--r, 1.5))); width: min(100%, calc(88svh * var(--r, 1.5)));
  }
}

/* small phones: one full-width button per row */
@media (max-width: 599px) {
  .pdp-buttons { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-slide--hang .pdp-frame, .pdp-slide--photo .pdp-frame__img { transform: none; }
}
