/* =========================
   HALAMAN GALERI
========================= */

/* BANNER GALERI */
.galeri-hero {
  background:
    linear-gradient(rgba(20, 55, 35, 0.75), rgba(20, 55, 35, 0.75)),
    url("/images/background-galeri.jpg");

  background-size: cover;
  background-position: center;

  min-height: 400px;
  padding: 100px 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #ffffff;
}

.galeri-hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.galeri-hero-label {
  display: inline-block;
  color: #e5c783;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.galeri-hero h1 {
  color: #ffffff;
  font-size: 44px;
  margin-bottom: 20px;
}

.galeri-hero h1::after {
  content: "";
  display: block;
  width: 75px;
  height: 3px;
  background: #c9a45c;
  margin: 20px auto 0;
  border-radius: 10px;
}

.galeri-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: #f5f5f5;
}

/* SECTION ALBUM */
.album-section {
  padding: 90px 30px;
  background: #faf9f6;
}

.album-container {
  max-width: 1100px;
  margin: 0 auto;
}

.album-header {
  text-align: center;
  margin-bottom: 50px;
}

.album-label {
  display: inline-block;
  color: #a7833e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.album-header h2 {
  font-size: 36px;
  color: #2f6545;
  margin-bottom: 15px;
}

.album-header p {
  color: #666666;
  font-size: 16px;
  line-height: 1.8;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: 1fr;
  }
}

/* KARTU ALBUM */
.album-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;

  border-bottom: 3px solid #c9a45c;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.album-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(47, 101, 69, 0.15);
}

.album-image {
  overflow: hidden;
}

.album-image img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;

  transition: transform 0.3s ease;
}

.album-card:hover .album-image img {
  transform: scale(1.05);
}

/* INFORMASI ALBUM */
.album-info {
  padding: 25px;
}

.album-info h3 {
  color: #2f6545;
  font-size: 21px;
  margin-bottom: 12px;
}

.album-info p {
  color: #666666;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.album-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #a7833e;
  font-size: 15px;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .galeri-hero {
    min-height: 320px;
    padding: 70px 20px;
  }

  .galeri-hero h1 {
    font-size: 32px;
  }

  .album-section {
    padding: 60px 20px;
  }

  .album-header h2 {
    font-size: 28px;
  }

  .album-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-card,
  .album-image img {
    transition: none;
  }
}
/* =====================================
   LINK ALBUM GALERI
===================================== */

.album-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;
  cursor: pointer;

  transition: color 0.3s ease;
}

.album-link:hover,
.album-link:focus-visible {
  color: #c9a45c;
}

.album-link i {
  transition: transform 0.3s ease;
}

.album-link:hover i {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .album-link,
  .album-link i {
    transition: none;
  }
}

/* =====================================
   HALAMAN DETAIL ALBUM
===================================== */

/* BANNER */
.detail-album-hero {
  padding: 100px 20px;
  background: linear-gradient(135deg, #244d35, #2f6545);
  text-align: center;
}

.detail-album-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.detail-album-label {
  display: inline-block;
  color: #e5c783;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.detail-album-hero h1 {
  color: #ffffff;
  font-size: 44px;
  margin-bottom: 20px;
}

.detail-album-hero p {
  color: #f0f5ef;
  font-size: 16px;
  line-height: 1.8;
}

/* BAGIAN FOTO */
.detail-album-section {
  padding: 90px 25px;
  background-color: #faf9f6;
}

.detail-album-container {
  max-width: 1100px;
  margin: 0 auto;
}

.detail-album-header {
  text-align: center;
  margin-bottom: 45px;
}

.detail-album-subtitle {
  display: inline-block;
  color: #a7833e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.detail-album-header h2 {
  color: #2f6545;
  font-size: 34px;
  margin-bottom: 15px;
}

.detail-album-header h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  margin: 18px auto 0;
  background-color: #c9a45c;
  border-radius: 10px;
}

.detail-album-header p {
  color: #666666;
  line-height: 1.8;
}

/* GRID FOTO */
.detail-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.detail-album-card {
  overflow: hidden;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(47, 101, 69, 0.08);
}

.detail-album-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-album-card:hover img {
  transform: scale(1.08);
}

/* TOMBOL KEMBALI */
.detail-album-footer {
  text-align: center;
  margin-top: 50px;
}

.detail-album-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: #2f6545;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.detail-album-back:hover {
  background-color: #c9a45c;
  color: #244d35;
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .detail-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .detail-album-hero {
    padding: 70px 20px;
  }

  .detail-album-hero h1 {
    font-size: 32px;
  }

  .detail-album-section {
    padding: 60px 20px;
  }

  .detail-album-header h2 {
    font-size: 27px;
  }

  .detail-album-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-album-card img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-album-card img,
  .detail-album-back {
    transition: none;
  }
}

/* LIGHTBOX GALERI */

.album-photo {
  cursor: pointer;
}

.album-photo:focus-visible {
  outline: 3px solid #c9a45c;
  outline-offset: -3px;
}

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

.album-lightbox.active {
  display: flex;
}

.album-lightbox img {
  max-width: 85%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 35px;
  z-index: 2;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 45px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 25px;
  color: #e5c783;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 576px) {
  .album-lightbox img {
    max-width: 78%;
    max-height: 75vh;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* =====================================
   BANNER GALERI DENGAN FOTO
===================================== */

.galeri-hero {
  position: relative;
  background:
    linear-gradient(rgba(36, 77, 53, 0.75), rgba(36, 77, 53, 0.75)),
    url("../images/banner-galeri.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 110px 20px;
  text-align: center;
}

.galeri-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.galeri-hero h1 {
  color: #ffffff;
}

.galeri-hero p {
  color: #ffffff;
}

.galeri-hero-label {
  color: #e5c783;
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .galeri-hero {
    padding: 80px 20px;
    background-position: center;
  }
}
/* =====================================
   BANNER FOTO DETAIL ALBUM
===================================== */

.detail-album-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 110px 20px;
  text-align: center;
}

.detail-album-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .detail-album-hero {
    padding: 80px 20px;
    background-position: center;
  }
}

/* Contoh konsep, jangan ditempel dulu */
.album-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.album-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.album-card-link {
  margin-top: auto;
}

/* =====================================
   HOVER CARD GALERI KEGIATAN
===================================== */

.album-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  transform-origin: center;
}

/* Efek timbul saat kursor diarahkan */
@media (hover: hover) and (pointer: fine) {
  .album-card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
  }
}

/* Gerakan tombol panah */
.album-link i {
  display: inline-block;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .album-card:hover .album-link i {
    transform: translateX(5px);
  }
}

/* Mengikuti pengaturan aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .album-card,
  .album-link i {
    transition: none;
  }
}

/* =====================================
   ANIMASI SCROLL HALAMAN GALERI
===================================== */

/* Kondisi awal sebelum elemen muncul */
.galeri-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Saat elemen terlihat */
.galeri-reveal.galeri-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Jeda animasi */
.galeri-delay-1 {
  transition-delay: 0.15s;
}

.galeri-delay-2 {
  transition-delay: 0.3s;
}

.galeri-delay-3 {
  transition-delay: 0.45s;
}

/* Hover card tetap aktif setelah animasi */
@media (hover: hover) and (pointer: fine) {
  .album-card.galeri-visible:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .galeri-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================
   ANIMASI DETAIL ALBUM
===================================== */

/* Animasi muncul saat scroll */
.detail-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Setelah elemen terlihat */
.detail-reveal.detail-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi hover pada card foto */
.detail-album-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Foto sedikit terangkat dan membesar */
@media (hover: hover) and (pointer: fine) {
  .detail-album-card.detail-visible:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
  }
}

/* Kursor menunjukkan foto bisa diklik */
.detail-album-card .album-photo {
  cursor: zoom-in;
}

/* Mengurangi animasi jika diperlukan */
@media (prefers-reduced-motion: reduce) {
  .detail-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .detail-album-card {
    transition: none;
  }
}
