/* Slideshow Container: clip contents so slides outside the container are hidden */
.info-slideshow-container {
  position: relative;
  margin: 2rem 0;
  overflow: hidden; /* changed from visible, so excess parts are hidden */
}

/* Hide captions under each slide */
.slide-caption {
  display: none;
}

/* The shadow box – slightly offset left and down */
.slide-shadow {
  /* position: absolute;
  top: 30px;
  left: -20px;
  width: 100%;
  height: 100%;
  background: rgb(132, 134, 120); */
  /* opacity: 0.1; */
  /* transform: skew(-5deg, -5deg); */
  /* z-index: -1;
  border-radius: 8px; */
}

/* Slider Wrapper */
.info-slideshow {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Each slide: fixed height with auto-adjusted width */
.info-slide {
  flex: 0 0 auto;
  margin: 0 10px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 316px; /* 60% of 526px, for a smaller slider */
}

/* Slide images: cover the container while preserving aspect ratio */
.info-slide img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  margin: 0 auto;
}

/* Optional: Remove caption styles (not necessary since .slide-caption is hidden) */
.caption-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.caption-text {
  font-size: 1rem;
}

/* Navigation Buttons */
.info-slideshow-prev,
.info-slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.info-slideshow-prev:hover,
.info-slideshow-next:hover {
  background: rgba(0,0,0,0.7);
}

/* Position buttons on the left/right */
.info-slideshow-prev {
  left: 10px;
}

.info-slideshow-next {
  right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .info-slide {
    flex: 0 0 90%;
    margin: 0 5px;
  }

  .caption-title {
    font-size: 1.2rem;
  }

  .caption-text {
    font-size: 0.9rem;
  }

  .info-slideshow-prev,
  .info-slideshow-next {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
  }
}

/* New flex container for slider and side image */
.slider-and-image {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

/* Slider container to hold the slideshow */
.slider-container {
  flex: 0 0 70%;
  max-width: 70%;
  position: relative;
}

/* Slider container with single offset shadow */
.slider-container::before {
  /* content: "";
  position: absolute;
  top: 0;
  bottom: -10px;
  left: -10px;    
  right: 0; 
  background: rgba(0, 0, 0, 0.1);
  transform: skew(-5deg, -5deg);
  z-index: -1;
  border-radius: 8px; */
}

/* The side image takes the remaining 30% */
.side-image {
  flex: 0 0 30%;
  max-width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive adjustments: on smaller screens, stack the slider and image */
@media (max-width: 768px) {
  .slider-and-image {
    flex-direction: column;
  }
  .slider-container,
  .side-image {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .side-image {
    margin-top: 1rem;
  }
} 