* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Slide Styles */
.slide {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Container Styles */
.container {
  position: fixed;
  inset: -100px;
  overflow: hidden;
}

.container.single-image,
.container.iframe {
  inset: 0;
}

/* Image Styles */
.image {
  position: absolute;
  animation: fadeIn 0.2s ease-out, fadeOut 0.2s ease-out forwards;
  animation-delay: 0s, var(--image-duration);
}

.image.single {
  position: absolute;
  inset: 0;
  animation: fadeIn 0.2s ease-out;
}

.image img,
.image.single img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Iframe Styles */
.iframe-container {
  width: 100%;
  height: 100%;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Overlay Styles */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.overlay h1 {
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.1;
  max-width: 80%;
  text-transform: uppercase;
  word-break: break-word;
  white-space: pre-line;
}

/* URL Styles */
.slide-url {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.3s;
  pointer-events: auto;
}

.slide-url:hover {
  opacity: 1;
}

/* Navigation Styles */
.nav-button {
  position: fixed;
  top: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 0;
  z-index: 100;
}

.nav-prev {
  left: 2rem;
}

.nav-next {
  right: 2rem;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-prev::after,
.nav-next::after {
  content: '';
  border: 0.5rem solid transparent;
  display: block;
}

.nav-prev::after {
  border-right-color: white;
  margin-right: 0.25rem;
}

.nav-next::after {
  border-left-color: white;
  margin-left: 0.25rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .overlay h1 {
    font-size: 4rem;
  }
}
