/* Wedding films gallery: streaming-style billboard, rows, info panel. Cards and player are 2.4:1 (scope). */
.page-films { background: #100f0e; }
.films { --pad: clamp(16px, 4vw, 56px); --gold: #c4a275; padding-bottom: 40px; }

/* ---------- Billboard ---------- */
.fm-bill { position: relative; overflow: hidden; min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: 140px var(--pad) clamp(40px, 7vh, 80px); background: #100f0e; }
.fm-bill-in { max-width: 560px; }
.fm-kicker { font: 600 12px var(--tag); text-transform: uppercase; letter-spacing: .22em; color: var(--gold); margin: 0 0 14px; }
.fm-bill-title { font: 500 clamp(40px, 6vw, 76px)/1 var(--head); text-transform: uppercase; color: var(--bone); margin: 0; }
.fm-meta { font: 400 12px var(--tag); text-transform: uppercase; letter-spacing: .1em; color: #b8b2a9; margin: 14px 0 0; }
.fm-bill-about { font: 400 16px/1.6 var(--body); color: #ddd6cc; margin: 14px 0 0; max-width: 34em; }
.fm-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.fm-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px 0 20px; border-radius: 4px; border: 0; cursor: pointer;
  font: 600 13px var(--tag); text-transform: uppercase; letter-spacing: .08em; transition: background .2s, color .2s, transform .2s; }
.fm-btn svg { width: 18px; height: 18px; }
.fm-btn.play { background: var(--bone); color: #141210; }
.fm-btn.play svg { fill: currentColor; }
.fm-btn.play:hover { background: #fff; }
.fm-btn.info { background: rgba(120,114,106,.42); color: var(--bone); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fm-btn.info svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.fm-btn.info:hover { background: rgba(120,114,106,.62); }

/* ---------- Rows (all categories shown at once) ---------- */
.fm-rows { position: relative; z-index: 1; margin-top: -20px; display: grid; gap: clamp(26px, 4vh, 42px); }
.fm-row-title { font: 600 15px var(--tag); text-transform: uppercase; letter-spacing: .08em; color: var(--bone); margin: 0 var(--pad) 12px; }
.fm-rail { position: relative; }
.fm-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 6px var(--pad) 10px;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.fm-track::-webkit-scrollbar { display: none; }
.fm-card { position: relative; flex: 0 0 calc((100% - 3 * 8px) / 4.2); aspect-ratio: 2.4 / 1; scroll-snap-align: start; overflow: hidden;
  border: 0; padding: 0; border-radius: 4px; background: #1c1a18; cursor: pointer; color: var(--bone); text-align: left;
  transition: transform .3s ease, box-shadow .3s ease; }
.fm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.fm-card.has-img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); transition: background .3s; }
.fm-card.has-img:hover::after { background: rgba(0,0,0,.22); }
.fm-art, .fm-poster.no-img, .fm-mini-art.no-img { position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 70% 30%, rgba(196,162,117,.16), transparent 70%), linear-gradient(135deg, #2a2521, #161412 70%); }
.fm-name { position: absolute; z-index: 1; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); text-align: center;
  font: 500 clamp(13px, 1.05vw, 16px)/1.2 var(--head); text-transform: uppercase; letter-spacing: .3em; padding-left: .3em; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
@media (hover: hover) {
  .fm-card:hover, .fm-card:focus-visible { transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.55); z-index: 2; }
  .fm-card:hover img { filter: brightness(1.08); }
}
.fm-card:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.fm-arrow { position: absolute; top: 6px; bottom: 10px; z-index: 3; width: var(--pad); min-width: 36px; border: 0; cursor: pointer; color: #fff;
  background: rgba(16,15,14,.55); opacity: 0; transition: opacity .2s, background .2s; display: grid; place-items: center; }
.fm-arrow[hidden] { display: none; }
.fm-arrow.prev { left: 0; } .fm-arrow.next { right: 0; }
.fm-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fm-rail:hover .fm-arrow, .fm-arrow:focus-visible { opacity: 1; }
.fm-arrow:hover { background: rgba(16,15,14,.8); }

.fm-cta { text-align: center; padding: 70px var(--pad) 40px; }
.fm-cta p { font: italic 400 22px var(--head); color: #cfc8be; margin: 0 0 18px; }

/* ---------- Info panel ---------- */
.fm-modal { position: fixed; inset: 0; z-index: 150; overflow-y: auto; padding: 40px 16px; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .25s; }
.fm-modal.on { opacity: 1; }
.fm-panel { position: relative; max-width: 920px; margin: 0 auto; border-radius: 6px; overflow: hidden; background: #181614;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); transform: translateY(14px) scale(.98); transition: transform .3s ease; }
.fm-modal.on .fm-panel { transform: none; }
.fm-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #181614; color: var(--bone); display: grid; place-items: center; }
.fm-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.fm-media { position: relative; aspect-ratio: 2.4 / 1; background: #000; }
.fm-poster { position: absolute; inset: 0; background: center / cover no-repeat; }
.fm-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #181614 0%, rgba(24,22,20,0) 60%); }
.fm-media-text { position: absolute; z-index: 2; left: clamp(18px, 4vw, 44px); bottom: clamp(14px, 3vw, 30px); right: 60px; }
.fm-m-title { font: 500 clamp(30px, 4.6vw, 52px)/1 var(--head); text-transform: uppercase; color: var(--bone); margin: 0 0 16px; }
.fm-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.fm-media.playing .fm-media-text, .fm-media.playing .fm-poster { visibility: hidden; }
.fm-body { padding: 22px clamp(18px, 4vw, 44px) 34px; }
.fm-m-meta { margin: 0; color: var(--gold); }
.fm-m-about { font: 400 16px/1.65 var(--body); color: #ddd6cc; margin: 12px 0 0; max-width: 42em; }
.fm-more { margin-top: 30px; }
.fm-more-title { font: 600 14px var(--tag); text-transform: uppercase; letter-spacing: .08em; color: var(--bone); margin: 0 0 14px; }
.fm-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fm-mini { border: 0; padding: 0; background: #22201d; border-radius: 4px; overflow: hidden; cursor: pointer; text-align: left; color: var(--bone); transition: background .2s; }
.fm-mini:hover { background: #2c2925; }
.fm-mini-art { position: relative; display: block; aspect-ratio: 2.4 / 1; background: center / cover no-repeat; }
.fm-mini-art.no-img { position: relative; inset: auto; }
.fm-mini-art.no-img::after, .fm-poster.no-img::before { content: attr(data-name); position: absolute; inset: 0; display: grid; place-items: center;
  font: italic 500 18px var(--head); color: var(--bone); opacity: .9; }
.fm-poster.no-img::before { font-size: clamp(26px, 4vw, 40px); opacity: .25; }
.fm-mini-name { display: block; padding: 10px 12px 0; font: italic 500 17px var(--head); }
.fm-mini-cat { display: block; padding: 2px 12px 12px; font: 400 11px var(--tag); text-transform: uppercase; letter-spacing: .08em; color: #9f988e; }

@media (max-width: 1000px) { .fm-card { flex-basis: calc((100% - 2 * 8px) / 2.6); } }
@media (max-width: 700px) {
  .fm-bill { min-height: 70vh; padding-top: 120px; }
  .fm-bg { background-position: 50% 30%; }
  .fm-shade { background: linear-gradient(0deg, #100f0e 0%, rgba(16,15,14,.75) 45%, rgba(16,15,14,.2) 100%); }
  .fm-ctrl { right: auto; left: var(--pad); bottom: 14px; }
  .fm-bill-about { font-size: 15px; }
  .fm-btn { height: 42px; padding: 0 18px 0 14px; }
  .fm-card { flex-basis: 78%; }
  .fm-arrow { display: none !important; }
  .fm-modal { padding: 0; }
  .fm-panel { border-radius: 0; min-height: 100%; }
  .fm-more-grid { grid-template-columns: 1fr 1fr; }
}

/* the film currently in the banner */
.fm-card.is-on { box-shadow: inset 0 0 0 1px rgba(236,231,223,.75); }
/* ---------- Banner slideshow: two image layers crossfade, text fades between films ---------- */
.fm-bg { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0;
  transition: opacity .4s ease; }
.fm-bg.is-on { opacity: 1; }
.fm-bg.no-img { background-image:
    radial-gradient(ellipse 60% 80% at 72% 35%, rgba(196,162,117,.18), transparent 70%), linear-gradient(135deg, #2a2521, #141210 70%) !important; }
.fm-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
    linear-gradient(90deg, rgba(16,15,14,.92) 0%, rgba(16,15,14,.6) 38%, rgba(16,15,14,.1) 70%),
    linear-gradient(0deg, #100f0e 0%, rgba(16,15,14,0) 35%); }
.fm-bill-in { position: relative; z-index: 2; transition: opacity .25s ease, transform .25s ease; }
.fm-bill-in.swap { opacity: 0; transform: translateY(8px); }
.fm-ctrl { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(40px, 7vh, 80px); display: flex; align-items: center; gap: 14px; }
.fm-dots { display: flex; gap: 6px; }
.fm-dot { position: relative; width: 26px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.fm-dot::before, .fm-dot i { content: ""; position: absolute; left: 0; top: 6px; height: 2px; border-radius: 2px; }
.fm-dot::before { right: 0; background: rgba(236,231,223,.28); }
.fm-dot i { width: 0; background: var(--bone); }
.fm-dot.done i { width: 100%; }
.fm-dot.on i { animation: fmfill var(--dur, 8s) linear forwards; }
.fm-bill.paused .fm-dot.on i { animation-play-state: paused; }
@keyframes fmfill { from { width: 0; } to { width: 100%; } }
.fm-pause { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(236,231,223,.35); border-radius: 50%; background: none; color: var(--bone); cursor: pointer; }
.fm-pause svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fm-pause .i-play { display: none; fill: currentColor; stroke: none; }
.fm-bill.paused .fm-pause .i-play { display: block; } .fm-bill.paused .fm-pause .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .fm-bg { transition: opacity .3s; transform: none !important; } .fm-bill-in { transition: none; } }
.fm-dots[hidden], .fm-pause[hidden] { display: none; }
/* Couple names on the cards: normal spacing, ampersand like the weddings hero, in the brand gold */
.fm-name { letter-spacing: 0; padding-left: 0; font-size: clamp(15px, 1.25vw, 19px); }
.fm-name .amp { font-style: italic; font-weight: 400; text-transform: none; color: #c4a275; padding: 0 .06em; }
.fm-name .amp { font-style: normal; font-weight: 500; padding: 0 .2em; }
