/* Flash-news style event article — hero with lower-third, ticker, and
   location-tagged photos. Plain CSS (not Tailwind) so editing the admin
   never needs a rebuild. */
.fa { --fa-red: #e0102a; --fa-yellow: #fff200; --fa-ink: #111; }

/* ---------- hero ---------- */
.fa-hero { position: relative; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.fa-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fa-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 62%); }

.fa-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fa-flash { display: inline-flex; align-items: center; gap: 10px; background: var(--fa-red); color: #fff; padding: 9px 16px 9px 14px;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.fa-flash i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: fa-pulse 1.1s ease-in-out infinite; }
.fa-date { background: rgba(0,0,0,.72); color: #fff; padding: 9px 14px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.fa-lower { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(78%, 980px); }
.fa-where { display: inline-flex; align-items: center; gap: 8px; background: var(--fa-yellow); color: var(--fa-ink);
  padding: 7px 14px 7px 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fa-where svg, .fa-pin svg { width: 16px; height: 16px; flex: none; }
.fa-headline { margin: 0; background: rgba(10,10,10,.93); color: #fff; padding: 16px 24px 16px 20px;
  border-left: 8px solid var(--fa-red); font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(16px, 2.3vw, 31px); line-height: 1.18; }
.fa-sub { background: var(--fa-yellow); color: var(--fa-ink); padding: 9px 20px; font-size: clamp(12px, 1.1vw, 15px); font-weight: 500; line-height: 1.35; }

/* ---------- ticker ---------- */
.fa-ticker { display: flex; align-items: stretch; background: #0b0b0b; color: #fff; overflow: hidden; }
.fa-ticker b { flex: none; background: var(--fa-red); padding: 11px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; z-index: 1; }
.fa-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.fa-run { display: inline-flex; white-space: nowrap; animation: fa-crawl 60s linear infinite; padding-left: 100%; }
.fa-ticker:hover .fa-run { animation-play-state: paused; }
.fa-run span { font-size: 13px; letter-spacing: .04em; padding-right: 36px; }
.fa-run span::before { content: "\25C6"; color: var(--fa-yellow); margin-right: 14px; font-size: 10px; vertical-align: 1px; }

/* ---------- body ---------- */
.fa-body { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 768px) { .fa-body { grid-template-columns: 1fr 1fr; gap: 64px; } }
.fa-text > * + * { margin-top: 28px; }
.fa-text { font-size: 17px; line-height: 1.7; color: #111; }
@media (min-width: 768px) { .fa-text { padding-bottom: 96px; } }
.fa-dateline { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82em; display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; vertical-align: 1px; }
.fa-dateline svg { width: 15px; height: 15px; color: var(--fa-red); }
.fa-text ul { list-style: none; padding: 0; }
.fa-text ul li { border-left: 5px solid var(--fa-yellow); background: #f6f6f6; padding: 10px 14px; margin-top: 8px; }
.fa-quote { background: #111; color: #fff; border-left: 8px solid var(--fa-red); padding: 22px 24px; font-size: clamp(19px, 2vw, 26px); line-height: 1.35; font-weight: 500; }

/* ---------- photo stack with lower-third captions ---------- */
/* The photo keeps its OWN shape (portrait posters stay portrait, wide photos stay wide):
   it is shown as large as fits inside the 4:3 area, with the caption stuck to its own bottom edge. */
.fa-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; container-type: size; }
.fa-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; display: flex; align-items: flex-start; justify-content: flex-start; }
.fa-fig { position: relative; display: inline-block; max-width: 100%; max-height: 100%; }
.fa-fig img { display: block; width: auto; height: auto; max-width: 100cqw; max-height: 100cqh; }
.fa-stage figcaption, .fa-mobile-cap { position: absolute; left: 0; bottom: 0; display: flex; align-items: stretch; max-width: 92%; }
.fa-pin { display: inline-flex; align-items: center; gap: 7px; background: var(--fa-yellow); color: #111; padding: 8px 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fa-count { background: rgba(10,10,10,.9); color: #fff; padding: 8px 12px; font-size: 12px; letter-spacing: .1em; border-left: 4px solid var(--fa-red); }

.fa-mobile { position: relative; margin: 0; }
.fa-mobile img { width: 100%; height: auto; display: block; }

/* ---------- small screens: lower third drops under the picture ---------- */
@media (max-width: 700px) {
  .fa-hero { aspect-ratio: 4 / 3; overflow: visible; background: none; }
  .fa-hero > img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .fa-hero::after { display: none; }
  .fa-top { position: absolute; }
  .fa-lower { position: static; width: 100%; }
  .fa-headline { font-size: 17px; }
}

@keyframes fa-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }
@keyframes fa-crawl { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .fa-run { animation: none; padding-left: 12px; white-space: normal; flex-wrap: wrap; } .fa-flash i { animation: none; } }

/* ---------- Events grid card: photo with a location pin on top-right,
   then the headline bar and the ticker strip underneath ---------- */
.fa-card { position: relative; overflow: hidden; background: #111; }
.fa-card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.fa-card-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .fa-card-img > img { transform: scale(1.04); }
.fa-card .fa-where { position: absolute; z-index: 2; top: 0; right: 0; padding: 6px 12px 6px 9px; font-size: 10px; gap: 6px; }
.fa-card .fa-where svg { width: 13px; height: 13px; }
/* fixed height = room for exactly 2 lines, so every card is the same size */
.fa-card .fa-headline { border-left: 6px solid var(--fa-red); padding: 0 14px 0 12px; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.2; height: calc(2.4em + 24px); display: flex; align-items: center; overflow: hidden; }
.fa-card .fa-ticker b { padding: 8px 11px; font-size: 9px; }
.fa-card .fa-run { animation-duration: 45s; }
.fa-card .fa-run span { font-size: 11px; padding-right: 28px; }


/* ---------- cover video in the article header + Events card ---------- */
.fa-hero .fa-herovideo, .fa-hero .fa-heroyt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; pointer-events: none; }
.fa-sound { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,.82); color: #fff; border: 0; cursor: pointer; }
.fa-sound svg { width: 20px; height: 20px; }
.fa-sound .fa-sound-on { opacity: 0; }
.fa-sound.on .fa-sound-on { opacity: 1; }
.fa-sound:hover { background: var(--fa-red); }
.fa-card-img > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; opacity: 0; transition: opacity .3s ease; }
a:hover .fa-card-img > video { opacity: 1; }
@media (max-width: 700px) { .fa-sound { bottom: auto; top: 54px; } }

/* ---------- videos stacked one after another under the story ---------- */
.fa-videos { margin-top: 64px; }
.fa-videosbar { display: flex; align-items: stretch; gap: 0; margin-bottom: 20px; }
.fa-videosbar .fa-flash { padding: 8px 14px 8px 12px; font-size: 12px; }
.fa-vtotal { background: #111; color: #fff; padding: 8px 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; }
.fa-vid { position: relative; margin-bottom: 28px; opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.fa-vid.in { opacity: 1; transform: none; }
.fa-vid .fa-videoframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.fa-vid .fa-videoframe video, .fa-vid .fa-videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.fa-vidcap { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: stretch; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fa-vid { transition: none; opacity: 1; transform: none; } }

/* caption on a narrow (portrait) photo: keep each label on ONE line, wrap the two labels instead */
.fa-fig figcaption, .fa-mobile-cap { flex-wrap: wrap; max-width: 100%; line-height: 1.2; }
.fa-pin, .fa-count { white-space: nowrap; line-height: 1.2; }
.fa-pin { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- video players: click = pause/play, sound button, smooth playback ---------- */
.fa-herovideo, .fa-vid video { transform: translateZ(0); backface-visibility: hidden; will-change: transform; }
.fa-hero, .fa-vid .fa-videoframe { cursor: pointer; }
.fa-playmark { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; pointer-events: none; }
.fa-playmark span { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.78); color: #fff; border-left: 6px solid var(--fa-red); }
.fa-playmark svg { width: 34px; height: 34px; }
.paused > .fa-playmark { display: flex; }
.fa-vid .fa-sound { z-index: 3; }

/* ---------- videos in the right-hand photo column ---------- */
.fa-stage figure { pointer-events: none; }
.fa-fig .fa-videoframe { position: relative; width: 100cqw; max-width: 100%; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.fa-fig .fa-videoframe video, .fa-fig .fa-videoframe iframe, .fa-mobile .fa-videoframe video, .fa-mobile .fa-videoframe iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.fa-mobile .fa-videoframe { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.fa-fig .fa-videoframe .fa-sound, .fa-mobile .fa-videoframe .fa-sound { z-index: 3; right: 12px; bottom: 12px; top: auto; }
.fa-spacer { height: 60vh; }
@media (max-width: 767px) { .fa-spacer { display: none; } }

/* ---------- stacked layout: each photo/video beside its own paragraph ---------- */
.fa-body-stacked { display: block; margin-top: 56px; }
.fa-rows > .fa-row + .fa-row { margin-top: 56px; }
.fa-row { display: grid; gap: 24px; }
@media (min-width: 768px) { .fa-row { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .fa-row-quote { grid-template-columns: 1fr; } }
.fa-rowtext > * + * { margin-top: 28px; }
.fa-rowmedia:empty { display: none; }
.fa-rowfig { position: relative; display: inline-block; max-width: 100%; margin: 0; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fa-rowfig.in { opacity: 1; transform: none; }
.fa-rowfig > img { display: block; width: auto; max-width: 100%; height: auto; max-height: 85vh; }
.fa-rowfig .fa-videoframe { position: relative; width: min(100%, 100cqw); aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.fa-rowmedia { container-type: inline-size; }
.fa-rowfig .fa-videoframe { width: 100cqw; }
.fa-rowfig .fa-videoframe video, .fa-rowfig .fa-videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.fa-rowfig .fa-sound { z-index: 3; right: 12px; bottom: 12px; top: auto; }
@media (prefers-reduced-motion: reduce) { .fa-rowfig { transition: none; opacity: 1; transform: none; } }

/* the group of videos: all shown together, one below the other */
.fa-vgroup { display: flex; flex-direction: column; gap: 24px; }


/* ---------- videos as one step in the right-hand stage (photo fades out, videos stack in) ---------- */
.fa-stagewrap { container-type: inline-size; }
.fa-stage-v { aspect-ratio: auto; height: calc(var(--vn) * 56.25cqw + (var(--vn) - 1) * 16px); }
.fa-vstack { display: flex; flex-direction: column; gap: 16px; width: 100cqw; max-width: 100%; }
.fa-mobile .fa-vstack { width: 100%; }
.fa-vstack .fa-videoframe { width: 100%; }

/* clear sound button: icon + label */
.fa-sound { width: auto; height: 40px; padding: 0 14px 0 12px; gap: 8px; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fa-sound .fa-sound-txt { line-height: 1; }
.fa-sound.on { background: var(--fa-red); }
@media (max-width: 700px) { .fa-sound { top: auto; bottom: 14px; } .fa-hero .fa-sound { top: 54px; bottom: auto; } }

/* fixes: video stack never clipped/squeezed, caption stays on the bottom edge, icon-only sound button */
.fa-fig-v { max-height: none; width: 100%; display: block; }
.fa-vstack .fa-videoframe { flex: none; width: 100%; aspect-ratio: 16 / 9; height: auto; }
.fa-sound { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; white-space: nowrap; }
.fa-sound svg { width: 24px; height: 24px; }
.fa-sound .fa-sound-off { opacity: 1; }
.fa-sound.on .fa-sound-off { opacity: 0; }
