/* ===== igslide ===== */
.kg-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  max-height: 700px !important;
  max-width: none !important;
  margin: 0 auto;
  display: block;
}

/* Placeholder sebelum gambar load */
.kg-gallery-card:not([data-igslide-ready]) {
  aspect-ratio: 4/5;
  background: #ffffff;
  min-height: 600px;
}

@media (max-width: 767px) {
  .kg-gallery-card:not([data-igslide-ready]) {
    min-height: 0;
    aspect-ratio: 4/5;
  }
}

.igslide-outer {
  position: relative;
  width: 100%;
  display: block;
}

.igslide-track {
  display: flex;
  will-change: transform;
}

.igslide-slide {
  min-width: 100%;
}

.igslide-slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  border-radius: 0;
}

.igslide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 !important;
  margin-top: 30px !important;
  line-height: 1;
}

.igslide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #ccc;
  transition: background .2s, transform .2s;
  display: block;
}

.igslide-dot.active {
  background: #3897f0;
  transform: scale(1.3);
}

/* ── Arrow (desktop only) ── */
@media (min-width: 768px) {
  .igslide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    visibility: hidden;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #222;
    box-shadow: 0 1px 6px rgba(0,0,0,0.15);
    transition: opacity .2s;
  }

  .igslide-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .igslide-arrow-prev {
    left: -84px;
    margin-top: 0 !important;
  }

  .igslide-arrow-next {
    right: -84px;
    margin-top: 0 !important;
  }

  .igslide-arrow-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  .igslide-arrow {
    display: none !important;
  }
}
