.hero {
    text-align: center;
}

.hero > * + * {
    margin-top: 1rem;
}

.hero__image {
    width: var(--size-9xl);
    height: var(--size-9xl);
    object-fit: contain;
    margin-inline: auto;
}

.hero__title {
    font-size: var(--size-3xl);
    font-weight: 900;
    line-height: 1;
    text-align: center
}

.hero__description1 {
    font-family: var(--font-secondary);
    font-size: var(--size-sm);
    color: var(--color-muted);
}

.hero__description2 {
    font-size: var(--size-sm);
    color: var(--color-muted);
}

.hero__btn {
    font-size: var(--size-sm);
}

.hero__br {
    display: none;
}

.slideshow-container {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
}

.mySlides img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dot {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 7px;
  width: 80px;
  margin: 0 2px;
  border-radius: 5px;
  background-color: white;
}

.dot::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background-color: #717171;
  transition: width 0.6s ease;
  transform-origin: left center;
}

.dot.active::before {
  width: 100%;
}

.slideshow-dots {
  position: relative;
  bottom: 70px;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}

  .slideshow-container {display: none;}

  .mobile-slide {
    display: block;
    width: 100%;
    height: 100vh;
    background-image: url(../../public/index/image7.jpeg);
    background-size: cover;
    background-position: center;
  }
}


@media (max-width: 767px) {
    .hero {
        min-height: 70svh;
        padding-top: 4.5rem;
    }

    .slideshow-container {
        height: min(70svh, 480px);
        min-height: 320px;
    }

    .slideshow-dots {
        bottom: 1rem;
        margin-top: 0.75rem;
    }

    .dot {
        width: 3rem;
        height: 0.35rem;
    }

    .mySlides img {
        object-position: center !important;
    }
}

@media (max-width: 475px) {
    .hero__image {
        width: var(--size-10xl);
        height: var(--size-10xl);
    }

    .hero__title {
        font-size: var(--size-4xl);
    }

    .hero__description1,
    .hero__description2 {
        font-size: var(--size-base);
    }

    .hero__btn {
        font-size: var(--size-base);
    }

    .mySlides img {
        object-position: center !important;
    }

    .slideshow-dots {
        display: none;
    }
}

@media (min-width: 640px) {
    .hero__br {
        display: block;
    }

    .hero__description1 {
        max-width: 65ch;
        letter-spacing: -0.05em;
        margin-inline: auto;
    }

    .hero__description2 {
        max-width: 57ch;
        margin-inline: auto;
    }
}

@media (min-width: 1024px) {
    .hero__image {
        width: 11.25rem;
        height: 11.25rem;
    }

    .hero__title {
        font-size: var(--size-5xl);
    }

    .slideshow-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin: auto;
    }
    
}

@media (min-width: 1280px) {
    .hero__image {
        width: 12.5rem;
        height: 12.5rem;
    }

    .hero__title {
        font-size: var(--size-6xl);
    }

    .hero__description1,
    .hero__description2,
    .hero__btn {
        font-size: var(--size-lg);
    }

}