.intro-dialog[hidden] {
  display: none;
}

.intro-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.intro-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.62);
}

.intro-dialog-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
}

.intro-dialog-content {
  position: relative;
  background: #111;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.intro-dialog-header {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 99;
  padding: 0;
}

.intro-dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  opacity: 1;
  outline: none;
  box-shadow: none;
}

.intro-dialog-close:focus,
.intro-dialog-close:focus-visible {
  outline: none;
  box-shadow: none;
}

.intro-dialog-close i {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease, color 0.2s ease;
}

.intro-dialog-close:hover {
  color: #e8eaed;
}

.intro-dialog-close:hover i {
  transform: rotate(90deg);
}

.intro-dialog-body {
  position: relative;
  padding: 0;
}

.intro-dialog-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.intro-dialog--multi .intro-dialog-viewport {
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.intro-dialog-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.intro-dialog-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* CMS event images are 1270x680; the box is locked to that ratio so an off-size image never resizes the popup. */
.intro-dialog-slide {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 1270 / 680;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
}

.intro-dialog-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.intro-dialog-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #202124;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    color 0.25s ease;
}

.intro-dialog-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 88, 124, 0.14) 0%,
    rgba(0, 88, 124, 0) 68%
  );
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.intro-dialog-btn i {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-dialog-btn:hover {
  background: #fff;
  color: #00587c;
  transform: scale(1.1);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(0, 88, 124, 0.16);
}

.intro-dialog-btn:hover::before {
  opacity: 1;
  transform: scale(1.15);
}

.intro-dialog-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.intro-dialog-btn:disabled,
.intro-dialog-btn[hidden] {
  display: none;
}

.intro-dialog-btn--prev {
  left: -55px;
}

.intro-dialog-btn--prev:hover i {
  transform: translateX(-3px);
}

.intro-dialog-btn--next {
  right: -55px;
}

.intro-dialog-btn--next:hover i {
  transform: translateX(3px);
}

.intro-dialog-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.intro-dialog-pagination button {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.intro-dialog-pagination button.is-on {
  background: #fff;
}

html.intro-dialog-open {
  overflow: hidden;
}

@media (min-width: 1640px) {
  .intro-dialog-dialog { width: min(100%, 950px); }
}

@media (max-width: 1199.98px) {
  .intro-dialog-dialog { width: min(100%, 800px); }
}

@media (max-width: 991.98px) {
  .intro-dialog-dialog { width: min(100%, 600px); }
}

@media (max-width: 767.98px) {
  .intro-dialog-btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-dialog-track {
    transition: none;
  }

  .intro-dialog-btn,
  .intro-dialog-btn::before,
  .intro-dialog-btn i {
    transition: none;
  }

  .intro-dialog-btn:hover,
  .intro-dialog-btn:active {
    transform: none;
  }

  .intro-dialog-btn--prev:hover i,
  .intro-dialog-btn--next:hover i {
    transform: none;
  }
}
