.uvg-events {
  --evt-ink: #0c4652;
  --evt-teal: #106579;
  --evt-mint: #8ee0d2;
  --evt-paper: #f3f7f8;
  color: var(--evt-ink);
  background: #fff;
}

.uvg-events h1,
.uvg-events h2 {
  font-family: "UVG Amp", "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: inherit;
  line-height: 1.08;
}

.uvg-events p {
  color: inherit;
}

.uvg-events a:focus-visible,
.uvg-events button:focus-visible,
.evt-view button:focus-visible {
  outline: 3px solid var(--evt-mint);
  outline-offset: 3px;
}

.uvg-events-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(720px 320px at 100% 0%, rgba(142, 224, 210, 0.22), transparent 70%),
    #0c4652;
  padding: calc(var(--site-head-h) + 28px) 0 64px;
}

.uvg-events-hero h1 {
  max-width: 11em;
  margin: 0 0 16px;
  font-size: clamp(40px, 5.4vw, 64px);
  color: #fff;
}

.uvg-events-hero__lead {
  max-width: 38rem;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.uvg-events-hero__else {
  margin: 18px 0 0;
}

.uvg-events-hero__else a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 3px;
}

.uvg-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.uvg-picks > li {
  display: flex;
  min-width: 0;
}

.uvg-pick {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: var(--evt-ink);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
}

.uvg-pick:hover,
.uvg-pick:focus-visible {
  color: var(--evt-ink);
  transform: translateY(-3px);
}

.uvg-pick__mark {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  overflow: hidden;
}

.uvg-pick__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.uvg-pick__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(78%, 220px);
  height: auto;
  object-fit: contain;
}

.uvg-pick__mark--eaie .uvg-pick__logo {
  width: min(86%, 250px);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
}

.uvg-pick__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 18px;
}

.uvg-pick strong {
  font-family: "UVG Amp", "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.uvg-pick span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--evt-teal);
}

.uvg-event {
  scroll-margin-top: calc(var(--site-head-h) + 12px);
  padding: 72px 0;
}

.uvg-event:nth-of-type(even) {
  background: var(--evt-paper);
}

.uvg-event__grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: start;
}

.uvg-event__where,
.uvg-event__when {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.uvg-event__where {
  font-weight: 600;
  color: var(--evt-teal);
}

.uvg-event__when {
  margin-top: 2px;
  color: rgba(12, 70, 82, 0.72);
}

.uvg-event h2 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--evt-ink);
}

.uvg-event__copy > p:last-child {
  margin: 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.7;
  color: var(--evt-teal);
}

.uvg-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.uvg-shot {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #d5e3e7;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}

.uvg-shot--wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.uvg-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.uvg-shot:hover img,
.uvg-shot:focus-visible img {
  transform: scale(1.04);
}

.evt-view:not([open]) {
  display: none;
}

.evt-view {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #06161c;
  color: #fff;
}

.evt-view::backdrop {
  background: transparent;
}

.evt-view__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 72px 88px 84px;
  box-sizing: border-box;
}

.evt-view__frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
  border-radius: 8px;
}

.evt-view__caption {
  margin: 14px 0 0;
  max-width: 40rem;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.evt-view__close,
.evt-view__nav button {
  appearance: none;
  border: 0;
  color: #0c4652;
  background: #fff;
  cursor: pointer;
}

.evt-view__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.evt-view__count {
  position: absolute;
  top: 24px;
  left: 20px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
}

.evt-view__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}

.evt-view__nav button {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

@media (min-width: 960px) {
  .uvg-event__copy {
    position: sticky;
    top: calc(var(--site-head-h) + 20px);
  }
}

@media (max-width: 959px) {
  .uvg-event__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .uvg-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .uvg-events-hero {
    padding-bottom: 36px;
  }

  .uvg-events-hero h1 {
    font-size: 36px;
  }

  .uvg-picks {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .uvg-picks::-webkit-scrollbar {
    display: none;
  }

  .uvg-picks > li {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .uvg-pick__mark {
    height: 148px;
  }

  .uvg-pick__logo {
    width: min(82%, 200px);
  }

  .uvg-event {
    padding: 48px 0;
  }

  .uvg-shot--wide {
    grid-column: span 2;
  }

  .evt-view__frame {
    padding: 64px 16px 96px;
  }

  .evt-view__nav {
    align-items: flex-end;
    padding: 0 0 22px;
    justify-content: center;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uvg-pick,
  .uvg-shot img {
    transition: none;
  }

  .uvg-pick:hover,
  .uvg-pick:focus-visible,
  .uvg-shot:hover img,
  .uvg-shot:focus-visible img {
    transform: none;
  }
}
