/* AZR Event Photos — public pages. Colours come from the Neve theme variables, with the site's values as fallbacks. */
.azr-ep {
  --azr-ep-accent: var(--nv-primary-accent, #cc5500);
  --azr-ep-text: var(--nv-text-color, #000);
  --azr-ep-light: var(--nv-light-bg, #f7f7f7);
  --azr-ep-border: #c9cdd2;
  --azr-ep-ok: #1e7e34;
  --azr-ep-err: #b32d2e;
  font-family: Verdana, Geneva, sans-serif;
  color: var(--azr-ep-text);
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
.azr-ep *, .azr-ep *::before, .azr-ep *::after { box-sizing: inherit; }
.azr-ep [hidden] { display: none !important; }   /* our display rules must never un-hide an element */
.azr-ep-title { margin: 0 0 4px; }
.azr-ep-date { margin: 0 0 12px; color: #444; }
.azr-ep-back { margin: 0 0 8px; font-size: 14px; }
.azr-ep-back a { color: #003366; }

.azr-ep-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.azr-ep-events a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: #fff; border: 1px solid var(--azr-ep-border); border-left: 4px solid #00509e;
  border-radius: 4px; text-decoration: none; color: inherit;
}
.azr-ep-events a:hover, .azr-ep-events a:focus { border-left-color: var(--azr-ep-accent); }
.azr-ep-events__name { font-weight: 700; color: #003366; }
.azr-ep-events__date { color: #555; font-size: 14px; white-space: nowrap; }
.azr-ep-events__state { font-size: 13px; color: #555; white-space: nowrap; }
.azr-ep-state--open { color: var(--azr-ep-ok); font-weight: 700; }

.azr-ep-upload { background: var(--azr-ep-light); border: 1px solid var(--azr-ep-border); border-radius: 6px; padding: 16px; margin-top: 12px; }
.azr-ep-upload h3 { margin: 0 0 6px; color: #ff8c00; }
.azr-ep-state { margin: 0 0 12px; font-weight: 700; }
.azr-ep-field { margin-bottom: 12px; }
.azr-ep label { display: block; font-weight: 700; margin-bottom: 4px; }
.azr-ep-opt { font-weight: 400; color: #555; font-size: 13px; }
.azr-ep input[type=text], .azr-ep input[type=email], .azr-ep input[type=password], .azr-ep-form select {
  width: 100%; max-width: 420px; padding: 10px; font-size: 16px; border: 1px solid #8c8f94; border-radius: 4px;
}
.azr-ep input[type=file] { font-size: 16px; max-width: 100%; }
.azr-ep-row { display: flex; gap: 8px; flex-wrap: wrap; }
.azr-ep-row input { flex: 1 1 220px; }
.azr-ep-check { font-weight: 400 !important; display: flex !important; gap: 8px; align-items: center; }
.azr-ep-check input { width: 20px; height: 20px; }
.azr-ep-btn {
  padding: 10px 18px; font-size: 16px; border-radius: 4px; border: 1px solid #00509e; background: #fff; color: #00509e;
  cursor: pointer; min-height: 44px;
}
.azr-ep-btn--primary { background: var(--azr-ep-accent); border-color: var(--azr-ep-accent); color: #fff; }
.azr-ep-btn:disabled { opacity: .6; cursor: default; }
.azr-ep-link { background: none; border: 0; color: #003366; text-decoration: underline; cursor: pointer; font-size: 14px; margin-left: 12px; padding: 8px 0; }
.azr-ep-hint { font-size: 13px; color: #555; margin: 4px 0 0; }
.azr-ep-msg { padding: 8px 10px; border-radius: 4px; background: #fff; border: 1px solid var(--azr-ep-border); }
.azr-ep-msg--error { color: var(--azr-ep-err); border-color: var(--azr-ep-err); }

.azr-ep-queue { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.azr-ep-q { display: grid; grid-template-columns: 48px 1fr; grid-template-areas: "thumb name" "thumb bar" "thumb status";
  column-gap: 10px; align-items: center; background: #fff; border: 1px solid var(--azr-ep-border); border-radius: 4px; padding: 6px; }
.azr-ep-q__thumb { grid-area: thumb; width: 48px; height: 48px; background: #e5e7ea; border-radius: 3px; overflow: hidden; }
.azr-ep-q__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azr-ep-q__name { grid-area: name; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azr-ep-q progress { grid-area: bar; width: 100%; height: 8px; }
.azr-ep-q__status { grid-area: status; font-size: 13px; color: #555; }
.azr-ep-q.is-done .azr-ep-q__status { color: var(--azr-ep-ok); }
.azr-ep-q.is-error .azr-ep-q__status { color: var(--azr-ep-err); }

@media (max-width: 600px) {
  .azr-ep-events a { grid-template-columns: 1fr; gap: 2px; }
  .azr-ep-upload { padding: 12px; }
  .azr-ep-link { margin-left: 0; display: block; }
}

/* ---------------------------------------------------------------- Phase 3: event list cards */
.azr-ep-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.azr-ep-card a { display: block; background: #fff; border: 1px solid var(--azr-ep-border); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.azr-ep-card a:hover, .azr-ep-card a:focus { border-color: #00509e; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.azr-ep-card__img { display: block; aspect-ratio: 3 / 2; background: #1b1f24; }
.azr-ep-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azr-ep-card__empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #aab; font-size: 14px; }
.azr-ep-card__body { display: block; padding: 10px 12px; border-top: 3px solid #00509e; }
.azr-ep-card__name { display: block; font-weight: 700; color: #003366; }
.azr-ep-card__meta { display: block; color: #555; font-size: 13px; margin-top: 2px; }
.azr-ep-card__open { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--azr-ep-ok); padding: 2px 8px; border-radius: 10px; }

/* ---------------------------------------------------------------- Phase 3: event header, upload button */
.azr-ep--event { max-width: 1200px; }
.azr-ep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.azr-ep-head .azr-ep-date a { color: #003366; }
.azr-ep-msg--ok { color: var(--azr-ep-ok); border-color: var(--azr-ep-ok); font-weight: 700; }
.azr-ep-upload { margin-bottom: 14px; }

/* ---------------------------------------------------------------- Phase 3: viewer */
.azr-ep-viewer { background: #111418; border-radius: 6px; padding: 8px; color: #eee; margin-top: 10px; }
.azr-ep-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.azr-ep-tab { flex: 0 0 auto; background: #2a2f36; color: #ddd; border: 1px solid #3a414a; border-radius: 16px; padding: 6px 12px; font-size: 14px; cursor: pointer; min-height: 36px; }
.azr-ep-tab[aria-selected="true"] { background: var(--azr-ep-accent); border-color: var(--azr-ep-accent); color: #fff; }
.azr-ep-stage {
  position: relative; aspect-ratio: 3 / 2; max-height: min(75vh, 820px); min-height: 240px; width: 100%; overflow: hidden; background: #000; border-radius: 4px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none;
}
.azr-ep-stage:focus-visible { box-shadow: 0 0 0 3px #ff8c00 inset; }
.azr-ep-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.azr-ep-fgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
/* 0.6.0 background behind photos: blurred copy (thumbnail, enlarged so its soft edges stay off screen), black or dark gray */
.azr-ep-bgimg { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.azr-ep-bg--blur .azr-ep-bgimg[src] { display: block; filter: blur(var(--azr-ep-blur, 40px)) brightness(var(--azr-ep-dim, .8)); transform: scale(1.2); }
.azr-ep-bg--gray .azr-ep-stage, .azr-ep-viewer.azr-ep-bg--gray:fullscreen, .azr-ep-viewer.azr-ep-bg--gray.is-pseudo-fs { background: #2b2b2b; }
.azr-ep-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 64px; border: 0; border-radius: 4px;
  background: rgba(0,0,0,.35); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .75;
}
.azr-ep-nav:hover, .azr-ep-nav:focus-visible { opacity: 1; background: rgba(0,0,0,.6); }
.azr-ep-nav--prev { left: 6px; } .azr-ep-nav--next { right: 6px; }
.azr-ep-counter { position: absolute; z-index: 5; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 10px; }
.azr-ep-paused { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.65); color: #fff; padding: 8px 16px; border-radius: 6px; }
/* 0.8.0: shown on the phone/computer while the photos are on the TV */
.azr-ep-casting { position: absolute; z-index: 6; left: 50%; top: 10px; transform: translateX(-50%); margin: 0; background: rgba(0,0,0,.7); color: #fff;
  padding: 5px 14px; border-radius: 14px; font-size: 13px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.azr-ep-casting[hidden] { display: none; }
.azr-ep-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #bbb; }
.azr-ep-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 2px; }
.azr-ep-caption { font-size: 14px; color: #ddd; min-height: 1em; }
.azr-ep-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.azr-ep-tool {
  background: #2a2f36; color: #fff; border: 1px solid #454c56; border-radius: 4px; padding: 7px 12px; font-size: 14px; cursor: pointer;
  text-decoration: none; min-height: 38px; display: inline-flex; align-items: center;
}
.azr-ep-tool:hover, .azr-ep-tool:focus-visible { border-color: #ff8c00; color: #fff; }
.azr-ep-tool[aria-pressed="true"] { background: var(--azr-ep-accent); border-color: var(--azr-ep-accent); }
.azr-ep-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-touch-callout: none; }
.azr-ep-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #222; cursor: pointer; scroll-snap-align: center; line-height: 0; }
.azr-ep-thumb img { height: 72px; width: auto; max-width: 140px; object-fit: cover; border-radius: 2px; display: block; opacity: .7; -webkit-user-drag: none; }
.azr-ep-thumb:hover img, .azr-ep-thumb.is-active img { opacity: 1; }
.azr-ep-thumb.is-active { border-color: #ff8c00; }
.azr-ep-riders { padding: 4px 2px 2px; }
.azr-ep-riders .azr-ep-link { color: #9cc9ff; margin-left: 0; }
.azr-ep-riders .azr-ep-row { margin-top: 6px; }
.azr-ep-riders input[type=password] { max-width: 260px; }

/* Full screen (native, or a fixed overlay where the browser has none, e.g. iPhone) */
.azr-ep-viewer:fullscreen, .azr-ep-viewer.is-pseudo-fs { display: flex; flex-direction: column; border-radius: 0; padding: 6px; background: #000; }
.azr-ep-viewer.is-pseudo-fs { position: fixed; inset: 0; z-index: 100000; }
.azr-ep-viewer:fullscreen .azr-ep-stage, .azr-ep-viewer.is-pseudo-fs .azr-ep-stage { flex: 1 1 auto; aspect-ratio: auto; max-height: none; height: auto; min-height: 0; }
.azr-ep-viewer:fullscreen .azr-ep-tabs, .azr-ep-viewer:fullscreen .azr-ep-riders,
.azr-ep-viewer.is-pseudo-fs .azr-ep-tabs, .azr-ep-viewer.is-pseudo-fs .azr-ep-riders { display: none; }
html.azr-ep-noscroll, html.azr-ep-noscroll body { overflow: hidden; }

@media (max-width: 600px) {
  .azr-ep-viewer { padding: 4px; }
  .azr-ep-stage { aspect-ratio: 1 / 1; max-height: 70vh; }
  .azr-ep-nav { width: 40px; height: 56px; font-size: 32px; }
  .azr-ep-thumb img { height: 56px; }
  .azr-ep-tool { padding: 6px 10px; font-size: 13px; }
  .azr-ep-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .azr-ep-strip { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- Phase 4: landing slideshow */
.azr-ep--list[data-config] { max-width: 1200px; }
.azr-ep-viewer--landing { margin: 6px 0 18px; }
.azr-ep-viewer--landing .azr-ep-caption { font-weight: 700; }
/* Heading for the event cards: the theme's dark orange, spaced away from the slideshow so it reads as the cards' heading */
.azr-ep-subtitle { margin: 30px 0 10px; color: var(--azr-ep-accent); font-weight: 700; }

/* 0.4.3 spacing (Mike): each heading sits the same small distance above what it introduces.
   Written with extra weight because the theme's own heading/list margins otherwise win. */
.azr-ep.azr-ep--list > .azr-ep-title { margin-bottom: 8px !important; }   /* top margin on phones stays as the theme has it */
.azr-ep.azr-ep--list > .azr-ep-viewer--landing { margin-top: 0 !important; }
.azr-ep.azr-ep--list > .azr-ep-subtitle { margin: 30px 0 8px !important; }
.azr-ep.azr-ep--list > ul.azr-ep-cards { margin: 0 !important; padding: 0 !important; }
.azr-ep.azr-ep--list > ul.azr-ep-cards > li { margin: 0 !important; }
@media (min-width: 601px) {
  .azr-ep.azr-ep--list > .azr-ep-title { margin-top: 24px !important; }   /* laptop: space below the menu */
}
