/* Other browsers (13-11-2026). The site was built and checked in Chrome; this file gives browsers
   that lack two newer CSS features the same layout and colours by older means. Each block applies
   ONLY where the feature is missing (@supports not ...), so current Chrome, Edge, Safari and
   Firefox never use it. Loaded last.

   Who this is for:
   - `svh` units (the screen height that allows for a phone browser's own bars): missing in
     Safari on iPhones before iOS 15.4, Samsung Internet up to version 20, Chrome before 108.
     There, every position written as calc(100svh - ...) was dropped, so the film title, the Sound
     button and SCROLL DOWN on the event pages lost their place.
   - `color-mix()`: missing in Safari before iOS 16.2, Samsung Internet up to version 21, Chrome
     before 111, Firefox before 113. There, the shade over an event page's backdrop, the frames of
     the dress code card and of the round gallery buttons, and the Sound button's glass were
     dropped, leaving text with nothing behind it. */

/* ---- no `svh`: the same positions from `vh`. On phones 56px is held back for the browser's own
   bar, which `vh` does not allow for, so nothing sits underneath it. */
@supports not (height: 100svh) {
  .ev__film-ui { top: calc(100vh - 60px); }
  .ev .vc { top: calc(100vh - 46px); }
  .ev.ev--film-top .vc, .ev.ev--film-top.is-settled .vc { top: calc(100vh - 58px); }
  @media (min-width: 721px) {
    .ev.ev--film-top .ev__film-ui { top: calc(100vh - 104px); }
  }
  @media (max-width: 720px) {
    .ev__film-ui { top: calc(100vh - 56px - var(--nav-h, 58px) - 58px); }
    .ev .vc { top: calc(100vh - 56px - var(--nav-h, 58px) - 44px); }
    .ev.ev--film-top .vc, .ev.ev--film-top.is-settled .vc { top: calc(100vh - 56px - var(--nav-h, 58px) - 54px); }
    .ev.ev--film-top .ev__film-ui { top: calc(100vh - 56px - var(--nav-h, 58px) - 68px); }
  }
}

/* ---- no `color-mix()`: plain colours in its place. */
@supports not (color: color-mix(in srgb, red, blue)) {
  /* the shade over the backdrop (Eden and Vivah; Oasis and Feast have their own, without color-mix) */
  .ev__veil {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .62)),
      radial-gradient(70% 60% at 50% 45%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .4));
  }
  .ev__media { background: var(--ev-ground); }
  /* the dress code card */
  .ev-card {
    border: 1px solid var(--ev-accent);
    background: rgba(0, 0, 0, .3);
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .7);
  }
  .ev__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
  /* the round arrows under the gallery */
  .ev-barrel__btn { border: 1px solid var(--ev-accent); background: transparent; }
  .ev-barrel__btn:hover { background: transparent; }
  /* the Sound button's glass (Oasis and Feast set their own, without color-mix) */
  .ev:not(.ev--welcome-lunch):not(.ev--gala-dinner) .vc {
    --vc-line: rgba(255, 248, 238, .42);
    --vc-fill: rgba(18, 10, 5, .4);
    --vc-fill-on: rgba(18, 10, 5, .6);
  }
}
