/* Slideshow styles */

.image-slideshow-component {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.image-slideshow-component .slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.image-slideshow-component .slider::-webkit-scrollbar {
  display: none;
}

.image-slideshow-component .slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 800px;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 20px;
  cursor: pointer;
}

.image-slideshow-component .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  border: none;
  padding: 0px;
  cursor: pointer;
  z-index: 10;
  border-radius: 25px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
  backdrop-filter: blur(8px); /* Blurs the image behind it */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.image-slideshow-component .nav-btn:focus,
.image-slideshow-component .nav-btn:active {
  outline: none;
  box-shadow: none;
}

.image-slideshow-component .nav-btn.prev {
  left: 10px;
}
.image-slideshow-component .nav-btn.next {
  right: 10px;
}

.image-slideshow-component .dots-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
  backdrop-filter: blur(8px); /* Blurs the image behind it */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  border-radius: 20px;
  z-index: 10;
}

.image-slideshow-component .dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.image-slideshow-component .dot.active {
  background-color: #333;
}

/* Modal styles */

.image-slideshow-component .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-slideshow-component .modal.active {
  display: flex;
}

.modal-image-container {
  position: relative;
  display: inline-block;
  position: absolute;
  width: 90%;
  max-width: 2000px;
  height: auto;
}

.modal-image-container img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Position the close button at the top right */
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
  backdrop-filter: blur(8px); /* Blurs the image behind it */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.4);
}
