/* ===================================
   GALLERY SECTION
=================================== */
:root {
  --primary: #a65a2e;
  --secondary: #d4a64a;
  --background: #faf8f4;
  --dark: #3d2a1f;
  --accent: #e9c46a;
  --light-primary: #c9866e;
  --light-secondary: #e0b86d;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-primary);
  color: var(--dark);
}

.gallery-header h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-section {
  padding: 40px;
  background: #faf8f4;
}

.gallery-header {
  max-width: 700px;
  margin: auto;
  text-align: center;
  margin-bottom: 70px;
}

.gallery-subtitle {
  display: block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.gallery-header h2 {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--dark);
  margin-bottom: 20px;
}

.gallery-header p {
  color: #666;
  line-height: 1.8;
}

/* ===================================
   CAROUSEL
=================================== */

.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Track */

.gallery-track {
  position: relative;

  width: 100%;

  height: 560px;
}

/* ===================================
   CARD
=================================== */

.gallery-card {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 280px;
  height: 420px;

  transform: translate(-50%, -50%);

  border-radius: 28px;

  overflow: hidden;

  cursor: pointer;

  transition:
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.6s,
    filter 0.6s;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: 0.4s;
}

/* Hover */

.gallery-card:hover img {
  transform: scale(1.08);
}

/* ===================================
   ACTIVE
=================================== */

.gallery-card.active {
  width: 330px;
  height: 460px;

  transform: scale(1);

  opacity: 1;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);

  z-index: 10;
}

/* Card sebelah aktif */

.gallery-card.near {
  opacity: 0.8;

  transform: scale(0.9);
}

/* ===================================
   BUTTON
=================================== */

.gallery-btn {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 55px;
  height: 55px;

  border: none;

  border-radius: 50%;

  background: white;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

  cursor: pointer;

  font-size: 22px;

  color: var(--primary);

  transition: 0.3s;

  z-index: 100;
}

.gallery-btn:hover {
  background: var(--primary);

  color: white;
}

.gallery-btn.prev {
  left: 40px;
}

.gallery-btn.next {
  right: 40px;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1024px) {
  .gallery-track {
    padding: 40px 70px;
  }

  .gallery-btn.prev {
    left: 10px;
  }

  .gallery-btn.next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .gallery-track {
    padding: 40px 20px;
  }

  .gallery-btn {
    width: 46px;
    height: 46px;

    font-size: 18px;
  }

  .gallery-btn.prev {
    left: 8px;
  }

  .gallery-btn.next {
    right: 8px;
  }
}
