/*!
 * GLightbox v3.2.0 | MIT License
 * https://github.com/jbmolle/glightbox.js
 */

/* Wrapper and Container */
.glightbox-wrapper {
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.glightbox-wrapper.glightbox-open {
  opacity: 1;
  visibility: visible;
}

.glightbox-wrapper.glightbox-closing {
  opacity: 0;
  visibility: hidden;
}

.glightbox-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Slides */
.gslide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.gslide.current {
  display: flex;
}

.gslide-inner-content {
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  max-width: 100%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

.gslide-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gslide-image img {
  max-width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  object-fit: contain;
  cursor: default;
}

.gslide-image iframe {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
}

/* Close Button */
.glightbox-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  text-decoration: none;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 8px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.glightbox-close:focus {
  outline: none;
}

.glightbox-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Navigation Buttons */
.glightbox-prev,
.glightbox-next {
  cursor: pointer;
  overflow: visible;
  border: none;
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
  z-index: 999;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glightbox-prev:focus,
.glightbox-next:focus {
  outline: none;
}

.glightbox-prev:hover,
.glightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.glightbox-prev svg,
.glightbox-next svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glightbox-prev {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

.glightbox-next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .glightbox-prev,
  .glightbox-next {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .glightbox-prev svg,
  .glightbox-next svg {
    width: 20px;
    height: 20px;
  }

  .glightbox-close {
    width: 36px;
    height: 36px;
    padding: 6px;
    top: 10px;
    right: 10px;
  }

  .glightbox-close svg {
    width: 20px;
    height: 20px;
  }

  .gslide-image img {
    max-height: 80vh;
  }
}
