.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  /* overflow: hidden; */
  width: 100%;
  padding: 5rem 2rem;
  margin-top: -10px;
  margin-bottom: -10px;
  margin-inline: auto;
  background-color: #0f110f;

  @media screen and (min-width: 480px) {
    padding: 5rem 2rem;
  }

  @media screen and (min-width: 768px) {
    padding-inline: 5rem;
  }

  .wrapper {
    max-width: 1350px;
    margin-inline: auto;
    position: relative;
    flex: 1;
    overflow: hidden;
  }
}

.carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
  max-width: 1116px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  position: relative;
  transition: transform 1s ease-in-out; /* Match JS duration */

  @media screen and (min-width: 480px) {
    gap: 1rem;
  }

  @media screen and (min-width: 768px) {
    gap: 2rem;
  }

  .swiper {
    width: 100%;
    height: 352px;
  }

  .swiper-slide {
    /* flex: 0 0 100%; */
    position: relative;
    text-align: center;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    width: 100%;

    img {
      width: 100%;
      height: auto;
      display: block;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5); /* opacity: 0; */
      transition: opacity 0.3s ease;
    }

    @media screen and (min-width: 640px) {
      width: 352px;
    }

    .info {
      position: absolute;
      bottom: 2rem;
      left: 1rem;
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: baseline;
      padding-bottom: 2rem;
      h4 {
        margin: 10px 0;
        transition: text-decoration 0.3s ease-in;
        color: #fff;
      }
      .social-icons {
        display: flex;
        margin-top: 10px;
      }
      .social-icons a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        width: 2rem;
        height: 2rem;
        background-color: rgba(0, 0, 0, 0.8);
        display: grid;
        place-items: center;
        padding: 5px;
      }
    }

    &:hover .info h4 {
      text-decoration: underline;
      text-underline-offset: 8px;
      color: #fff;
    }
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper {
    margin-left: auto;
    margin-right: auto;
  }
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 90%;
  z-index: 10;

  @media screen and (min-width: 992px) {
    left: 45px;
    top: 45%;
  }

  @media screen and (min-width: 1440px) {
    left: 90px;
  }

  @media screen and (min-width: 1500px) {
    left: 120px;
  }

  @media screen and (min-width: 1500px) {
    /* left: 10%; */
  }
}

.control {
  height: fit-content;
  color: white;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 50px;

  @media screen and (min-width: 992px) {
    top: 45%;
    font-size: 70px;
  }
}

.controls.desktop {
  display: none;

  @media screen and (min-width: 992px) {
    display: flex;
  }
}

.controls.mobile {
  display: flex;

  @media screen and (min-width: 992px) {
    display: none;
  }
}
