* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
}

/* Default for all devices: 60% height */
.slideshow-containers {
  position: relative;
  height: 60dvh; /* use dynamic viewport on mobile */
  width: 100%;
  overflow: hidden;
}

.slidess {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.overlays {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.contents {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 1rem;
}

.contents h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contents p {
  font-size: 1.2rem;
}

/* Desktop/larger screens - full height */
@media (min-width: 1025px) {
  .slideshow-containers {
    height: 100vh;
  }
}

/* Responsive text tweaks */
@media (max-width: 768px) {
  .contents h1 {
    font-size: 1.8rem;
  }

  .contents p {
    font-size: 1rem;
  }
}
