/* Event recaps: ivory and champagne, with the site's plum and warm ink. */
.event-recaps {
  --recap-paper: #f8f1e3;
  --recap-ink: #675168;
  --recap-body: #55483b;
  --recap-gold: #806239;
  --recap-line: #d9c7a3;
  --recap-border: #96784d;
  background: linear-gradient(180deg, var(--paper) 0%, #f8f1e3 20%, #f0e0ba 53%, #f7ecd4 78%, var(--paper) 100%);
  color: var(--recap-body);
  scroll-margin-top: 30px;
}
.home-event-recaps { padding-block: 64px; }
.activity-event-recaps { position: relative; padding: 40px; margin-bottom: 64px; background: linear-gradient(135deg, #fcf8ef 0%, #f5e8cb 44%, #f0e0ba 68%, #faf4e7 100%); }
.recap-frame { position: absolute; inset: 12px; border: 1px solid #bca26f80; pointer-events: none; }
.recap-frame i { position: absolute; width: 32px; height: 32px; background: url('assets/recap-key-corner.svg') center / contain no-repeat; }
.recap-frame i:nth-child(1) { left: -1px; top: -1px; }
.recap-frame i:nth-child(2) { right: -1px; top: -1px; transform: rotate(90deg); }
.recap-frame i:nth-child(3) { right: -1px; bottom: -1px; transform: rotate(180deg); }
.recap-frame i:nth-child(4) { left: -1px; bottom: -1px; transform: rotate(270deg); }
.event-highlight {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
  scroll-margin-top: 36px;
}
.event-highlight + .event-highlight { margin-top: 48px; }
.event-highlight-copy, .event-highlight-media { min-width: 0; }
.event-highlight-image { display: block; position: relative; aspect-ratio: 16 / 9; background: #eee1c8; }
.event-highlight-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.event-highlight-label { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 12px/1.8 var(--sans); color: #756147; letter-spacing: .06em; }
.event-highlight-label span { border-left: 1px solid #bca26f; padding-left: 14px; }
.event-highlight h2 { margin-top: 14px; color: var(--recap-ink); font: 400 clamp(27px, 2.8vw, 36px)/1.55 var(--serif); letter-spacing: .02em; }
.event-highlight h2.event-film-title { font: 400 clamp(31px, 3.2vw, 44px)/1.25 Georgia, serif; letter-spacing: .025em; }
.event-highlight-subtitle { margin-top: 8px; font: 21px/1.55 var(--serif); color: var(--recap-ink); text-wrap: balance; }
.event-highlight-details { display: grid; gap: 3px; margin-top: 19px; font: 12px/1.8 var(--sans); }
.event-highlight-summary { margin-top: 17px; font: 16px/1.9 var(--serif); }
.event-highlight-link { display: inline-flex; align-items: center; gap: 26px; min-height: 44px; margin-top: 13px; padding-block: 9px; border-bottom: 1px solid var(--recap-gold); color: var(--recap-ink); font: 13px/1.8 var(--sans); }
.event-highlight-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.event-highlight h2 a:hover { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.event-play { position: absolute; display: grid; place-items: center; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border: 1px solid #ffffffb3; border-radius: 50%; background: #59445bcf; color: #fff; font: 30px/1 var(--sans); }
.event-highlight-image:hover .event-play { background: #59445b; }
.event-media-caption { display: flex; justify-content: space-between; margin-top: 11px; font: 12px/1.8 var(--sans); }
.event-carousel-controls { display: flex; align-items: center; gap: 20px; padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--recap-line); font: 12px/1.5 var(--sans); }
.event-carousel-controls[hidden] { display: none; }
.event-carousel-count { min-width: 38px; font-variant-numeric: tabular-nums; }
.event-carousel-actions, .event-carousel-pickers { display: flex; align-items: center; gap: 8px; }
.event-carousel-actions { margin-left: auto; }
.event-carousel-controls button { min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--recap-border); background: #fffaf133; color: var(--recap-ink); font: inherit; cursor: pointer; }
.event-carousel-controls [data-carousel-toggle] { min-width: 124px; margin-left: 4px; }
.event-carousel-controls [data-carousel-prev], .event-carousel-controls [data-carousel-next] { font-size: 20px; }
.event-carousel-controls [data-carousel-picker] { border: 0; padding: 0; }
.event-carousel-pickers { gap: 0; }
.event-carousel-pickers span { display: block; margin: auto; width: 18px; height: 3px; background: var(--recap-border); }
.event-carousel-pickers [aria-current="true"] span { background: var(--recap-ink); }
.event-carousel-controls button:hover { background: #ead6ad; }
.event-recaps :is(a,button):focus-visible { outline: 2px solid var(--recap-ink); outline-offset: 5px; }
.event-carousel-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Every slide contributes height, so rotation never moves the next section. */
.event-carousel.is-enhanced .event-carousel-track { display: grid; }
.event-carousel.is-enhanced .event-slide { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; pointer-events: none; }
.event-carousel.is-enhanced .event-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
/* The open homepage treatment keeps the controls light; the framed panel keeps
   its existing boxed controls. All targets retain their 44px touch area. */
.home-event-recaps .event-carousel-controls { gap: 12px; margin-top: 20px; padding-top: 0; border-top: 0; }
.home-event-recaps .event-carousel-controls button { border-color: transparent; background: transparent; }
.home-event-recaps .event-carousel-controls button:hover { background: #ead6ad66; }
.home-event-recaps .event-carousel-controls [data-carousel-toggle] { min-width: 88px; margin-left: 10px; border-left-color: var(--recap-line); }
.home-event-recaps .event-carousel-pickers span { height: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .event-carousel.is-enhanced .event-slide.is-active { animation: event-recap-reveal .35s ease-out; }
  @keyframes event-recap-reveal { from { opacity: 0; } to { opacity: 1; } }
  /* Delay only visual hiding: the script disables focus and pointer access
     immediately. Reversing direction mid-fade simply retargets the transition. */
  .home-event-recaps .event-carousel.is-enhanced .event-slide {
    transition: opacity .76s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .76s;
  }
  .home-event-recaps .event-carousel.is-enhanced .event-slide.is-active {
    animation: none;
    transition-delay: 0s;
  }
}
@media (min-width:701px) and (max-width:1020px) {
  .event-highlight { gap: 30px; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); }
  .activity-event-recaps { padding: 30px; }
  .recap-frame i { width: 24px; height: 24px; }
  .event-highlight-subtitle { font-size: 19px; }
}
@media (max-width:700px) {
  .home-event-recaps { padding-block: 40px; }
  .activity-event-recaps { padding: 26px 20px; margin-bottom: 42px; }
  .recap-frame { inset: 7px; }
  .recap-frame i { width: 18px; height: 18px; }
  .event-highlight { grid-template-columns: minmax(0,1fr); gap: 24px; align-content: start; }
  .event-highlight h2 { font-size: 27px; line-height: 1.5; }
  .event-highlight h2 br { display: none; }
  .event-highlight h2.event-film-title { font-size: 32px; }
  .event-highlight-subtitle { font-size: 20px; }
  .event-highlight-summary { font-size: 16px; }
  .event-highlight-details { margin-top: 16px; }
  .event-carousel-controls { gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 15px; }
  .event-carousel-actions { gap: 6px; }
  .event-carousel-controls [data-carousel-toggle] { min-width: 92px; }
  .event-carousel-pickers { margin-left: auto; }
  .event-carousel-actions { justify-content: flex-end; }
  .event-play { width: 48px; height: 48px; font-size: 26px; }
}
