.nicobay-hero-gallery {
  position: relative;
}

.nicobay-hero-gallery__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px;
  position: relative;
}

/* Gallery Links */
.nicobay-hero-gallery__link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.nicobay-hero-gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nicobay-hero-gallery__link:hover img {
  transform: scale(1.05);
}

/* Swiper Container */
.nicobay-hero-gallery__swiper {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.nicobay-hero-gallery__pagination {
  width: 100%;
  justify-content: center;
  display: flex;
  gap: 8px;
  text-align: center;
  margin: 0;
}

.nicobay-hero-gallery__pagination .swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #ffffff !important;
  opacity: 1 !important;
  border: 2px solid rgba(128, 128, 128, 0.8) !important; /* Gray border */
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  z-index: 10 !important;
}

.nicobay-hero-gallery__pagination .swiper-pagination-bullet:hover {
  background: rgba(128, 128, 128, 0.5) !important; /* Darker gray on hover */
  border-color: rgba(64, 64, 64, 0.5) !important;
  transform: scale(1.2);
}

.nicobay-hero-gallery__pagination .swiper-pagination-bullet-active {
  background: #666666 !important; /* Dark gray for active state */
  border-color: rgba(128, 128, 128, 0) !important;
  /* transform: scale(1.3); */
}

/* Swiper Slides */
.nicobay-hero-gallery__slide {
  width: 100%;
  height: auto;
}

.nicobay-hero-gallery__slide-layout {
  display: flex;
  gap: 1rem;
  height: 100%;
}

/* Left section (main image) */
.nicobay-hero-gallery__left {
  flex: 1;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
  aspect-ratio: 4 / 3;
}

.nicobay-hero-gallery__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nicobay-hero-gallery__left:hover img {
  transform: scale(1.05);
}

/* Right section (grid) */
.nicobay-hero-gallery__right {
  flex: 1;
}

.nicobay-hero-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  height: 100%;
}

.nicobay-hero-gallery__grid-item {
  overflow: hidden;
  border-radius: 3px;
  position: relative;
  aspect-ratio: 4 / 3;
}

.nicobay-hero-gallery__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nicobay-hero-gallery__grid-item:hover img {
  transform: scale(1.05);
}

/* Navigation Arrows - Simple Direct Implementation */

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1) !important;
}

/* Hide default Swiper arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "" !important;
  display: none !important;
}

/* Arrow image styling */
.nicobay-hero-gallery__arrow-img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
}

/* Additional styling for our custom classes */
.nicobay-hero-gallery-button-next,
.nicobay-hero-gallery-button-prev {
  width: 42px !important;
  height: 42px !important;
  margin-top: -8px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Remove ::after pseudo-elements since we're using img tags */
.nicobay-hero-gallery-button-next::after,
.nicobay-hero-gallery-button-prev::after {
  content: none !important;
  display: none !important;
}

.nicobay-hero-gallery-button-next:hover,
.nicobay-hero-gallery-button-prev:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev,
  .nicobay-hero-gallery-button-next,
  .nicobay-hero-gallery-button-prev {
    display: none !important;
  }

  .swiper-button-next {
    display: none !important;
  }

  .swiper-button-prev {
    display: none !important;
  }

  .nicobay-hero-gallery-button-next {
    right: -18px !important;
  }

  .nicobay-hero-gallery-button-prev {
    left: -18px !important;
  }
}

/* Hide Swiper default arrows */
.nicobay-hero-gallery-button-next::before,
.nicobay-hero-gallery-button-next::after,
.nicobay-hero-gallery-button-prev::before,
.nicobay-hero-gallery-button-prev::after {
  display: none !important;
  font-family: inherit !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: "" !important;
}

/* Pagination Dots - Removed duplicate styles, using the gray ones above */

/* Mobile styles */
@media screen and (max-width: 768px) {
  .nicobay-hero-gallery__container {
    padding: 15px;
  }

  .nicobay-hero-gallery__slide-layout {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nicobay-hero-gallery__grid {
    gap: 0.5rem;
  }

  /* Mobile pagination */
  .nicobay-hero-gallery__pagination {
    bottom: 15px !important;
    gap: 6px;
  }

  .nicobay-hero-gallery__pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
  }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nicobay-hero-gallery__slide-layout {
    gap: 0.75rem;
  }

  .nicobay-hero-gallery__grid {
    gap: 0.5rem;
  }

  .nicobay-hero-gallery__nav {
    width: 45px;
    height: 45px;
  }

  .nicobay-hero-gallery__nav--prev {
    left: 15px;
  }

  .nicobay-hero-gallery__nav--next {
    right: 15px;
  }
}

/* Placeholder styles */
.nicobay-hero-gallery .placeholder-svg {
  background: #f5f5f5;
  width: 100%;
  height: 100%;
  display: block;
}

/* Section padding */
.nicobay-hero-gallery.section-padding {
  padding-top: var(--padding-top, 36px);
  padding-bottom: var(--padding-bottom, 36px);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media screen and (min-width: 1200px) {
  .nicobay-hero-gallery.section-padding {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Loading state */
.nicobay-hero-gallery:not(.nicobay-hero-gallery--initialized)
  .nicobay-hero-gallery__nav {
  opacity: 0;
  pointer-events: none;
}

.nicobay-hero-gallery--initialized .nicobay-hero-gallery__nav {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s ease;
}
