.gallery-slider-container {
  position: relative;
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
  padding: 40px 0;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 9;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.gallery-image-wrapper img:hover {
  opacity: 0.9;
}

/* Gallery Image Filter Icon - Top Right Corner */
.gallery-image-icon-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: transparent;
  border: none;
  color: #37A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
  padding: 0;
  font-size: 0;
}

.gallery-image-icon-btn .material-icons {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #37A;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.gallery-image-icon-btn:hover {
  background-color: rgba(51, 119, 170, 0.15);
  transform: scale(1.1);
}

.gallery-image-icon-btn:active {
  background-color: rgba(51, 119, 170, 0.25);
  transform: scale(0.98);
}

.gallery-image-icon-btn:focus {
  outline: none;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #37A;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev-btn {
  left: 20px;
}

.gallery-next-btn {
  right: 20px;
}

.gallery-nav-btn i {
  font-size: 20px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.gallery-dot:hover {
  background-color: #999;
  transform: scale(1.2);
}

.gallery-dot.active {
  background-color: #009999;
  transform: scale(1.3);
}

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

.gallery-modal-content {
  position: relative;
  width: 90%;
  max-width: 2560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background-color: transparent;
  border: none;
  color: #37A;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.gallery-modal-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: #2a5a8a;
  text-shadow: 0 0 8px rgba(55, 170, 170, 0.3);
}

.gallery-modal-close:active {
  transform: scale(1.05) rotate(90deg);
}

.gallery-modal-close:focus {
  outline: 2px solid #37A;
  outline-offset: 3px;
}

.gallery-modal-slider {
  position: relative;
  width: 100%;
}

.gallery-modal-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.gallery-modal-image-wrapper img,
.gallery-modal-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

/* Updated Modal Navigation Buttons */
.gallery-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #37A;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.gallery-modal-nav-btn:hover {
  background-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-nav-btn:active {
  background-color: transparent;
}

.gallery-modal-prev-btn {
  left: 20px;
}

.gallery-modal-next-btn {
  right: 20px;
}

.gallery-modal-nav-btn i {
  font-size: 24px;
  color: #37A;
}

/* Hide modal dots */
.gallery-modal-dots {
  display: none;
}

.gallery-modal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.gallery-modal-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.gallery-modal-dot.active {
  background-color: #009999;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .gallery-image-wrapper {
    aspect-ratio: 16 / 9;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav-btn i {
    font-size: 16px;
  }
  
  .gallery-prev-btn {
    left: 10px;
  }
  
  .gallery-next-btn {
    right: 10px;
  }

  .gallery-image-icon-btn {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }

  .gallery-image-icon-btn .material-icons {
    font-size: 20px;
  }

  .gallery-modal-image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .gallery-modal-nav-btn {
    width: 50px;
    height: 50px;
  }

  .gallery-modal-nav-btn i {
    font-size: 20px;
  }

  .gallery-modal-close {
    top: -40px;
    font-size: 26px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 576px) {
  .gallery-image-wrapper {
    aspect-ratio: 16 / 9;
  }
  
  .gallery-nav-btn {
    width: 35px;
    height: 35px;
  }
  
  .gallery-nav-btn i {
    font-size: 14px;
  }

  .gallery-image-icon-btn {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
  }

  .gallery-image-icon-btn .material-icons {
    font-size: 18px;
  }

  .gallery-modal-image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .gallery-modal-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 3px;
  }

  .gallery-modal-nav-btn i {
    font-size: 18px;
  }

  .gallery-modal-prev-btn {
    left: 10px;
  }

  .gallery-modal-next-btn {
    right: 10px;
  }

  .gallery-modal-close {
    top: -35px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
}