html, body {
  margin: 0;
  padding: 0;
  background: #001a33;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.slideshow-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(circle at center, rgba(0, 102, 204, 0.35), transparent 55%),
    linear-gradient(135deg, #001a33, #003b73, #001f3f);
  overflow: hidden;
}

.slideshow-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 174, 255, 0.18), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.18), transparent 25%);
  animation: blueGlow 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes blueGlow {
  from {
    opacity: 0.25;
    transform: scale(1);
  }
  to {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.site-header,
.site-footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 6;
  text-align: center;
  color: #f4f8ff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.site-header {
  padding: calc(30px + env(safe-area-inset-top)) 20px 26px;
  background: linear-gradient(to bottom, rgba(0, 15, 45, 0.95), rgba(0, 20, 55, 0.85));
  border-bottom: 5px double rgba(190, 218, 255, 0.7);
  box-shadow: 0 4px 16px rgba(0, 10, 30, 0.5);
}

.site-footer {
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 15, 45, 0.95), rgba(0, 20, 55, 0.85));
  border-top: 5px double rgba(190, 218, 255, 0.7);
  box-shadow: 0 -4px 16px rgba(0, 10, 30, 0.5);
}

.site-header h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.header-divider {
  width: 90px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(to right, transparent, rgba(180, 210, 255, 0.9), transparent);
}

.site-header p,
.site-footer p {
  margin: 12px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #dce6f5;
}

.slide-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 18px;
  -webkit-clip-path: inset(0 round 18px);
  clip-path: inset(0 round 18px);
  transition:
    opacity 3s ease,
    transform 3s ease,
    filter 3s ease,
    -webkit-clip-path 3s ease,
    clip-path 3s ease;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(0, 140, 255, 0.45)) drop-shadow(0 0 28px rgba(35, 38, 45, 0.7)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.previous {
  z-index: 1;
}

.transition-fade.active {
  opacity: 1;
}

.transition-zoom-in {
  transform: translate(-50%, -50%) scale(1.15);
}

.transition-zoom-in.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.transition-zoom-out {
  transform: translate(-50%, -50%) scale(0.9);
}

.transition-zoom-out.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.transition-slide-left {
  transform: translate(-50%, -50%) translateX(100%);
}

.transition-slide-left.active {
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
}

.transition-slide-right {
  transform: translate(-50%, -50%) translateX(-100%);
}

.transition-slide-right.active {
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
}

.transition-slide-up {
  transform: translate(-50%, -50%) translateY(100%);
}

.transition-slide-up.active {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
}

.transition-slide-down {
  transform: translate(-50%, -50%) translateY(-100%);
}

.transition-slide-down.active {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
}

.transition-blur {
  filter: blur(12px) drop-shadow(0 0 24px rgba(0, 140, 255, 0.45)) drop-shadow(0 0 28px rgba(35, 38, 45, 0.7)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
  transform: translate(-50%, -50%) scale(1.05);
}

.transition-blur.active {
  filter: blur(0) drop-shadow(0 0 24px rgba(0, 140, 255, 0.45)) drop-shadow(0 0 28px rgba(35, 38, 45, 0.7)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.transition-rotate {
  transform: translate(-50%, -50%) rotate(-3deg) scale(1.08);
}

.transition-rotate.active {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  opacity: 1;
}

.transition-shatter {
  -webkit-clip-path: polygon(
    10% 10%, 40% 0%, 55% 25%, 80% 5%,
    100% 30%, 70% 55%, 95% 80%, 60% 100%,
    35% 75%, 0% 90%, 15% 55%, 0% 30%
  );
  clip-path: polygon(
    10% 10%, 40% 0%, 55% 25%, 80% 5%,
    100% 30%, 70% 55%, 95% 80%, 60% 100%,
    35% 75%, 0% 90%, 15% 55%, 0% 30%
  );
  transform: translate(-50%, -50%) scale(1.15) rotate(2deg);
  filter: blur(6px) drop-shadow(0 0 24px rgba(0, 140, 255, 0.45)) drop-shadow(0 0 28px rgba(35, 38, 45, 0.7)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}

.transition-shatter.active {
  -webkit-clip-path: inset(0 round 18px);
  clip-path: inset(0 round 18px);
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  filter: blur(0) drop-shadow(0 0 24px rgba(0, 140, 255, 0.45)) drop-shadow(0 0 28px rgba(35, 38, 45, 0.7)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
  opacity: 1;
}

.blue-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 20, 60, 0.85);
  z-index: 4;
}

/* Tablets and small laptops */
@media (max-width: 768px) {
  .site-header {
    padding: calc(22px + env(safe-area-inset-top)) 16px 16px;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .header-divider {
    width: 80px;
    margin: 12px auto 0;
  }

  .site-header p,
  .site-footer p {
    font-size: 1.1rem;
  }

  .site-footer {
    padding: 16px 16px calc(22px + env(safe-area-inset-bottom));
  }
}

/* Phones */
@media (max-width: 480px) {
  .site-header {
    padding: calc(18px + env(safe-area-inset-top)) 14px 14px;
  }

  .site-header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.03em;
  }

  .header-divider {
    width: 60px;
    margin: 10px auto 0;
  }

  .site-header p,
  .site-footer p {
    font-size: 0.95rem;
    margin-top: 8px;
  }

  .site-footer {
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  }
}

/* Short/landscape screens (e.g. phone rotated) */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    padding: calc(10px + env(safe-area-inset-top)) 14px 8px;
  }

  .site-header h1 {
    font-size: 1.3rem;
  }

  .header-divider {
    width: 50px;
    margin: 6px auto 0;
  }

  .site-header p,
  .site-footer p {
    font-size: 0.85rem;
    margin-top: 4px;
  }

  .site-footer {
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
  }
}
