body {
  font-family: sans-serif;
}

input[type="text"],
input[type="password"] {
  margin: 20px 0;
  padding: 10px;
}

#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox-content {
  position: relative;
  text-align: center;
}

#lightbox-content img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 16px;
}

.download-btn,
#close-lightbox {
  position: relative;
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  max-height: 40px;
  margin: 8px;
}

.download-btn {
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.download-btn:hover {
  background: #000;
  color: #fff;
}

#close-lightbox {
  border: none;
  cursor: pointer;
  height: 40px;
}

#close-lightbox:hover {
  background: #000;
}

#close-lightbox svg:hover path {
  stroke: #fff;
}

#lightbox-ui {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2000;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 2001;
  color: #333;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn:disabled:hover {
  transform: translateY(-50%) scale(1);
  box-shadow: none;
}

.nav-prev {
  left: 20px;
}

.nav-next {
  right: 20px;
}

h1 {
  font-family: 'Inter', sans-serif;
  color: #1D1D1F;
  font-size: 50px;
  font-weight: 600;
  line-height: 44px;
}

h2 {
  font-family: 'Inter', sans-serif;
  color: #8F8F99;
  font-weight: 400;
  line-height: normal;
}

.photo-wrapper {
  position: relative;
}

.tag-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.85rem;
  padding: 5px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
}

.photo-wrapper:hover .tag-overlay {
  opacity: 1;
}
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.image-wrapper .tag-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.85rem;
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-wrapper:hover .tag-overlay {
  opacity: 1;
}

.img-responsive-smooth {
  width: 100%;
}

@media (min-width: 576px) {
  .img-responsive-smooth {
    width: 90%;
  }
}

@media (min-width: 768px) {
  .img-responsive-smooth {
    width: 75%;
  }
}

@media (min-width: 992px) {
  .img-responsive-smooth {
    width: 60%;
  }
}

@media (min-width: 1400px) {
  .img-responsive-smooth {
    width: 50%;
  }
}

/* Styles pour la sélection multiple */
.selection-mode .image-wrapper {
  cursor: pointer;
}

.selection-mode .image-wrapper img {
  cursor: pointer;
}

.photo-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.selection-mode .photo-checkbox {
  opacity: 1;
}

.image-wrapper.selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 110, 253, 0.2);
  border: 3px solid #0d6efd;
  border-radius: inherit;
  pointer-events: none;
}

.image-wrapper.selected .photo-checkbox {
  opacity: 1;
}


