/* Lightbox Modal Styles */
.ringberg-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ringberg-lightbox-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.ringberg-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: ringbergLightboxZoom 0.3s ease;
}

@keyframes ringbergLightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ringberg-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
}

.ringberg-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ringberg-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.ringberg-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.ringberg-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.ringberg-lightbox-prev {
  left: -60px;
}

.ringberg-lightbox-next {
  right: -60px;
}

/* Make images clickable */
img[data-lightbox] {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

img[data-lightbox]:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .ringberg-lightbox-prev,
  .ringberg-lightbox-next {
    display: none;
  }

  .ringberg-lightbox-close {
    top: 10px;
    right: 10px;
  }

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