/* ============================================================
   OZYDE — Bridal page
   ============================================================
   Everything the bridal page needs that isn't already a shared
   component. The cost stack, pending-terms panel, locked service and
   wizard all come from pricing.css / booking.css unchanged — this file
   only adds the film and the three-gown layout.

   ALL BRIDAL MEDIA IS PORTRAIT 9:16 (720x1280), because it came off a
   vertical shoot. Nothing here crops it: the frames are composed for
   that ratio and a 3:4 centre crop cuts the hem off the mirror-column
   gown, whose subject sits low and small in a wide garden. The columns
   are narrowed instead, so a tall card stays a sensible height.
   ============================================================ */

/* ---- The collection film ---------------------------------------------
   A 60-second reel at 6.6MB. preload="none" plus a poster means none of
   that is fetched until someone presses play, which is why this can sit
   on the page at all. Silent by design — audio is stripped from every
   video on this site — so no mute affordance is needed. */
.bridal-film {
  /* A 9:16 frame gets tall fast: at 420px wide it is 747px, which on a laptop
     is the entire viewport. Cap the width against viewport height as well, so
     the film always leaves its heading and the page around it on screen. */
  max-width: min(420px, 40vh);
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--ink);
  line-height: 0; /* kill the inline-descender gap under the video */
}

.bridal-film__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
}

/* ---- Three clips, side by side --------------------------------------
   Desktop: an ordinary 3-up grid, each cell an unmodified .bridal-film
   (its own max-width:min(420px,40vh) still caps how big any one clip
   gets). Narrow screens switch to a horizontal scroll-snap strip instead
   of letting a 3-column grid collapse to one column and stack three tall
   9:16 videos underneath each other — see the breakpoint below. */
.bridal-film-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
}

.bridal-film-row .bridal-film { margin-inline: 0; }

@media (max-width: 760px) {
  .bridal-film-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    /* Enough side padding that the FIRST and LAST clip can also reach true
       centre — without it, a slide narrower than the row can only scroll
       until its own edge hits the row's edge, so clip one would sit flush
       left instead of centred. */
    padding-inline: max(var(--gutter), calc((100% - min(320px, 84vw)) / 2));
    padding-bottom: 4px; /* clears the mobile scrollbar some browsers still draw */
    -webkit-overflow-scrolling: touch;
  }

  .bridal-film-row .bridal-film {
    flex: 0 0 min(320px, 84vw);
    scroll-snap-align: center;
  }
}

/* ---- The three gowns -------------------------------------------------- */
.bridal-looks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
}

.bridal-look {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* height:auto is load-bearing, not tidying. The <img> carries width/height
   attributes so the browser can reserve the space before the file arrives,
   and those attributes set a used height of 1280px — aspect-ratio only gets
   to compute a height when height is auto, so without this the frames render
   345px wide by 1280px tall and the section triples in length. */
.bridal-look img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.bridal-look figcaption h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.bridal-look figcaption p {
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0.78;
  max-width: 38ch;
}

/* ---- The two gowns together ------------------------------------------
   Sits below the trio as the payoff shot, so it gets a wider frame and
   the copy runs beside it rather than under it. */
.bridal-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 84px);
}

.bridal-pair img {
  width: 100%;
  height: auto; /* see the note on .bridal-look img */
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.bridal-pair h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.bridal-pair p {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.78;
  max-width: 46ch;
  margin-bottom: 28px;
}

/* ---- Responsive -------------------------------------------------------
   Three portrait cards stop working well before the usual breakpoint —
   at 900px each column is under 280px and the captions start breaking
   mid-word. Two up, then one. */
@media (max-width: 980px) {
  .bridal-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bridal-look:last-child { grid-column: 1 / -1; max-width: 460px; }
}

@media (max-width: 760px) {
  .bridal-pair { grid-template-columns: 1fr; }
  .bridal-pair img { max-width: 380px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .bridal-looks { grid-template-columns: 1fr; gap: 40px; }
  .bridal-look:last-child { max-width: none; }
  .bridal-look img,
  .bridal-film { max-width: 380px; margin-inline: auto; }
  .bridal-look figcaption { text-align: left; }
}
