.seasonal-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.seasonal-modal[hidden] {
  display: none !important;
}

.seasonal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 32, 0.6);
  backdrop-filter: blur(2px);
}

.seasonal-modal__dialog {
  position: relative;
  width: min(520px, 92vw);
  background: linear-gradient(180deg, #dcae27 0%, #d4a41f 35%, #c99917 100%);
  color: #0b1f3c;
  border-radius: 16px;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.seasonal-modal.is-open .seasonal-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}

.seasonal-modal__dialog::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 40%;
  background: radial-gradient(120% 120% at 20% 20%, rgba(255, 195, 0, 0.2), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.seasonal-modal__dialog::after {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.seasonal-modal__title {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  color: #0b1f3c;
  position: relative;
  z-index: 1;
}

.seasonal-modal__message {
  margin: 0 0 1rem;
  color: rgba(11, 31, 60, 0.9);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.seasonal-modal__media,
.seasonal-modal__figure {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.seasonal-modal__media {
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.seasonal-modal__media img,
.seasonal-modal__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

/* Slider nav */
.seasonal-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #f8fbff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  z-index: 6;
  backdrop-filter: blur(2px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.seasonal-modal__nav span {
  font-size: 22px;
  line-height: 1;
}

.seasonal-modal__nav--prev {
  left: 10px;
}

.seasonal-modal__nav--next {
  right: 10px;
}

.seasonal-modal__nav:hover,
.seasonal-modal__nav:focus-visible {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.03);
}

.seasonal-modal__controls{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.seasonal-modal__dots {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.seasonal-modal__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.seasonal-modal__dot.is-active {
  background: var(--cecns-gold, #ffc300);
  transform: scale(1.15);
}

.seasonal-modal__dot:hover,
.seasonal-modal__dot:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}

.seasonal-modal__media img.is-fading {
  opacity: 0;
}

.seasonal-modal__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.seasonal-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.seasonal-modal__btn--primary {
  background: var(--cecns-gold, #ffc300);
  color: #0b1f3c;
  box-shadow: 0 12px 30px rgba(255, 195, 0, 0.3);
}

.seasonal-modal__btn--primary:hover,
.seasonal-modal__btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 195, 0, 0.35);
}

.seasonal-modal__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.seasonal-modal__btn--secondary:hover,
.seasonal-modal__btn--secondary:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.seasonal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #f8fbff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 6;
  transition: background 0.18s ease, transform 0.18s ease;
}


.seasonal-modal__close:hover,
.seasonal-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* Theme: christmas */
.seasonal-modal--christmas .seasonal-modal__dialog {
  border: 1px solid rgba(255, 195, 0, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 195, 0, 0.08);
}

.seasonal-modal--christmas .seasonal-modal__dialog::before {
  background: radial-gradient(120% 120% at 20% 20%, rgba(255, 195, 0, 0.28), transparent 55%);
}

.seasonal-modal--christmas .seasonal-modal__title {
  color: #0b1f3c;
}

.seasonal-modal--christmas .seasonal-modal__message {
  color: rgba(11, 31, 60, 0.9);
}

/* Responsive */
@media (max-width: 560px) {
  .seasonal-modal__dialog {
    padding: 1.4rem 1.1rem 1.2rem;
  }
  .seasonal-modal__title {
    font-size: 1.4rem;
  }
  .seasonal-modal__actions {
    flex-direction: column;
  }
  .seasonal-modal__btn {
    width: 100%;
  }

  .seasonal-modal__nav {
    width: 34px;
    height: 34px;
  }
  .seasonal-modal__nav span {
    font-size: 20px;
  }
}

/* Body lock */
body.seasonal-modal-open {
  overflow: hidden;
}

#seasonalModalSlide{cursor:pointer;}
