.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal .close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 300;
  color: #6b7280;
  cursor: pointer;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}
@media (min-width: 768px) {
  .modal .close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }
}
.modal .close:hover {
  color: #1f2937;
  background: white;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal .modal-content {
  position: relative;
  background: white;
  border-radius: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  overflow: hidden;
}
@media (min-width: 768px) {
  .modal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 0.618rem;
    height: auto;
  }
}
.modal .modal-content #modal-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  flex: 1;
  transition: opacity 0.3s ease;
}
@media (min-width: 768px) {
  .modal .modal-content #modal-img {
    max-height: 75vh;
  }
}
.modal .modal-content .modal-info {
  padding: 0.618rem;
  background: white;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal .modal-content .modal-info h2.oeuvre-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}
@media (min-width: 768px) {
  .modal .modal-content .modal-info h2.oeuvre-title {
    font-size: 1.25rem;
  }
}
.modal .modal-content .modal-info p.oeuvre-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b7280;
}
@media (min-width: 768px) {
  .modal .modal-content .modal-info p.oeuvre-desc {
    font-size: 0.9rem;
  }
}
.modal .modal-content .modal-info .oeuvre-dimensions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #4b5563;
}
.modal .modal-content .modal-info .oeuvre-dimensions span {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.modal .modal-content .modal-info .slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.modal .modal-content .modal-info .slider-wrapper .slider-prev,
.modal .modal-content .modal-info .slider-wrapper .slider-next {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.3;
}
.modal .modal-content .modal-info .slider-wrapper .slider-prev.visible,
.modal .modal-content .modal-info .slider-wrapper .slider-next.visible {
  opacity: 1;
}
.modal .modal-content .modal-info .slider-wrapper .slider-prev.visible:hover,
.modal .modal-content .modal-info .slider-wrapper .slider-next.visible:hover {
  background: #e5e7eb;
}
.modal .modal-content .modal-info .slider-wrapper .slider-prev svg,
.modal .modal-content .modal-info .slider-wrapper .slider-next svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal .modal-content .modal-info .slider-wrapper .slider-prev:hover svg,
.modal .modal-content .modal-info .slider-wrapper .slider-next:hover svg {
  stroke: #6366f1;
}
.modal .modal-content .modal-info .slider-wrapper .other-pictures {
  flex: 1;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal .modal-content .modal-info .slider-wrapper .other-pictures::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .modal .modal-content .modal-info .slider-wrapper .other-pictures {
    gap: 0.5rem;
  }
}
.modal .modal-content .modal-info .slider-wrapper .other-pictures .thumbImg {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 0.375rem;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.modal .modal-content .modal-info .slider-wrapper .other-pictures .thumbImg:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.modal .modal-content .modal-info .slider-wrapper .other-pictures .thumbImg.active {
  opacity: 1;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  cursor: default;
}
@media (min-width: 768px) {
  .modal .modal-content .modal-info .slider-wrapper .other-pictures .thumbImg {
    width: 48px;
    height: 48px;
  }
}
@media (min-width: 768px) {
  .modal.portrait .modal-content {
    flex-direction: row;
    align-items: stretch;
  }
  .modal.portrait .modal-content #modal-img {
    flex: 1;
    max-height: none;
    height: auto;
    max-width: 70%;
  }
  .modal.portrait .modal-content .modal-info {
    width: 30%;
    max-width: 300px;
    border-top: none;
    border-left: 1px solid #e5e7eb;
    justify-content: center;
  }
}
.modal.portrait .modal-content .slider-wrapper .other-pictures .thumbImg {
  width: 44px;
  height: 44px;
}
@media (min-width: 768px) {
  .modal.portrait .modal-content .slider-wrapper .other-pictures .thumbImg {
    width: 48px;
    height: 48px;
  }
}
@media (min-width: 768px) {
  .modal.paysage .modal-content {
    flex-direction: column;
  }
  .modal.paysage .modal-content #modal-img {
    max-height: 70vh;
    width: 100%;
    flex: none;
  }
  .modal.paysage .modal-content .modal-info {
    border-top: 1px solid #e5e7eb;
    border-left: none;
    max-width: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }
  .modal.paysage .modal-content .modal-info h2.oeuvre-title,
  .modal.paysage .modal-content .modal-info p.oeuvre-desc,
  .modal.paysage .modal-content .modal-info .oeuvre-dimensions {
    flex: 0 0 auto;
    margin: 0;
  }
  .modal.paysage .modal-content .modal-info .slider-wrapper {
    flex: 1 1 100%;
    justify-content: center;
    width: 90%;
    margin: 0.5rem auto 0;
  }
}
@media (min-width: 768px) {
  .modal.carre .modal-content {
    flex-direction: row;
  }
  .modal.carre .modal-content #modal-img {
    flex: 1;
    max-height: none;
  }
  .modal.carre .modal-content .modal-info {
    width: 280px;
    border-top: none;
    border-left: 1px solid #e5e7eb;
  }
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal.open .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.modal.open .close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.modal.closing .modal-content {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.3s ease;
}
.modal.closing .close {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

/*# sourceMappingURL=modal.css.map */
