/**
 * @file
 * Styles for MAW Lightbox overlay.
 */

.maw-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.maw-lightbox-overlay.maw-lightbox-visible {
  opacity: 1;
}

.maw-lightbox-content {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  position: relative;
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.maw-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-in-out;
}

.maw-lightbox-close:hover {
  color: #000;
}

.maw-lightbox-close:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .maw-lightbox-content {
    max-width: 95%;
    max-height: 95vh;
    padding: 15px;
  }

  .maw-lightbox-close {
    font-size: 24px;
  }
}
