.caij-web-slider-image {
  display: flex;
  justify-content: center;
  width: 100%;
}

.splide__track,
.slider-image-caij {
  width: 100%;
  max-width: 570px;
  max-height: 712px;
}

.splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: 712px;
}

/* slider top info */
.caij-slider-top-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  position: absolute;
  height: 40px;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
  padding: 0 20px;
}

.caij-slider-top-info span,
.caij-slider-page-number {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.caij-slider-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  position: absolute;
  height: 40px;
  width: 100%;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
  padding: 0 20px;
}
.slider-image-caij .splide__arrow {
  /* opacity: 0; */
  transition: opacity 0.3s ease-in-out;
}
.slider-image-caij .splide__arrow:disabled {
  /* opacity: 0; */
}

.slider-image-caij:hover .caij-slider-top-info,
.slider-image-caij:hover .caij-slider-footer-info,
.slider-image-caij:hover .splide__arrow {
  opacity: 1;
}
.slider-image-caij:hover .splide__arrow:disabled {
  opacity: 0.5;
}

.caij-slider-page-number-draggable {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1;
  height: 100%;
  width: 100%;
}

.caij-slider-pagination-number-draggable-point {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  cursor: grab;
  transition: transform 0.1s ease;
  position: relative;
  z-index: 2;
}

.caij-slider-pagination-number-draggable-point:active {
  cursor: grabbing;
}

.caij-slider-pagination-number-draggable-line {
  width: 100%;
  height: 2px;
  background: #fff;
}

.caij-slider-page-number-fullscreen-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.caij-slider-page-number-fullscreen-button svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.caij-slider-page-number-fullscreen-button:hover svg {
  opacity: 1;
}

/* Mode plein écran */
.caij-slider-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.caij-slider-fullscreen-overlay.active {
  display: flex;
}

.caij-slider-fullscreen-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caij-slider-fullscreen-container .splide {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.caij-slider-fullscreen-container .splide__track {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.caij-slider-fullscreen-container .splide__slide {
  width: 100%;
  height: 100%;
  min-height: auto;
}

.caij-slider-fullscreen-container .splide__slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.caij-slider-fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background 0.3s ease;
}

.caij-slider-fullscreen-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Masquer les contrôles par défaut en mode plein écran */
.caij-slider-fullscreen-container .caij-slider-top-info,
.caij-slider-fullscreen-container .caij-slider-footer-info {
  display: none;
}

/* Afficher les contrôles au survol en mode plein écran */
.caij-slider-fullscreen-container:hover .caij-slider-top-info,
.caij-slider-fullscreen-container:hover .caij-slider-footer-info {
  display: flex;
  opacity: 1;
}

/* Styles pour l'admin */
.caij-web-slider-image-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  margin: 20px 0;
}

.caij-admin-content {
  text-align: center;
  padding: 40px 20px;
}

.caij-admin-content h3 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 18px;
  font-weight: 600;
}

.caij-admin-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}
