/**
 * @file
 * LMS Gallery styles.
 */

/* =====================================================
   SPLIDE GALLERY STYLES
   ===================================================== */

.splide {
  position: relative;
}

/* Style des flèches Splide */
.splide__arrow {
  background: rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
  width: 44px;
  height: 44px;
}

.splide__arrow:hover {
  background: rgba(0, 0, 0, 0.8) !important;
}

.splide__arrow svg {
  fill: #fff;
  width: 20px;
  height: 20px;
}

.splide__arrow:disabled {
  opacity: 0.3 !important;
}

/* Fullscreen button on splide */
.splide-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.splide-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* =====================================================
   LIGHTBOX GALLERY
   ===================================================== */

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

.gallery-lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
  box-sizing: border-box;
}

.gallery-lightbox__content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-lightbox__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
}

.gallery-lightbox__close:hover {
  color: #ccc;
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__prev {
  left: 15px;
}

.gallery-lightbox__next {
  right: 15px;
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
}
