/* ============================
   JCC Units - Popup Gallery
   ============================ */

/* Constrain gallery area inside the popup */
#unit-modal-gallery {
  position: relative;
  width: 100%;
  max-height: 65vh;
  overflow: hidden;
}
#unit-modal-gallery .swiper-pagination-lock {
  display: none;
}

/* Let Swiper fill container */
#unit-modal-gallery .swiper {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#unit-modal-gallery .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure images never overflow */
#unit-modal-gallery .swiper-slide img {
  height: 100%;
  object-fit: contain !important;
  display: block;
}
.unit-gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}

.unit-gallery-spinner {
  width: 20px;
  height: 20px;
  stroke: #FFC700;
  animation: spinner-rotate 1s linear infinite;
}

.unit-gallery-spinner circle {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke-linecap: round;
}

@keyframes spinner-rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Pagination: vertical dots on right */
#unit-modal-gallery .swiper-pagination {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
  left: auto;
}

/* Bullet style */
#unit-modal-gallery .swiper-pagination-bullet {
  width: 9.69px;
  height: 9.69px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #b55a52;
  opacity: 1;
  margin: 0 !important;
}

#unit-modal-gallery .swiper-pagination-bullet-active {
  background: #f2b233;
  border-color: #f2b233;
}

/* ============================
   JCC Units - Unit Tables
   ============================ */


.jcc-units-table__heading {
  margin: 0 0 10px;
}

.jcc-units-table__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.jcc-units-table__cell--sf {
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 767px) {
  #unit-modal-gallery .swiper-pagination-horizontal {
    right: auto !important;
    left: 50% !important;
    top: auto !important;
    bottom: 0px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }
}


/* Allow pinch-to-zoom gestures inside the Swiper slider */
#unit-modal-gallery .swiper,
#unit-modal-gallery .swiper-wrapper,
#unit-modal-gallery .swiper-slide,
#unit-modal-gallery .swiper-zoom-container,
#unit-modal-gallery .swiper-zoom-container img {
  touch-action: pan-y pinch-zoom !important;
}
