/* Lightbox Styling */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

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

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

.lightbox-content {
  position: relative;
  max-width: 50%;
  max-height: 90vh;
  background: #000;
  border-radius: 4px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.lightbox-image {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3001;
  transition: color 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #2c98f0;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #2c98f0;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #f1f1f1;
  text-align: center;
  padding: 15px;
  font-size: 16px;
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 30px;
  color: #f1f1f1;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 85vh;
  }

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

  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 8px 15px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .lightbox-counter {
    top: 10px;
    left: 10px;
    font-size: 14px;
  }
}
