/* guesty-slides.css: Responsive multi-image slider */
.guesty-slides-wrapper {
  position: relative;
  overflow: visible;
}
.guesty-slides-gallery {
  position: relative;
  width: 100%;
  margin: 0;
  max-width: none;
  overflow: hidden;
  background: transparent;
  padding: 0 44px; /* Make room for arrows on both sides */
  box-sizing: border-box;
}
.guesty-slider-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.guesty-slide {
  flex: 0 0 auto;
  width: 16.66%; /* 6 per row on desktop */
  padding: 0.5em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.guesty-slide-aspect {
  width: 100%;
  aspect-ratio: 1.618 / 1;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guesty-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
}
/* Slider caption under each thumbnail */
.guesty-slide-caption {
  margin-top: 6px;
  font-size: 0.9em;
  line-height: 1.3;
  color: #333;
  text-align: center;
  display: block;
  word-break: break-word;
}
.guesty-slider-prev,
.guesty-slider-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.7em;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(-50%);
}
.guesty-slider-prev {
  left: 4px;
}
.guesty-slider-next {
  right: 4px;
}
.guesty-slider-prev:hover,
.guesty-slider-next:hover {
  background: rgba(0,0,0,0.7);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .guesty-slide { width: 25%; } /* 4 per row */
}
@media (max-width: 768px) {
  .guesty-slide { width: 33.33%; } /* 3 per row */
}
@media (max-width: 600px) {
  .guesty-slide { width: 50%; } /* 2 per row */
  .guesty-slides-gallery {
    padding: 0 28px;
  }
  .guesty-slider-prev,
  .guesty-slider-next {
    width: 32px;
    height: 32px;
    font-size: 1.2em;
  }
  .guesty-slider-prev { left: 2px; }
  .guesty-slider-next { right: 2px; }
}
@media (max-width: 400px) {
  .guesty-slide { width: 100%; } /* 1 per row */
}

/* Enhanced Lightbox Styles */
.guesty-lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
}
.guesty-lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
  object-fit: contain;
}
.guesty-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  transition: opacity 0.2s;
}
.guesty-lightbox-close:hover {
  opacity: 0.7;
}

/* Lightbox Navigation Arrows - Same style as slider but inverted colors */
.guesty-lightbox-prev,
.guesty-lightbox-next {
  position: absolute;
  top: 50%;
  z-index: 10001;
  background: rgba(255,255,255,0.8);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8em;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guesty-lightbox-prev {
  left: 20px;
}
.guesty-lightbox-next {
  right: 20px;
}
.guesty-lightbox-prev:hover,
.guesty-lightbox-next:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-50%) scale(1.1);
}

/* Image Counter */
.guesty-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

/* Lightbox caption - EXTREMELY VISIBLE */
.guesty-lightbox-caption {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff !important;
  background: #000 !important;
  padding: 16px 24px;
  border-radius: 12px;
  max-width: 85vw;
  text-align: center;
  font-size: 1.2em !important;
  font-weight: 600 !important;
  line-height: 1.5;
  z-index: 10002 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
  word-break: break-word;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force caption visibility with additional selectors */
.guesty-lightbox .guesty-lightbox-caption,
.guesty-lightbox-caption[style*="display: none"],
.guesty-lightbox-caption[style*="opacity: 0"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  background: #000 !important;
  border: 3px solid #fff !important;
}

/* Nuclear option - force all captions to be visible */
.guesty-lightbox-caption {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  background: #000 !important;
  border: 3px solid #fff !important;
  font-size: 1.2em !important;
  font-weight: 600 !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
  z-index: 10002 !important;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .guesty-lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }
  .guesty-lightbox-prev,
  .guesty-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
  }
  .guesty-lightbox-prev { left: 10px; }
  .guesty-lightbox-next { right: 10px; }
  .guesty-lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 2em;
  }
  .guesty-lightbox-counter {
    bottom: 10px;
    padding: 6px 12px;
    font-size: 0.8em;
  }
  .guesty-lightbox-caption {
    bottom: 50px;
    padding: 12px 18px;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    max-width: 95vw;
    border-radius: 10px;
    color: #fff !important;
    background: #000 !important;
    border: 2px solid #fff !important;
    z-index: 10002 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide lightbox captions on mobile */
  .guesty-lightbox-caption,
  .universal-caption {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}

/* Extra safety: force caption container hidden when toggled in JS */
.guesty-lightbox.guesty-hide-lightbox-captions .guesty-lightbox-caption,
.guesty-lightbox.guesty-hide-lightbox-captions .universal-caption {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
