/* components/modal.css - Modal-spezifische Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: #f0f0f0;
}

/* IMAGE MODAL STYLES */
.image-modal-content {
    text-align: center;
    padding: 20px;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.image-modal-title {
    margin-top: 15px;
    font-size: 1.5rem;
    color: #0066cc;
}

/* IMAGE ZOOM STYLES */
.modal-image {
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-image.zoomed img {
  transform: scale(1.5);
  cursor: zoom-out;
}

.modal-image.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2000;
  margin: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.95) !important;
  cursor: zoom-out;
}

.modal-image.fullscreen img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  cursor: zoom-out;
}

body.no-scroll {
  overflow: hidden !important;
}