/* HORISEN Gallery Styles */
.custom-gallery-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Gallery Slider */
.gallery-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-slides {
  position: relative;
  width: 100%;
  height: 80vh;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-slide img:hover {
}

.slide-caption {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-slide:hover .slide-caption {
  transform: translateY(0);
}

.slide-caption h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  font-weight: 600;
}

.slide-caption p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Navigation arrows */
.gallery-nav {
  position: absolute;
  bottom: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;
  background-position: center;
  color: transparent;
  width: 100px;
  height: 80px;
  border-radius: 0 !important;
}

.gallery-prev {
  left: 35px;
  background-image: url(/wp-content/uploads/2025/06/city-bau_icons_arrow-previous.svg);
}

.gallery-next {
  right: 35px;
  background-image: url(/wp-content/uploads/2025/06/city-bau_icons_arrow-next.svg);
}

/* Dot indicators */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gallery-dot {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #aeb1ae;
  width: 20px;
  height: 4px;
  border: none;
}

.gallery-dot.active,
.gallery-dot:hover {
  width: 40px;
  background-color: #384d37;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.gallery-lightbox.active {
  display: block;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-image-container {
  min-width: 100%;
  min-height: 100%;
}

.lightbox-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 5%;
  background: none;
  border: none;
  color: white;
  font-size: 100px;
  font-weight: 100;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(50%);
}

.lightbox-close:hover {
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;
  background-position: center;
  color: transparent;
  width: 70px;
  height: 42px;
  border-radius: 0 !important;
}

.lightbox-nav:hover {
}

.lightbox-prev {
  left: 30px;
  background-image: url(/wp-content/uploads/2025/06/city-bau_icons_arrow-previous.svg);
}

.lightbox-next {
  right: 30px;
  background-image: url(/wp-content/uploads/2025/06/city-bau_icons_arrow-next.svg);
}

.lightbox-info {
  position: absolute;
  top: 40px;
  left: 5%;
  color: white;
  text-align: center;
  display: none;
}

.lightbox-counter {
  background: transparent;
  font-size: 18px;
}

/* Lightbox dots */
.lightbox-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10001;
}

.lightbox-dot {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.5);
  width: 20px;
  height: 4px;
  border: none;
  border-radius: 2px;
}

.lightbox-dot.active,
.lightbox-dot:hover {
  width: 40px;
  background-color: rgba(255, 255, 255, 0.9);
}

.lightbox-caption {
  display: none;
}

.lightbox-caption h3 {
  margin: 0 0 5px 0;
  font-size: 1.3em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lightbox-caption p {
  margin: 0;
  font-size: 1em;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive design - Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .gallery-slides {
    height: 60vh;
  }

  .gallery-nav {
    width: 65px;
    height: 30px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .slide-caption {
    padding: 20px 15px 15px;
  }

  .slide-caption h3 {
    font-size: 1.1em;
  }

  .slide-caption p {
    font-size: 0.8em;
  }

  .gallery-dots {
    margin-top: 15px;
  }
  .lightbox-nav {
    width: 60px;
    height: 35px;
  }
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    font-size: 120px;
    transform: none;
    right: 20px;
    top: 20px;
  }

  .lightbox-dots {
    bottom: 30px;
    gap: 10px;
  }

  .lightbox-dot {
    width: 16px;
    height: 3px;
  }

  .lightbox-dot.active,
  .lightbox-dot:hover {
    width: 32px;
  }

  .lightbox-caption h3 {
    font-size: 1.1em;
  }

  .lightbox-caption p {
    font-size: 0.9em;
  }
}

/* Mobile Landscape - Use desktop image */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 768px) {
  .gallery-slides {
    height: 80vh;
  }

  .gallery-nav {
    width: 60px;
    height: 30px;
    bottom: 40px;
  }

  .gallery-prev {
    left: 20px;
  }

  .gallery-next {
    right: 20px;
  }

  .slide-caption {
    padding: 15px 20px 15px;
  }

  .slide-caption h3 {
    font-size: 1em;
  }

  .slide-caption p {
    font-size: 0.8em;
  }

  .gallery-dots {
    margin-top: 15px;
  }

  .lightbox-nav {
    width: 50px;
    height: 30px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-close {
    font-size: 80px;
    transform: none;
    right: 15px;
    top: 15px;
  }

  .lightbox-dots {
    bottom: 20px;
    gap: 8px;
  }

  .lightbox-dot {
    width: 18px;
    height: 3px;
  }

  .lightbox-dot.active,
  .lightbox-dot:hover {
    width: 36px;
  }

  .lightbox-caption h3 {
    font-size: 1em;
  }

  .lightbox-caption p {
    font-size: 0.8em;
  }
}

@media (min-width: 2000px) {
  .lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 1920px;
    margin: 0 auto;
    display: block;
  }
}
