/* ===============================
   FINAL GALERY SLIDER – NO GAP
   Desktop + Mobile Responsive
=============================== */

/* RESET GLOBAL UNTUK MENCEGAH GAP */
.galery-section,
.galery-section * {
  box-sizing: border-box;
}

/* MAIN SECTION */
.galery-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 !important;
  margin: 0 !important;
  background: #fff;
  display: block;
  clear: both;
}

/* SLIDER WRAPPER */
.galery-slider {
  display: flex;
  width: 100%;
  height: auto !important;
  min-height: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* EACH SLIDE */
.galery-slide {
  min-width: 100%;
  height: auto !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 10px;
  margin: 0 !important;
}

/* IMAGE CARD */
.galery-slide img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.35s ease;
  display: block;
}

/* DESKTOP HEIGHT */
@media (min-width: 769px) {
  .galery-slide img {
    aspect-ratio: 3 / 5;
    min-height: 180px;
  }
}

/* MOBILE HEIGHT */
@media (max-width: 768px) {
  .galery-slide img {
    aspect-ratio: 3 / 7;
    min-height: 260px;
  }
}

/* HOVER EFFECT */
@media (hover: hover) {
  .galery-slide img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  }
}

/* ARROW BUTTON */
.galery-prev,
.galery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
}

.galery-prev:hover,
.galery-next:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.galery-prev {
  left: 6px;
}
.galery-next {
  right: 6px;
}

/* ===============================
   MODAL PREVIEW
=============================== */

.galery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
}

.galery-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.galery-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.galery-watermark {
  position: absolute;
  bottom: 12px;
  right: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   HARD FIX GAP BAWAH SECTION
=============================== */

/* Hilangkan margin default section setelah galery */
.galery-section + * {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

/* Hilangkan margin bawaan theme */
section {
  margin-top: 0;
  margin-bottom: 0;
}

/* Hilangkan whitespace akibat line-height */
.galery-section,
.galery-section div {
  line-height: 1;
}
