/* ─────────────────────────────────────────────────────────────────────────
   Crown Wedding Videos — every page except the home page.
   Layouts rebuilt from the Elementor site (Oct 2026; 1140px content). Type and spacing brought in line with the home
   page (Nov 2026): Playfair Display headings, Montserrat body, the same sizes and line heights as reel.css.
   Every section's outer element has class "w" (so block previews in the editor get the right type too).
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --w-ink: #161616;
  --w-black: #000;
  --w-slate: #6f7b84;
  --w-sage: #b9cbc7;
  --w-mist: #e0e8e6;
  --w-lilac: #f2f2f6;
  --w-blush: #ebbfaf;
  --w-card-ink: #3f444b;
  --w-body: #3f444b;                                                  /* body text on white (headings use --w-ink) */
  --w-head: 'Playfair Display', Georgia, 'Times New Roman', serif;     /* as reel.css --font-head */
  --w-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;          /* as reel.css --font */
  --w-h: clamp(1.9rem, 1.3rem + 2vw, 3rem);                            /* section heading size = home .q-h */
  --w-gap: clamp(24px, 2.2vw, 32px);
  --w-pad: clamp(80px, 8.5vw, 128px);
}

.dir-wed { background: #fff; color: var(--w-body); font-family: var(--w-font); font-size: 1rem; line-height: 1.75; font-weight: 400; }
.w { font-family: var(--w-font); font-size: 1rem; line-height: 1.75; font-weight: 400; color: var(--w-body); background: #fff; position: relative; }
.dir-wed :where(main) a, .w a { color: var(--w-ink); transition: color .2s; }   /* page content only: the header and footer have their own */
.dir-wed :where(main) a:hover, .w a:hover { color: var(--w-slate); }
.w strong, .w b { font-weight: 700; }
.w em { font-style: italic; }

.w-wrap { width: 100%; max-width: calc(1140px + 66px); margin-inline: auto; padding-inline: 33px; }
.w-narrow { width: 100%; max-width: calc(900px + 66px); margin-inline: auto; padding-inline: 33px; }

/* ── Type (as the home page: .q-h headings, .q-prose body, figcaption names) ── */
.w-h1, .w-h2 { font-family: var(--w-head); font-size: var(--w-h); line-height: 1.12; font-weight: 400; letter-spacing: -.01em; color: var(--w-ink); text-wrap: balance; }
.w-prose p { margin: 0 0 .9em; text-wrap: pretty; }
.w-prose h2 { font-family: var(--w-head); font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.2; font-weight: 400; letter-spacing: -.01em; color: var(--w-ink); margin: .4em 0 .6em; }
.w-prose--justify p { text-align: justify; }
.w-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.w-name { font-size: .88rem; line-height: 1.5; font-weight: 500; letter-spacing: .02em; color: var(--w-ink); }

.w-btn-wrap { margin: 0; }
.w-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 26px; border: 0; border-radius: 0;
  background: var(--w-lilac); color: var(--w-ink); font-family: var(--w-font); font-size: .92rem; line-height: 1.2; font-weight: 500; letter-spacing: .02em; cursor: pointer;
  transition: color .2s;
}
.dir-wed .w-btn:hover, .w .w-btn:hover, .w-btn:focus-visible { color: var(--w-slate); background: var(--w-lilac); }

.w-line { display: block; width: 100%; height: 1px; background: var(--w-black); }

/* ── Drawings beside some headings (flower, herb, wreath, bird) — sit behind the text, nudged up and left ── */
.w-deco { position: relative; z-index: 8; }
.w-deco::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100px; height: 100px; z-index: -1; pointer-events: none;
  transform: translate(-75px, -75px); background: no-repeat center / contain;
}
.w-deco--flwr::before { background-image: url(../img/deco-flower.webp); }
.w-deco--flwr2::before { background-image: url(../img/deco-herb.webp); }
.w-deco--bird::before { background-image: url(../img/deco-bird.webp); }
.w-deco--wreath::before { transform: translate(-85px, -85px); background-size: 80%; background-image: url(../img/deco-wreath.webp); }

/* ── Photo band (top of About / Contact) ── */
.w-photo {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: calc((100vh - var(--header-h)) / 1.2); padding: 33px; background-color: #ddd; background-size: cover; background-repeat: no-repeat;
}
@media (min-width: 1025px) and (hover: hover) { .w-photo { background-attachment: fixed; } }
.w-photo__text { width: 100%; max-width: 900px; text-align: center; color: #fff; font-family: var(--w-head); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.35; }
.w-photo__text p { margin: 0 0 .6em; }
@media (max-width: 1024px) { .w-photo { min-height: 500px; } }
@media (max-width: 767px) { .w-photo { min-height: 360px; } }

/* ── Page heading (Films, Testimonials) ── */
.w-title { padding-top: var(--w-pad); text-align: center; }
.w-title .w-h1 { color: var(--w-ink); }
.w-title__text { max-width: 52ch; margin: var(--w-gap) auto 0; }
.w-title__text p { margin: 0 0 .9em; }
.w-title--lg .w-title__text { font-size: 1.125rem; }

/* ── Text with three photos ── */
.w-story { padding-block: var(--w-pad); }
.w-story__grid { display: flex; justify-content: space-between; align-items: center; gap: var(--w-gap); }
.w-story__text { flex: 0 0 40%; display: flex; flex-direction: column; gap: var(--w-gap); }
.w-story__sub { font-family: var(--w-head); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.3; font-weight: 400; color: var(--w-ink); }
.w-story__imgs { flex: 0 0 45%; display: flex; flex-direction: column; gap: 10px; }
.w-story__img img { width: 100%; height: 270px; object-fit: cover; }
.w-story--flip .w-story__imgs { order: -1; }
/* photo links: the name over the photo (live home page's film styles) */
.w-story__tile { position: relative; display: block; overflow: hidden; color: #fff; }
.w-story__tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); transition: background-color .3s ease; }
.w-story__label { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 1rem; font-family: var(--w-head); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.2; font-weight: 400; letter-spacing: -.01em; text-align: center; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.dir-wed :where(main) a.w-story__tile, .w a.w-story__tile { color: #fff; }
a.w-story__tile:hover::after, a.w-story__tile:focus-visible::after { background: rgba(0,0,0,.38); }
a.w-story__tile:focus-visible { outline: 2px solid var(--w-ink); outline-offset: 3px; }
@media (max-width: 767px) {
  .w-story__grid { flex-direction: column; align-items: stretch; }
  .w-story__text, .w-story__imgs { flex: none; width: 100%; }
  .w-story--flip .w-story__imgs { order: 0; }
}

/* ── Team ── */
/* As in the 2027 brochure (page 4): the photos fill the text's width, three to a row, gaps a fifth of a photo; names
   in italics underneath, no boxes. The first person (Jack) sits in the middle of the top row, 20% larger, lifted so
   every photo in the row ends on the same line and the names line up. Column = 100% / 3.4, gap = 0.2 column. */
.w-team { padding: var(--w-pad) 33px; }
.w-team__inner { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--w-gap); }
.w-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 5.88%; row-gap: clamp(28px, 3vw, 40px); align-items: start; margin-top: 12px; }
.w-member { text-align: center; color: var(--w-ink); }
.w-member__img img { display: block; width: 100%; height: auto; aspect-ratio: 11 / 12; object-fit: cover; }
.w-member__name, .w-member__role { font-family: var(--w-head); font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.35; font-weight: 400; }
.w-member__name { margin-top: 14px; font-style: italic; }
.w-member__role { font-style: italic; }
.w-team__grid--lead { padding-top: 6.42%; }   /* room for the lifted photo: 0.2 × 12/11 of a column (column = 1/3.4 of the row) */
.w-team__grid--lead .w-member--lead { grid-column: 2; grid-row: 1; margin: -21.8% -10% 0; }   /* % of the column */
.w-member--lead .w-member__name { font-style: normal; }
@media (max-width: 599px) {   /* phones: the first person on their own above, the others two to a row */
  .w-team__grid { grid-template-columns: repeat(2, 1fr); column-gap: 7%; }
  .w-team__grid--lead { padding-top: 0; }
  .w-team__grid--lead .w-member--lead { grid-column: 1 / -1; grid-row: auto; margin: 0 0 8px; }
  .w-member--lead .w-member__img { width: 62%; margin-inline: auto; }
  .w-team__grid--lead .w-member:not(.w-member--lead):last-child:nth-child(even),
  .w-team__grid:not(.w-team__grid--lead) .w-member:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 46.5%; }   /* odd one out: centred */
}

/* ── Testimonial lines (desktop): "Text with three photos" puts its photos 5% of the content width right of the page
   centre (text 40% + photos 45%, space-between). Quote bands and quote pairs snap to that line and to its mirror left
   of centre, so every quote on a page lines up: right-hand quotes start at centre + 5%, left-hand ones end at
   centre − 5% (content width = min(1140px, page − 66px)). ── */

/* ── Quote and photo ── */
.w-band { display: grid; grid-template-columns: 1fr 1fr; }
.w-band__panel { min-height: 500px; padding: 66px; display: flex; flex-direction: column; justify-content: center; gap: var(--w-gap); color: var(--w-ink); }
/* the panel is half the page wide, so 10% of it = 5% of the page: min(57px, 5% of the content width) from the centre */
@media (min-width: 768px) {
  .w-band__panel { padding-right: min(57px, 10% - 3.3px); text-align: right; }   /* left-hand quote: text sits on the line */
  .w-band--right .w-band__panel { padding-right: 66px; padding-left: min(57px, 10% - 3.3px); text-align: left; }
}
.w-band__panel--blush { background: var(--w-blush); }
.w-band__panel--sage { background: var(--w-sage); }
.w-band__quote { font-family: var(--w-head); font-size: clamp(1.1rem, 1rem + .4vw, 1.375rem); line-height: 1.55; font-weight: 400; color: var(--w-ink); }
.w-band__panel .w-line { margin-block: 2px; }
.w-band__media { position: relative; overflow: hidden; min-height: 333px; background: #ccc; }
.w-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* silent loop scaled to cover the box (16:9 iframe) */
.w-band__media { container-type: size; }
.w-bgvid { position: absolute; top: 50%; left: 50%; width: max(100%, calc(100cqh * 16 / 9)); height: max(100%, calc(100cqw * 9 / 16)); transform: translate(-50%, -50%); border: 0; pointer-events: none; max-width: none; transition: opacity .8s ease; }
/* over a poster or photo, the loop stays hidden until it's really playing (video.js adds is-playing), so no black frame or error shows */
.w-band__media img ~ .w-bgvid:not(.is-playing) { opacity: 0; }
.w-band--right .w-band__panel { order: 2; }
@media (max-width: 767px) {
  .w-band { grid-template-columns: 1fr; }
  .w-band__panel { min-height: 330px; padding: 40px 33px; order: 0 !important; }
  .w-band__media { height: 333px; }
  .w-band--photo-first .w-band__media { order: -1; }
}

/* ── Two quotes with photos: a 10% gap in the content box = 5% either side of the centre (the testimonial lines) ── */
.w-pair { padding-block: var(--w-pad); }
.w-pair--lilac { background: var(--w-lilac); }
.w-pair__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10%; row-gap: var(--w-gap); align-items: start; }
.w-pair__item { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: var(--w-gap); }
.w-pair__item:nth-child(odd) { justify-self: end; text-align: right; }   /* left-hand quote: text sits on the line */
.w-pair__item:nth-child(even) { justify-self: start; }
.w-pair__img img { width: 100%; height: 333px; object-fit: cover; }
.w-pair__quote p { margin: 0 0 .9em; }
@media (max-width: 767px) {
  .w-pair__grid { grid-template-columns: 1fr; }
  .w-pair__item:nth-child(n) { justify-self: stretch; max-width: none; text-align: left; }
}

/* ── Films grid ── */
.w-films { padding: var(--w-gap) 0 var(--w-pad); }
.w-films__filters { margin: 0 0 22px; text-align: center; }
.w-filter {
  position: relative; margin: 0 14px 6px; padding: 6px 0; background: none; border: 0;
  font-family: var(--w-font); font-size: .78rem; line-height: 1.15; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--w-ink);
}
.w-filter::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: #000; transition: width .25s ease; }
.w-filter:hover::after, .w-filter[aria-pressed="true"]::after { width: 100%; }
.w-films__grid { display: flex; flex-wrap: wrap; gap: var(--w-gap); transition: opacity .5s ease; }
.w-films__grid.is-fading { opacity: 0; }
.w-film { position: relative; flex: 0 0 calc((100% - var(--w-gap)) / 2); max-width: calc((100% - var(--w-gap)) / 2); padding-bottom: 15px; background: #fff; color: var(--w-ink); }
.w-film__media { position: relative; background: #fff; }
.w-film__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .3s; }
.w-film__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.w-film.is-previewing .w-film__media img { opacity: .2; }
.w-film__content { margin-top: 14px; }
.w-film__title { margin: 0 0 4px; font-family: var(--w-head); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.3; font-weight: 400; letter-spacing: -.01em; }
.w-film__title a { color: inherit; }
.w-film__title a:hover { text-decoration: underline; color: inherit; }
.w-film__meta { font-size: .88rem; line-height: 1.5; color: var(--w-body); }
.w-film__link { position: absolute; inset: 0; z-index: 1; }
.w-film:focus-within { outline: 2px solid #000; outline-offset: 4px; }
.w-film__title a:focus-visible { outline: none; }
.w-films__more { margin-top: 24px; text-align: center; }
.w-more {
  display: inline-block; padding: 12px 20px; border: 1px solid #000; background: #fff; color: #000;
  font-family: var(--w-font); font-size: .8rem; line-height: 1.2; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.dir-wed .w-more:hover, .w .w-more:hover { background: #000; color: #fff; }
.w-films__empty { text-align: center; }
@media (max-width: 640px) { .w-film { flex-basis: 100%; max-width: 100%; } }

/* ── Contact details (grey) ── */
.w-contact { background: var(--w-lilac); padding-block: var(--w-pad); }
.w-contact .w-h1 { margin-bottom: calc(var(--w-gap) * 2); }
.w-contact__text .w-prose:last-child > :last-child { margin-bottom: 0; }
.w-contact__row { display: flex; gap: 45px; align-items: flex-start; }
.w-contact__text { flex: 0 0 30%; display: flex; flex-direction: column; gap: var(--w-gap); }
.w-contact__imgs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.w-contact__imgs img { width: 100%; aspect-ratio: 146 / 198; height: auto; object-fit: cover; }
@media (max-width: 767px) {
  .w-contact__row { flex-direction: column; gap: var(--w-gap); }
  .w-contact__text { flex: none; gap: 5px; }
  .w-contact__imgs { flex: none; width: 100%; grid-template-columns: repeat(2, 1fr); }
  .w-contact__imgs img { aspect-ratio: 162 / 220; }
}

/* ── Enquiry form ── */
.w-enquiry { padding-block: var(--w-pad); }
.w-enquiry .w-narrow { display: flex; flex-direction: column; gap: var(--w-gap); }
.w-enquiry__line { margin-block: 15px; }
.w-enquiry__title { scroll-margin-top: calc(var(--header-h) + 40px); }
.w-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 44px; margin-bottom: var(--w-pad); }
.w-field { position: relative; }
.w-field--full { grid-column: 1 / -1; }
.w-field input, .w-field textarea {
  display: block; width: 100%; height: 46px; padding: 8px 16px; border: 0; border-bottom: 2px solid var(--w-slate); border-radius: 0;
  background: var(--w-mist); color: var(--w-ink); font-family: var(--w-font); font-size: .95rem; line-height: 1.3; -webkit-appearance: none; appearance: none;
}
.w-field textarea { height: 92px; padding-block: 11px; resize: none; overflow-y: auto; }   /* plans: twice a field's height, scrolls when longer */
.w-field input::placeholder, .w-field textarea::placeholder { color: var(--w-body); opacity: .75; }
.w-field input:focus, .w-field textarea:focus { outline: 2px solid var(--w-slate); outline-offset: 2px; }
.w-field .field-error { position: absolute; top: calc(100% + 4px); left: 0; font-size: .82rem; line-height: 1.4; color: #a1281b; }
.w-field.has-error input, .w-field.has-error textarea { border-bottom-color: #a1281b; }
.w-form .w-btn { height: 46px; padding: 0 26px; }
.w-done { padding: 24px 0 33px; }
.w-done__title { font-family: var(--w-head); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; font-weight: 400; color: var(--w-ink); margin-bottom: 12px; }
.w-enquiry__note { margin: 0 0 7px; }
.w-enquiry .cf__alert { margin: 0; }
@media (max-width: 767px) { .w-form { grid-template-columns: 1fr; } }

/* ── Text section ── */
.w-text { padding-block: var(--w-pad); }
.w-text .w-narrow { display: flex; flex-direction: column; gap: var(--w-gap); }
.w-text .w-prose > :last-child { margin-bottom: 0; }
.w-text--lilac { background: var(--w-lilac); }
.w-text--sage { background: var(--w-sage); }
.w-text--blush { background: var(--w-blush); }

/* ── Film page: player pinned near the top while the section fades to black ── */
.w-cinema { min-height: 150vh; padding-block: 33px; background-color: #fff; transition: background-color 2s ease; }
.w-cinema.in-view { background-color: #000; }
.w-cinema__player { position: sticky; top: calc(var(--header-h) + 33px); padding-bottom: 33px; }
.admin-bar .w-cinema__player { top: calc(var(--header-h) + 65px); }
.w-cinema__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.w-cinema__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-post { padding-block: var(--w-pad); }
.w-post .w-h1 { margin-bottom: var(--w-gap); }
.w-post__content { color: var(--w-body); }
.w-post__content > :last-child { margin-bottom: 0; }
.w-post__content p:empty { display: none; }
.w-post__content p { margin: 0 0 .9em; }
.w-post__content h2, .w-post__content h3 { font-family: var(--w-head); font-weight: 400; line-height: 1.25; color: var(--w-ink); margin: 1.6em 0 .6em; }
.w-post__content h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); }
.w-post__content h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); }
.w-post__content ul, .w-post__content ol { margin: 0 0 .9em 1.2em; list-style: disc; }

/* 404 */
.w-spacer { height: var(--w-pad); }

/* Shared: spam trap, form error note (also in wp.css for the home page) */
.cf__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf__alert { padding: .8rem 1rem; border-left: 2px solid #c0392b; background: #fbeeec; color: #7a1f14; font-size: .95rem; }
.w-band__quote p + p { margin-top: .8em; }
