/* GT Lightbox */
#gt-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: auto;
}
#gt-lightbox-overlay.gt-lb-open {
  display: flex;
}
/* Background — clicking this closes the lightbox */
#gt-lb-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
  pointer-events: auto;
  z-index: 0;
}
/* Image + arrows in a flex row — arrows are flex siblings of the image,
   never outside their container, so hit-testing is always reliable */
#gt-lightbox-img-wrap {
  position: relative;
  max-height: 82vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: auto;
}
#gt-lightbox-img {
  max-width: 82vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,.68,0,1.3), opacity 0.22s ease;
  display: block;
  cursor: default;
  flex-shrink: 1;
  order: 1;
}
#gt-lightbox-overlay.gt-lb-open #gt-lightbox-img {
  transform: scale(1);
  opacity: 1;
}
/* Arrows as flex items — inside the container, always hittable */
.gt-lb-arrow {
  flex-shrink: 0;
  background: rgba(255,255,255,0.13);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.18s;
  user-select: none;
  line-height: 1;
  pointer-events: auto;
  margin: 0 12px;
}
.gt-lb-arrow:hover { background: rgba(255,255,255,0.28); }
#gt-lb-prev { order: 0; }
#gt-lb-next { order: 2; }
.gt-lb-arrow.gt-lb-hidden { display: none; }

/* Close button */
#gt-lb-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: rgba(255,255,255,0.13);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  transition: background 0.18s;
  line-height: 1;
  pointer-events: auto;
}
#gt-lb-close:hover { background: rgba(255,255,255,0.28); }

/* Dots */
#gt-lb-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  min-height: 14px;
  z-index: 1;
  pointer-events: auto;
}
.gt-lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.18s, transform 0.18s;
  display: inline-block;
}
.gt-lb-dot.gt-lb-dot-active {
  background: #fff;
  transform: scale(1.25);
}

/* Only show on desktop */
@media (max-width: 767px) {
  #gt-lightbox-overlay { display: none !important; }
  img.owo { cursor: default !important; }
}
