
/* ===============================
   Default: Show Colorbox, hide Swiper
   =============================== */
.field-photos--default {
  display: block;
}
.field-photos--swiper {
  display: none; /* Swiper hidden by default */
}

/* Mobile: Swiper shown by JS */
@media (max-width: 640px) {
  .photo-gallery-wrapper {
    display: none; /* hide Colorbox wrapper */
  }
}

/* ===============================
   Swiper styles
   =============================== */
.field-photos-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  position: relative; /* for absolute arrows */
}

.swiper-wrapper {
  display: flex;
}

/* Swiper slides */
.swiper-slide {
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
  overflow: hidden;         /* hide overflow if needed */
}

/* Images inside slides */
.swiper-slide img {
  width: 100%;       /* scale image to container width */
  height: auto;      /* maintain aspect ratio */
  object-fit: contain;  /* scale image to fit without cropping */
  display: block;
}


/* Pagination bullets */
.swiper-pagination {
  position: relative;
  bottom: 10px;
  transition: opacity 0.3s ease;
}
.swiper-pagination-hidden {
  opacity: 0;
}

/* ===============================
   Swiper navigation arrows
   =============================== */
.swiper-button-prev,
.swiper-button-next {
  width: 32px;               /* smaller width */
  height: 32px;              /* smaller height */
  font-size: 18px;           /* smaller arrow */
  color: #fff !important;    /* white arrow */
  background: rgba(0, 0, 0, 0.5); /* dark translucent circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Hover effect */
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Position left/right */
.swiper-button-prev {
  left: 10px;
}
.swiper-button-next {
  right: 10px;
}

/* Optional: hide default Swiper arrow pseudo-elements if you want custom icons */
/* .swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
} */

/* ===============================
   Mobile: Show Swiper, hide Colorbox
   =============================== */
@media (max-width: 640px) {
  .photo-gallery-wrapper {
    display: none;
  }
  .field-photos--swiper {
    display: block;
  }

  /* Hide arrows on mobile if desired */
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}
