/* Main slider container */
.slider-stories-section {
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 1; /* Aspect ratio of 3:1 */
  background-color: black;
}

/* Slider wrapper with transition */
.slider-stories-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  overflow: hidden;
}

/* Each slide within the slider */
.slide-story {
  min-width: 100%;
  height: 100%;
  position: relative;
}

/* Image within each slide */
.slide-story img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
}

/* Slider navigation buttons (Prev & Next) */
.slider-story-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.slider-story-btn.prev {
  left: 10px;
}

.slider-story-btn.next {
  right: 10px;
}

/* Video Explore Button */
.video-explore {
  position: absolute;
  top: 70%;
  left: 25%;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  cursor: pointer;
  z-index: 20;
  font-size: 1rem;
  transition: background 0.3s;
}

.video-explore:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-icon {
  font-size: 1.8rem;
  margin-right: 10px;
}

.video-label {
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 1rem;
  color: white;
}

/* Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.video-modal.active {
  display: flex;
}

.video-modal iframe {
  width: 80%;
  height: 60vh;
  max-width: 960px;
  border: none;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
  
  /* Slider Section */
  .slider-stories-section {
    margin: 20px auto; /* Less margin for mobile */
    aspect-ratio: 16 / 9; /* Change aspect ratio for better fit on mobile */
	
  }

  /* Adjust the slider buttons for mobile */
  .slider-story-btn {
    font-size: 1.5rem;
    padding: 8px;
  }

  /* Adjust video explore button */
  .video-explore {
    top: 30%; /* Move the video button lower on mobile */
    left: 40%;
    transform: translateX(-50%); /* Center the button */
    padding: 10px 16px;
    font-size: 0.9rem;
	width:300px
  }

  /* .video-icon { */
    /* font-size: 1.5rem; */
    /* margin-right: 8px; */
  /* } */

  /* Stack video label below the icon */
  .video-label {
    display: block; /* Make label appear under the icon */
    margin-top: 1px;
    font-size: 0.9rem;
  }

  /* Adjust modal iframe for smaller screens */
  .video-modal iframe {
    width: 90%;
    height: 50vh; /* Smaller height for mobile */
  }

  /* Close button positioning on mobile */
  .close-btn {
    top: 10px;
    right: 20px;
  }

  /* Adjust image display for mobile */
  .slide-story img {
    object-position: center center; /* Ensure images are centered */
  }

  /* Hide the navigation buttons if needed for mobile */
  .slider-story-btn {
    display: none; /* Optional: Hide buttons on small screens */
  }
}
