/* ===== HERO GALLERY SECTION ===== */
.gallery-landing {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: url('../images/Image9.webp') center/cover;
  transition: background-image 0.6s ease;
}

.gallery-landing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.gallery-landing-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  min-height: 100vh;
  justify-content: center;
}

.gallery-landing-content {
  max-width: 700px;
}

.gallery-landing-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  letter-spacing: 3px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.6), 1px -1px 0 rgba(0, 0, 0, 0.6), -1px 1px 0 rgba(0, 0, 0, 0.6), 1px 1px 0 rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.gallery-landing-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.8), 1px -1px 0 rgba(0, 0, 0, 0.8), -1px 1px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.gallery-landing-description {
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.7), 1px -1px 0 rgba(0, 0, 0, 0.7), -1px 1px 0 rgba(0, 0, 0, 0.7), 1px 1px 0 rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.3);
}

.gallery-thumbnail-strip {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: nowrap;
  z-index: 10;
  overflow-x: auto;
  overflow-y: visible;
  padding: 15px 20px 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
  pointer-events: auto;
}

/* Fade effect wrapper for mobile carousel */
.gallery-thumbnail-strip-wrapper {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  width: auto;
}

/* Desktop: Pastikan thumbnail bisa diklik */
.gallery-thumbnail-strip-wrapper .gallery-thumbnail-strip {
  pointer-events: auto;
  position: relative;
  z-index: 12;
}

.gallery-thumbnail-strip-wrapper .gallery-thumb {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 13;
}

.gallery-thumbnail-strip-wrapper::before,
.gallery-thumbnail-strip-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 11;
  pointer-events: none;
  display: none;
}

.gallery-thumbnail-strip-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.gallery-thumbnail-strip-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

/* Gallery Slider Navigation Buttons */
.gallery-slider-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(210, 171, 128, 0.6);
  color: #d2ab80;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: auto;
}

.gallery-slider-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(210, 171, 128, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-slider-btn:hover::before {
  opacity: 1;
}

.gallery-slider-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: #d2ab80;
}

.gallery-slider-prev:hover {
  transform: translateX(-60px);
}

.gallery-slider-next:hover {
  transform: translateX(20px);
}

.gallery-slider-btn:active {
  opacity: 0.8;
}

.gallery-slider-btn i {
  font-size: 18px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-slider-btn:hover i {
  opacity: 1;
}

.gallery-slider-prev i {
  margin-right: 2px;
}

.gallery-slider-next i {
  margin-left: 2px;
}

.gallery-slider-prev {
  left: 50%;
  top: auto;
  bottom: -40px;
  transform: translateX(-60px);
}

.gallery-slider-next {
  left: 50%;
  top: auto;
  bottom: -40px;
  transform: translateX(20px);
}

.gallery-thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width: 110px;
  height: 70px;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.3s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.gallery-thumb.active {
  border-color: #d2ab80;
}

/* Responsive untuk HP */
@media (max-width: 768px) {
  .gallery-landing-inner {
    justify-content: flex-start;
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-landing-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .gallery-landing-content {
    margin-top: 0;
  }

  /* Thumbnail strip menjadi slider dengan auto-scroll di mobile */
  .gallery-thumbnail-strip {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }

  .gallery-thumbnail-strip::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* Sembunyikan thumbnail ke-4 dan ke-5 di mobile (hanya tampilkan 3 thumbnail) */
  .gallery-thumb[data-index='3'],
  .gallery-thumb[data-index='4'] {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-landing-inner {
    padding-top: 80px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .gallery-landing-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
}
