/* Single Post Image Gallery Styles */
.single-post-image-gallery-wrapper {
  margin: 0 auto;
  padding: 3rem 0;
}

.single-post-image-gallery-wrapper .image-gallery-carousel {
  padding: 0px;
  overflow: hidden;
}

.single-post-image-gallery-wrapper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.single-post-image-gallery-wrapper .image-gallery-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.single-post-image-gallery-wrapper .image-gallery-item {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .single-post-image-gallery-wrapper .image-gallery-item {
    height: 300px;
  }
}

.single-post-image-gallery-wrapper .image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}
.single-post-image-gallery-wrapper .swiper-pagination-horizontal {
  /* width: auto !important; */
}
/* Gallery title */
.image-gallery-title {
  font-family: var(--fontFamily);
  font-size: 2.5rem;
  color: var(--accentColor2);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .image-gallery-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* Pagination styles */
.single-post-image-gallery-wrapper .swiper-pagination {
  position: relative;
  margin-top: 0;
  text-align: center;
  padding-block: 2rem;
}

.single-post-image-gallery-wrapper .swiper-pagination-bullet {
  width: 24px;
  height: 12px;
  background: #000;
  border-radius: 2rem;
  opacity: 0.5;
  margin: 0 2px !important;
  transition: all 0.3s ease;
  transform: scale(1) !important;
}

.single-post-image-gallery-wrapper .swiper-pagination-bullet-active {
  background: var(--accentColor);
  opacity: 1;
}

.single-post-image-gallery-wrapper .swiper-pagination-bullet:hover {
  background: var(--accentColor);
  opacity: 0.8;
}

/* Dynamic bullets styling */
.single-post-image-gallery-wrapper .swiper-pagination-bullet-active-main {
  background: var(--accentColor);
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .single-post-image-gallery-wrapper {
    padding: 2rem 0;
  }
}

/* Lightbox Styles */
.image-gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10001;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .lightbox-next {
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .lightbox-counter {
    bottom: 20px;
    font-size: 14px;
  }
}
