/* plentymedia.co/realtors/listing-photos | showcase of one real listing shoot. Mobile first.
   Tokens, header, buttons, .cred cards, .section-head and .contact come from ../style.css (the realtors page). */

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.lp img { -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Photo openers are buttons (no link to the image file, Antonio 2026-10-22: no downloads). */
.reel__open, .tile__open {
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit;
  cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.lp .container { max-width: calc(var(--hero-max) + 2 * var(--pad)); }

/* ---------- intro: what this is, in one line. No address or house facts (Antonio, 2026-10-29). ---------- */
.lp-intro { padding: 12px 0 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--light-2); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--card-gray); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--light-2); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); }
.lp-intro__head { display: grid; gap: 10px; margin-top: 2px; }
.lp-intro__title {
  font-size: clamp(2.125rem, 9vw, 4.5rem);
  font-weight: 700; font-stretch: 120%; font-variation-settings: 'wdth' 120, 'wght' 700;
  line-height: 1.04; letter-spacing: -0.015em; color: var(--white); text-wrap: balance;
}
.lp-intro__lede { max-width: 34ch; font-size: 17px; line-height: 1.5; color: var(--light-2); text-wrap: pretty; }
@media (min-width: 900px) {
  .lp-intro { padding: 20px 0 24px; }
  .lp-intro__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; margin-top: 6px; }
  .lp-intro__lede { max-width: 30ch; padding-bottom: 6px; font-size: 18px; text-align: right; }
}

/* ---------- highlights reel ----------
   One clock drives it: the gold segment fills in --reel-ms and the photo's camera move lasts the same time; when the
   segment ends, the next photo slides in from the right. A swipe follows the finger (native horizontal scroll), the
   arrows step, the button pauses everything. Vertical scroll is never captured. With reduced motion: no autoplay, no pan. */
.reel { --reel-ms: 6000ms; background: var(--rb); }
.reel__wrap { position: relative; }
.reel__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  transition: opacity 0.28s ease;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel.is-jump .reel__track { opacity: 0; }
.reel__slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
html:not(.js) .reel__slide:not(:first-child), html:not(.js) .reel__ui { display: none; }
.reel__open { position: relative; display: block; width: 100%; }
.reel__media {
  position: relative; display: block; overflow: hidden; background: var(--s1);
  height: min(56vh, 520px); height: min(56svh, 520px);
}
.reel__img {
  position: absolute; top: 0; left: 0; height: 100%; width: auto; min-width: 100%; max-width: none; aspect-ratio: 3 / 2;
  object-fit: cover; opacity: 1; transition: opacity 0.5s ease;
}
html.js .reel__img:not([src]) { opacity: 0; }
/* Phones: the photo keeps its 3:2 shape at the frame height and pans sideways, like a slow camera move.
   translate % is the photo's own width, so (100vw - 100%) is how far it can travel; min() keeps wide frames still. */
@keyframes reel-pan {
  from { translate: min(0px, calc((100vw - 100%) * 0.08)) 0; }
  to { translate: min(0px, calc((100vw - 100%) * 0.92)) 0; }
}
@keyframes reel-zoom { from { scale: 1; } to { scale: 1.05; } }
@keyframes reel-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel__img { translate: min(0px, calc((100vw - 100%) * 0.08)) 0; }
.reel.is-live .reel__slide.is-cur .reel__img { animation: reel-pan var(--reel-ms) cubic-bezier(0.45, 0, 0.55, 1) both; will-change: translate; }
.reel__cap { display: flex; align-items: baseline; gap: 12px; min-height: 60px; padding: 14px var(--pad) 0; }
.reel__count { flex: none; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); font-variant-numeric: tabular-nums; }
.reel__room {
  font-size: 24px; font-weight: 700; font-stretch: 112%; font-variation-settings: 'wdth' 112, 'wght' 700;
  line-height: 1.15; letter-spacing: -0.005em; color: var(--white);
}
.reel__ui { display: flex; align-items: center; gap: 8px; padding: 0 var(--pad) 10px; }
.reel__bar { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; margin-right: 6px; }
.reel__bar li { flex: 1 1 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.reel__bar span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.reel__bar .is-done span, .reel:not(.is-live) .reel__bar .is-cur span { transform: none; }
.reel.is-live .reel__bar .is-cur span { animation: reel-fill var(--reel-ms) linear both; }
.reel.is-paused .reel__bar .is-cur span, .reel.is-paused .reel__slide.is-cur .reel__img { animation-play-state: paused; }
.reel__btn {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--s1); color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.reel__btn svg { width: 18px; height: 18px; }
.reel__btn:focus-visible { outline-offset: 2px; }
@media (hover: hover) { .reel__btn:hover { background: var(--white); border-color: var(--white); color: var(--rb); } }
/* Touch screens step with a swipe; the arrows show where a mouse or keyboard is the way in. On touch screens they stay
   in the page for screen readers (VoiceOver swipes to them) and show when a keyboard focuses them. */
.reel__btn--step:not(:focus-visible) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .reel__btn--step:not(:focus-visible) { position: static; width: 44px; height: 44px; margin: 0; border: 1px solid var(--line-2); overflow: visible; clip: auto; }
}
html.reduced-motion .reel__btn--play { display: none; }
html.reduced-motion .reel__btn--step:not(:focus-visible) { position: static; width: 44px; height: 44px; margin: 0; border: 1px solid var(--line-2); overflow: visible; clip: auto; }

@media (min-width: 600px) {
  .reel.is-live .reel__slide.is-cur .reel__img { animation-name: reel-zoom; }
  .reel__img { translate: none; width: 100%; }
}
@media (min-width: 900px), (max-height: 520px) and (orientation: landscape) {
  .reel__wrap { max-width: calc(var(--hero-max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
  .reel__media { height: clamp(420px, 64vh, 800px); height: clamp(420px, 64svh, 800px); border-radius: 20px; }
  .reel__cap { min-height: 76px; padding: 22px 0 0; gap: 16px; }
  .reel__room { font-size: 32px; font-stretch: 120%; font-variation-settings: 'wdth' 120, 'wght' 700; }
  .reel__ui { gap: 10px; padding: 0 0 14px; }
  .reel__bar { margin-right: 14px; }
}
/* Phone on its side: title on one line with the place beside it, so the photo starts on the first screen and the
   whole reel fits under the header (brand critic, rework round 1). */
@media (max-height: 520px) and (orientation: landscape) {
  .lp-intro { padding: 0; }
  .lp-intro__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-top: 0; }
  .lp-intro__title { font-size: clamp(1.75rem, 8svh, 2.25rem); }
  .lp-intro__lede { max-width: 26ch; padding-bottom: 0; font-size: 16px; text-align: right; }
  .reel__media { min-height: 160px; height: calc(100svh - var(--header-h) - 150px); }
  .reel__cap { min-height: 64px; padding-top: 16px; }
  .reel__room { font-size: 24px; }
}
/* Focus ring above the photo (the image would paint over an outline), with a dark companion line for bright walls. */
.reel__open:focus-visible, .tile__open:focus-visible { outline: none; }
.reel__open:focus-visible .reel__media::after, .tile__open:focus-visible::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px rgba(11, 12, 13, 0.7);
}

/* ---------- all photos: room chips + masonry ---------- */
.gallery { background: var(--rb); }
.chips {
  position: sticky; top: var(--header-h); z-index: 5;
  margin-inline: calc(-1 * var(--pad)); padding: 10px var(--pad);
  background: rgba(11, 12, 13, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chips__row {
  display: flex; gap: 8px;
  margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chips__row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--s1); color: var(--light-2);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip__n { font-variant-numeric: tabular-nums; color: var(--card-gray); font-weight: 500; }
.chip[aria-pressed='true'] { background: var(--white); border-color: var(--white); color: var(--rb); }
.chip[aria-pressed='true'] .chip__n { color: var(--ink-72); }
@media (hover: hover) { .chip:hover:not([aria-pressed='true']) { border-color: rgba(255, 255, 255, 0.4); color: var(--white); } }

/* Masonry that keeps reading order: rows of 1/12 column width, each tile spans rows by its shape.
   Tall tiles crop the photo to about 4:5; the viewer always shows the whole photo. */
.masonry { margin-top: 16px; container-type: inline-size; }
.masonry__grid {
  --cols: 2; --g: 8px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--g);
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols) / 12);
}
.tile { grid-row: span 8; padding-bottom: var(--g); }
.tile--wide43 { grid-row: span 9; }
.tile--tall { grid-row: span 15; }
.tile--feature { grid-column: span 2; grid-row: span 16; }
.tile--feature.tile--wide43 { grid-row: span 18; }
.tile[hidden] { display: none; }
.tile__open img, .tile__open noscript img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: scale 0.8s var(--ease-out), opacity 0.5s ease;
}
html.js .tile__open img:not([src]) { opacity: 0; }
html:not(.js) .tile__open picture { display: none; }
.tile__open {
  position: relative; display: block; width: 100%; height: 100%;
  overflow: hidden; border-radius: 12px; background: var(--s1);
}
.tile__open:focus-visible { outline-offset: -3px; }
.tile__label {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(11, 12, 13, 0.76); color: var(--white);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  opacity: 0; translate: 0 6px; transition: opacity 0.3s ease, translate 0.3s var(--ease-out);
}
@media (hover: hover) {
  .tile__open:hover img { scale: 1.05; }
  .tile__open:hover .tile__label, .tile__open:focus-visible .tile__label { opacity: 1; translate: 0 0; }
}
@keyframes tile-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.masonry.is-filtered .tile:not([hidden]) { animation: tile-in 0.5s var(--ease-out) both; }
@supports not (container-type: inline-size) {
  .masonry__grid { grid-auto-rows: auto; row-gap: var(--g); }
  .tile, .tile--wide43, .tile--tall, .tile--feature { grid-row: auto; padding-bottom: 0; }
  .tile__open { height: auto; aspect-ratio: 3 / 2; }
}
@media (min-width: 900px) {
  .masonry { margin-top: 24px; }
  .masonry__grid { --cols: 3; --g: 12px; }
  .chips { padding-block: 14px; }
}

/* ---------- contact (shares .contact from ../style.css) ---------- */
html.js .contact__bg img:not([src]) { opacity: 0; }
html:not(.js) .contact__bg picture { display: none; }
.contact__bg img { transition: opacity 0.6s ease; }
.lp-contact .contact__bg img { object-position: 50% 60%; }
.lp-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lp-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px;
  font-size: 16px; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.25s ease;
}
.lp-link svg { width: 18px; height: 18px; transition: translate 0.3s var(--ease-out); }
.lp-link:hover { text-decoration-color: var(--white); }
.lp-link:hover svg { translate: 3px 0; }

/* ---------- full-screen viewer (no download control on purpose: Antonio, 2026-10-22) ---------- */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #000; color: var(--white);
  overscroll-behavior: contain;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.94); }
.viewer[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.viewer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(env(safe-area-inset-top), 8px) max(8px, calc(var(--pad) - 4px)) 8px var(--pad);
}
.viewer__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.viewer__count { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viewer__room { font-size: 16px; color: var(--light-2); }
.viewer__tools { display: flex; gap: 6px; flex: none; }
.viewer__btn, .viewer__nav {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease, scale 0.25s var(--ease-out);
}
.viewer__btn svg, .viewer__nav svg { width: 20px; height: 20px; }
@media (hover: hover) { .viewer__btn:hover, .viewer__nav:hover:not([aria-disabled='true']) { background: var(--white); color: var(--rb); } }
.viewer__btn:focus-visible, .viewer__nav:focus-visible { outline-offset: 2px; }
.viewer__progress { height: 2px; margin-inline: var(--pad); background: rgba(255, 255, 255, 0.12); overflow: hidden; border-radius: 2px; visibility: hidden; }
.viewer.is-playing .viewer__progress { visibility: visible; }
.viewer__progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.viewer.is-playing .viewer__progress span.run { animation: vprog var(--slide-ms, 4000ms) linear both; }
@keyframes vprog { to { transform: scaleX(1); } }
.viewer__track {
  display: flex; min-height: 0;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track:focus { outline: none; }
.viewer__slide {
  flex: 0 0 100%; min-width: 0; margin: 0;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  padding: 8px 0 max(env(safe-area-inset-bottom), 16px);
  scroll-snap-align: center; scroll-snap-stop: always;
}
.viewer__slide picture { display: block; width: 100%; height: 100%; min-height: 0; }
.viewer__slide img {
  width: 100%; height: 100%; object-fit: contain;
  -webkit-touch-callout: none; user-select: none;
  opacity: 0; transition: opacity 0.35s ease;
}
.viewer__slide img.is-loaded { opacity: 1; }
.viewer__nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; translate: 0 -50%; display: none; }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__nav[aria-disabled='true'] { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine), (min-width: 900px) {
  .viewer__nav { display: inline-grid; }
  .viewer__slide { padding: 8px 88px 32px; }
}
html.viewer-open { overflow: hidden; }
