/* Lightbox Modal Styles */

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 44, 0.95);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in;
}

.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
  max-width: 100%;
  word-wrap: break-word;
}

/* Lightbox Controls */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 10px 15px;
  user-select: none;
  transition: color 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ccc;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 44px;
}

.lightbox-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* Responsive Design */

@media screen and (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 8px 12px;
  }

  .lightbox-close {
    font-size: 36px;
    top: 10px;
    right: 15px;
  }

  .lightbox-image {
    max-height: 70vh;
  }
}

@media screen and (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 20px;
  }

  .lightbox-content {
    width: 95%;
  }
}
