.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: var(--radius);
  max-width: 900px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 30px;
  background-color: #f8f8f8;
  padding: 10px;
}

.details {
  text-align: center;
  padding: 0 20px;
}

.details h3 {
  margin: 0 0 15px;
  font-size: 1.4rem;
  color: var(--text-color);
}

.details p {
  margin: 10px 0;
  color: #666;
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 12px;
  background-color: var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  color: white;
}

.close:hover {
  background-color: #ff4d3d;
  transform: rotate(90deg);
}