
.carousel-wrapper{
    width: 100vw;
    max-width: 1700px;
    min-height: 400px;
    height: 72vh;
    display: flex;
    justify-content: center;
    align-content: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 0 auto;
}
.text-panel {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    margin-left: 5%;
}
@keyframes fadeIn {
    from {
    opacity: 0;
    }
    to {
    opacity: 1;
    }
}
.slider {
  position: relative;
  width: 60%;
    height: 100%;
}

.slides-wrapper {
  position: absolute; /* Change to absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Fill the slider */
  background: none;
  overflow: hidden;
  padding-top: 0; /* Remove aspect ratio padding */
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(100%, 0);
}

.slide.active {
   transform: translate(0, 0);
}

.slide img {
     width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px; 
  height: auto;
  text-align: center;
  overflow: visible;
  z-index: 2;
}

.slide-indicators button {
  width: 9px;
  height: 9px;
  position: relative;
  padding: 0;
  background: #999;
  border: none;
  border-radius: 50%;
  margin: 0 8px;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
  
  display: inline-block;
  vertical-align: top; /* Optional: avoids baseline alignment gaps */
}


.slide-indicators button::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.slide-indicators button.active {
  background:  #f0b347;
}

.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 10%;            
  aspect-ratio: 1 / 1;    /* makes width equal to height */
  background: rgba(40, 40, 44,0.2);
  border: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-size: 20px; /* arrow size */
  color: rgba(255, 255, 255, 0.3);
}

.prev-button {
  left: 0px;
}

.next-button {
  right: 0px;
}

.slides-wrapper:hover ~ .prev-button,
.prev-button:hover,
.slides-wrapper:hover ~ .next-button,
.next-button:hover {
  background: rgba(40, 40, 44, 0.5);
  color: rgba(255, 255, 255, 0.7);
}

.prev-button:active,
.next-button:active {
  background: rgba(40, 40, 44, 0.3);
  color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px), (orientation: portrait) {
    .carousel-wrapper{
        flex-direction: row;
        align-content: space-between;
        min-height: 800px;
        gap: 0%;
    }
    .slider{
        height: 50%;
        margin: 0px 0px;
        width: 100%;
    }
    .text-panel{
        margin: 0px 0px;
        width: 80%;
        text-align: center;
        height: 50%;
        overflow: hidden;
    }
}



