/* Optimization for Bootstrap Icons Performance */
@font-face {
  font-family: "bootstrap-icons";
  src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6")
    format("woff2");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
}

/* Custom Main Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #bfa100);
  border-radius: 10px;
  border: 2px solid #ffffff; /* Memberikan efek padding di dalam track */
}

::-webkit-scrollbar-thumb:hover {
  background: #bfa100;
}

/* Firefox Support */
html {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #ffffff;
  scrollbar-gutter: stable;
  overflow: hidden; /* Kunci scroll root sepenuhnya di awal */
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  overflow: hidden;
  height: 100%;
}

html.allow-scroll,
body.allow-scroll {
  overflow-y: auto; /* Gunakan auto agar lebih natural namun tetap stabil karena gutter */
  overflow-x: hidden;
  height: auto;
}

/* Mencegah ghost horizontal scroll akibat animasi AOS fade-left/right */
[data-aos] {
  pointer-events: none;
  /* Mengoptimalkan performa animasi pada mobile */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.allow-scroll [data-aos] {
  pointer-events: auto;
}

.cinzel-font {
  font-family: "Cinzel", serif;
}

/* Menjamin tidak ada scroll horizontal di semua level */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body,
body:focus,
body:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border: none;
  box-shadow: none;
}

/* Music Control Button */
.music-control {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 12000;
  width: 45px;
  height: 45px;
  background: rgba(212, 175, 55, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  visibility: hidden;
  opacity: 0;
}

.music-control.visible {
  visibility: visible;
  opacity: 1;
}

.music-control:hover {
  background: #bfa100;
}
.music-control i {
  font-size: 1.4rem;
}

/* Music Status Text Label */
.music-status-text {
  position: fixed;
  bottom: 34px;
  right: 80px;
  background: rgba(212, 175, 55, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s ease;
  z-index: 12000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.music-status-text.show {
  opacity: 1;
  transform: translateX(0);
}

/* Gelombang saat musik diputar */
.music-control.playing::before,
.music-control.playing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  z-index: -1;
  animation: pulse-wave 2s infinite;
}

.music-control.playing::after {
  animation-delay: 1s;
}

@keyframes pulse-wave {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Cover Section Styles */
.cover {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  color: white;
  overflow: hidden;
  z-index: 1000;
}

/* Penyesuaian Layout Cover saat Mode Landscape (Mobile) agar tidak overflow */
.cover.is-landscape .cover-content {
  margin-bottom: 22vh; /* Dinaikkan agar konten tidak tertutup wave saat mode landscape */
}

.cover.is-landscape h1 {
  font-size: 2.2rem; /* Perkecil ukuran nama */
  margin: 5px 0;
}

.cover.is-landscape .guest-name {
  margin-bottom: 12px;
}

.cover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.cover-content {
  z-index: 1100;
  margin-bottom: 20vh; /* Dinaikkan secara signifikan agar aman dari jangkauan wave di bawahnya */
  transition: margin-bottom 0.5s ease-in-out;
}

.cover-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* Mencakup setengah bagian bawah layar */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  z-index: 3;
  /* Berada di atas .img-1 (z-index 1) dan .img-2 (z-index 2) */
  pointer-events: none;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.7);
  /* Membuat teks lebih mudah dibaca */
  transition: opacity 1s ease-in-out;
}

/* Strategi Stacking: img-1 jadi base, img-2 yang memudar */
.img-1 {
  z-index: 1;
  opacity: 1;
  /* Selalu terlihat */
  animation: kenBurnsBase 10s infinite alternate;
}

.img-2 {
  z-index: 2;
  animation:
    kenBurnsTop 10s infinite alternate,
    fadeEffect 10s infinite alternate;
}

/* Zoom perlahan dari 1.1 ke 1.2 */
@keyframes kenBurnsBase {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.2);
  }
}

/* Zoom perlahan dari 1.0 ke 1.1 */
@keyframes kenBurnsTop {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* Animasi Fade yang mulus tanpa memperlihatkan background */
@keyframes fadeEffect {
  0%,
  20% {
    opacity: 0;
  }

  /* Menampilkan img-1 (base) sepenuhnya */
  80%,
  100% {
    opacity: 1;
  }

  /* Menampilkan img-2 di atas img-1 */
}

.cover-content h1 {
  font-size: 3rem;
  margin: 10px 0;
  /* Merapatkan jarak antara salam dan nama */
  letter-spacing: 5px;
}

.event-date {
  font-size: 1.1rem;
  margin-bottom: 20px;
  /* Jarak tanggal ke bagian sapaan tamu dirapatkan */
  letter-spacing: 2px;
  text-transform: uppercase;
}

.recipient-text {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.guest-name {
  font-size: 1.6rem;
  margin-bottom: 20px;
  /* Merapatkan jarak nama tamu ke tombol */
  font-weight: 600;
  letter-spacing: 1px;
  transition: margin-bottom 0.5s ease-in-out;
}

/* Wave Animation Styles */
.cover .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("Elemen/Elemen%20Pendukung/wave.png");
  background-size: 1000px 100px;
}

.cover .wave.wave1 {
  animation: animate 30s linear infinite;
  z-index: 1000;
  opacity: 1;
  animation-delay: 0s;
  bottom: -30px;
  will-change: background-position;
}

.cover .wave.wave2 {
  animation: animate2 15s linear infinite;
  z-index: 999;
  opacity: 0.5;
  animation-delay: -5s;
  bottom: -20px;
  will-change: background-position;
}

.cover .wave.wave3 {
  animation: animate 30s linear infinite;
  z-index: 998;
  opacity: 0.2;
  animation-delay: -2s;
  bottom: -15px;
  will-change: background-position;
}

.cover .wave.wave4 {
  animation: animate2 5s linear infinite;
  z-index: 997;
  opacity: 0.7;
  animation-delay: -5s;
  bottom: -10px;
  will-change: background-position;
}

@keyframes animate {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: 1000px;
  }
}

@keyframes animate2 {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -1000px;
  }
}

.open-btn {
  margin-top: 10px;
  /* Menyesuaikan margin atas tombol agar tidak terlalu jauh */
  padding: 12px 35px;
  background: transparent;
  border: 1px solid white;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
  text-transform: uppercase;
}

.open-btn:hover {
  background: white;
  color: #333;
}

/* Gold Particles Styles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
  /* Di atas background overlay (3), di bawah konten (1100) */
  pointer-events: none;
}

.particle {
  position: absolute;
  top: -10px;
  background: radial-gradient(circle, #ffe08a 0%, #d4af37 100%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  opacity: 0;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh);
    opacity: 0;
  }

  20% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Mempelai Section Styles */
.mempelai-section {
  padding: 40px 50px 0px;
  background-color: #ffffff;
  color: #2c3e50;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden; /* Mencegah elemen AOS memperpanjang tinggi/lebar halaman sebelum animasi */
}

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

/* Menghilangkan batasan container bawaan agar mengikuti max-width section */
.mempelai-section .container,
.event-section .container {
  max-width: 100%;
}

.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem;
}

.opening-greeting h2 {
  color: #d4af37;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.opening-greeting p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 1100px;
  margin: 20px auto;
  color: #666;
}

.couple-container {
  display: flex;
  flex-direction: row; /* Tampilan Desktop: Bersebelahan */
  justify-content: space-around;
  align-items: flex-start;
  gap: 40px;
}

.mempelai-card {
  flex: 1;
  padding: 20px;
}

.mempelai-img-wrapper {
  width: 230px;
  height: 280px;
  margin: 0 auto 25px;
  border: 2px solid #d4af37;
  /* Warna Gold */
  padding: 10px;
  border-radius: 100px 100px 0 0;
  /* Bentuk Arch */
  overflow: hidden;
}

.mempelai-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 90px 90px 0 0;
}

.mempelai-card .name {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #bfa100;
  min-height: 2.5rem;
}

.parents {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.parents .intro {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.parent-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.parent-divider {
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: bold;
  line-height: 1;
}

.address {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 15px;
  line-height: 1.4;
  min-height: 3rem;
}

.divider {
  font-size: 3rem;
  color: #d4af37;
  margin: 0;
  align-self: center;
}

.mantra-box {
  max-width: 800px;
  margin: 30px auto;
  padding: 40px 20px;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0px 20px 0px 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mantra-box:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.mantra-box::before,
.mantra-box::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.6s ease;
  will-change: transform, opacity;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.3;
}

.mantra-box::before {
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h100v10H10v90H0V0z' fill='%23d4af37'/%3E%3Cpath d='M20 20h40v5H25v35h-5V20z' fill='%23d4af37'/%3E%3C/svg%3E");
}

.mantra-box::after {
  bottom: 0;
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100 100H0v-10h90V0h10v100z' fill='%23d4af37'/%3E%3Cpath d='M80 80H40v-5h35V40h5v40z' fill='%23d4af37'/%3E%3C/svg%3E");
}

.mantra-box:hover::before {
  transform: translate(15px, 15px);
  opacity: 0.8;
}

.mantra-box:hover::after {
  transform: translate(-15px, -15px);
  opacity: 0.8;
}

.mantra-icon {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  color: #d4af37;
  display: block;
  margin-bottom: 15px;
  animation: rotateSun 10s linear infinite;
}

@keyframes rotateSun {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mantra-sanskrit {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  color: #bfa100;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.mantra-divider {
  width: 80px;
  margin: 15px auto;
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  transition:
    width 0.6s ease,
    background 0.6s ease;
}

.mantra-box:hover .mantra-divider {
  width: 250px;
  background: linear-gradient(
    90deg,
    transparent,
    #bfa100,
    #f7e695,
    #bfa100,
    transparent
  );
}

.mantra-translation {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  color: #2c3e50;
  line-height: 1.8;
  font-style: italic;
}

.mantra-source {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #2c3e50;
  letter-spacing: 2px;
}

/* Event Section Styles */
.event-section {
  padding: 80px 50px 40px;
  background-color: #fdfdfd;
  background-image: radial-gradient(#d4af37 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden; /* Mengunci pemicu scrollbar dari elemen AOS fade-up */
}

.section-title {
  font-size: 2.5rem;
  color: #bfa100;
  margin-bottom: 20px;
}

.event-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.event-card {
  flex: 1;
  max-width: 500px;
  min-width: 280px;
}

.event-arch {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 50px 30px 40px 30px;
  border-radius: 180px 180px 20px 20px; /* Bentuk Arch Tinggi */
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-arch:hover {
  border-color: #d4af37;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
}

.event-icon-top {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 20px;
}

.event-arch h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.event-arch h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  pointer-events: none;
}

.event-info {
  width: 100%;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.info-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.event-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-event {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #d4af37;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
  border: 1px solid #d4af37;
}

.btn-event i {
  margin-right: 5px;
}

.btn-event.outline {
  background: transparent;
  color: #d4af37;
}

.btn-event:hover {
  background: #bfa100;
  border-color: #bfa100;
  color: white;
}

.btn-map i {
  color: #d4af37;
}

.btn-map:hover i {
  color: #ffffff;
}

.btn-event,
.read-more-btn,
.reply-btn,
.view-reply-btn {
  cursor: pointer;
}

.btn-event.outline:hover {
  background: #f1efef;
  border-color: #bfa100;
  color: #bfa100;
}

/* Countdown Styles */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 15px; /* Jarak antar box yang lebih rapat agar fleksibel */
  margin: 50px auto 0;
  flex-wrap: nowrap; /* Memaksa tetap 1 baris (4 box) secara default */
  max-width: 600px; /* Membatasi lebar total area countdown agar tetap rapi di tengah */
  width: 100%;
}

.countdown-box {
  flex: 1; /* Membagi rata lebar container secara adil */
  max-width: 150px; /* Diperlebar agar bisa lebih fleksibel */
  min-width: 0; /* Menghapus batas minimal agar tidak memaksa turun baris */
  min-height: 98px; /* Menambah tinggi agar box tidak terlihat gepeng */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 15px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.countdown-box:hover {
  border-color: #d4af37;
}

.countdown-box span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #d4af37;
  font-family: "Cinzel", serif;
}

.countdown-box p {
  font-size: 0.75rem;
  margin: 0;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.closing-text {
  max-width: 980px;
  margin: 50px auto 30px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666;
}

.family-section {
  padding-bottom: 20px;
}

.family-section p {
  font-size: 1.2rem;
  color: #bfa100;
  line-height: 1.5;
}

.family-names {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #2c3e50;
  max-width: 880px;
  margin: 50px auto 0;
}

.family-side {
  min-width: 250px;
}

.family-amp {
  display: block;
  margin: 5px 0;
  color: #2c3e50;
  font-weight: bold;
  font-size: 0.9rem;
}

.family-side strong {
  display: block;
  line-height: 1.3;
}

/* Gallery Section Styles */
.gallery-section {
  padding: 30px 50px; /* Atas-bawah 80px, Kiri-kanan 50px */
  background-color: #ffffff;
  max-width: 1300px;
  margin: 0 auto; /* Memastikan section berada di tengah layar */
  overflow: hidden;
}

#gallery .container {
  max-width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 120px; /* Tinggi dasar per unit */
  grid-auto-flow: dense;
  gap: 15px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px; /* Border radius 20px saja */
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.5s ease;
  background-color: #f8f8f8; /* Placeholder warna sebelum gambar muncul */
  backface-visibility: hidden; /* Memicu GPU acceleration */
  transform: translateZ(0); /* Tambahan hint untuk layer promotion */
  contain: content; /* Mengisolasi elemen galeri agar render lebih cepat */
}

.gallery-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none; /* Agar tidak menghalangi klik pada gambar */
  z-index: 1;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.portrait {
  grid-row: span 3; /* Tinggi 3 unit */
}

.gallery-item.landscape {
  grid-row: span 2; /* Tinggi 2 unit */
}

.gallery-item.portrait.momen11 {
  grid-row: span 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.7s ease,
    filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

/* Lightbox/Modal Galeri */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  transition:
    opacity 0.3s ease,
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
  touch-action: none;
}

.lightbox-img.zoomed {
  cursor: grab;
}

.lightbox-img.changing {
  opacity: 0;
  transform: scale(0.95);
}

/* Slide Transition: Next (Keluar ke Kiri, Masuk dari Kanan) */
.lightbox-img.slide-next-out {
  opacity: 0;
  transform: translateX(-100px) scale(0.9);
}

.lightbox-img.slide-next-in {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
  transition: none; /* Pindah ke posisi awal secara instan */
}

/* Slide Transition: Prev (Keluar ke Kanan, Masuk dari Kiri) */
.lightbox-img.slide-prev-out {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
}

.lightbox-img.slide-prev-in {
  opacity: 0;
  transform: translateX(-100px) scale(0.9);
  transition: none; /* Pindah ke posisi awal secara instan */
}

/* Loading Spinner */
.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10000;
}

.lightbox-loader.show {
  display: flex;
}

.loader-text {
  color: #d4af37;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top: 3px solid #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 15px;
  color: #ffffff;
  font-size: 1.1rem;
  z-index: 10001;
  font-family: "Cinzel", serif;
}

.lightbox-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 10002;
}

.toolbar-btn {
  background: transparent;
  border: none;
  color: #ffffff; /* Menghilangkan warna kuning/emas */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.toolbar-btn:hover {
  background: transparent;
  opacity: 0.7; /* Efek halus saat disentuh */
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(194, 189, 189, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  transition: 0.3s;
  z-index: 10001;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

.lightbox-prev {
  left: 80px;
}
.lightbox-next {
  right: 80px;
}

.gallery-item img {
  cursor: pointer;
}

/* Hybrid Attendance Section */
.attendance-section {
  padding: 50px 50px;
  background-color: #ffffff;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
}

.attendance-wrapper {
  display: flex;
  gap: 30px; /* Perkecil gap default agar lebih aman di tablet */
  align-items: flex-start;
}

.attendance-form-container,
.attendance-list-container {
  flex: 1 1 0;
  min-width: 0; /* Mencegah kolom meluap saat ada konten panjang */
  width: 50%;
  display: flex;
  flex-direction: column;
}

.attendance-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  height: auto;
}

.attendance-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #bfa100;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
}

.flex-1 {
  flex: 1;
}

.feed-header {
  font-family: "Cinzel", serif;
  color: #bfa100;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.1);
  text-align: center;
}

.feed-header span {
  color: #d4af37;
  font-weight: normal;
}

.guestbook-list {
  flex: 1;
  overflow-y: auto;
}

/* Custom Scrollbar */
.guestbook-list::-webkit-scrollbar {
  width: 4px;
}
.guestbook-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.guestbook-list::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}

.guestbook-item {
  background: rgba(212, 175, 55, 0.03);
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.guestbook-item:last-child {
  margin-bottom: 0;
}

.guestbook-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.gb-header-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 12px;
}

.gb-avatar {
  font-size: 2.5rem;
  color: #d4af37;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.gb-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* Penting: Mengizinkan container mengecil agar teks di dalamnya bisa terpotong */
}

.gb-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: nowrap; /* Mencegah badge turun ke bawah agar nama bisa terpotong */
  overflow: hidden;
}

.gb-meta {
  margin-bottom: 8px;
}

.gb-name {
  font-family: "Montserrat", sans-serif;
  color: #bfa100;
  font-size: 0.95rem;
  white-space: nowrap; /* Paksa teks dalam satu baris */
  overflow: hidden; /* Sembunyikan teks yang meluap */
  text-overflow: ellipsis; /* Tambahkan "..." di akhir teks */
  flex-shrink: 1; /* Izinkan nama mengecil jika ruang sempit */
  min-width: 0; /* Syarat wajib agar ellipsis bekerja dalam flexbox */
}

.status-badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0; /* Pastikan badge tidak ikut gepeng/mengecil */
  white-space: nowrap; /* Menjamin teks 'Hadir/Absen' tidak turun ke baris baru */
}

.status-hadir {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}
.status-absen {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.gb-message {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  display: block;
}

.msg-text {
  display: inline;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-text {
  animation: fadeInText 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  animation-fill-mode: both;
}

.gb-time {
  font-size: 0.7rem;
  color: #bbb;
}

.read-more-btn {
  background: none;
  border: none;
  color: #bfa100;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 3px;
  display: inline-block;
  vertical-align: baseline;
}

.gb-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.reply-btn {
  background: none;
  border: none;
  color: #bfa100;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Gift Section Styles */
.gift-section {
  padding: 50px 50px;
  background-color: #ffffff;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
}

.gift-layout-wrapper {
  display: flex;
  gap: 50px; /* Jarak antar kolom */
  align-items: flex-start; /* Mengatur agar tinggi kolom menyesuaikan kontennya sendiri */
  flex-wrap: wrap; /* Izinkan kolom untuk membungkus pada layar kecil */
  justify-content: center; /* Pusatkan konten saat membungkus */
}

.gift-column {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gift-column-left {
  flex: 2;
  min-width: 320px;
  max-width: 500px;
}

.gift-column-right {
  flex: 1;
  min-width: 320px;
}

.gift-header {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
  margin-bottom: 25px;
  color: #bfa100;
}

.gift-header i {
  font-size: 2rem;
}

.gift-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.gift-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 25px;
  font-style: italic;
  line-height: 1.6;
  text-align: left;
}

.gift-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: left;
}

.address-box {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.address-item i {
  font-size: 1.5rem;
  color: #d4af37;
  margin-top: 3px;
}

.address-item strong {
  display: block;
  font-size: 0.9rem;
  color: #bfa100;
  margin-bottom: 5px;
}

.address-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
}

.btn-map:hover {
  background: #d4af37;
  color: white;
}

.bank-card-container-stacked {
  display: flex;
  flex-direction: column; /* Tumpuk kartu secara vertikal */
  gap: 25px; /* Jarak antar kartu yang ditumpuk */
  width: 100%; /* Buat kontainer mengambil lebar penuh dari induknya */
  align-items: center; /* Pusatkan kartu secara horizontal jika lebarnya kurang dari 100% */
}

.bank-card {
  width: 100%; /* Buat kartu mengambil lebar penuh dari kontainernya */
  max-width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #fff9e6 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.bank-logo {
  position: relative;
  z-index: 2;
  font-family: "Cinzel", serif;
  font-weight: bold;
  color: #d4af37;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Kontainer Flexbox baru untuk nomor, nama, dan tombol */
.bank-details-flex-wrapper {
  display: flex;
  align-items: center; /* Sejajarkan item secara vertikal saat dalam satu baris */
  flex-wrap: wrap; /* Izinkan item untuk membungkus ke baris berikutnya */
  margin-bottom: 5px; /* Jarak di bawah grup ini */
  position: relative; /* Pertahankan positioning untuk z-index jika diperlukan */
  z-index: 2; /* Pertahankan z-index jika diperlukan */
}

/* Wrapper untuk nomor rekening */
.bank-number-display {
  order: 1; /* Urutan default: nomor pertama */
  flex-shrink: 1; /* Izinkan nomor untuk menyusut jika perlu */
  min-width: 0; /* Penting untuk teks yang meluap dalam item flex */
}

.bank-number-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.bank-number {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #2c3e50;
  margin-bottom: 0;
  font-weight: 500;
}

.bank-name {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}

/* Sesuaikan gaya .bank-name agar bekerja dengan flexbox baru */
.bank-details-flex-wrapper .bank-name {
  order: 3; /* Urutan default: nama setelah nomor dan tombol */
  flex-basis: 100%; /* Paksa nama ke baris baru di desktop */
  margin-top: 5px; /* Jarak antara nomor/tombol dan nama */
}

.btn-copy {
  background: none;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  order: 2; /* Urutan default: tombol di samping nomor */
  margin-left: auto; /* Dorong ke kanan saat dalam satu baris dengan nomor */
  margin-top: 0;
  transition: 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #d4af37;
  color: white;
}

.gift-address-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px dashed #d4af37;
  max-width: 500px;
  margin: 0 auto;
}

.icon-address {
  font-size: 3rem;
  color: #d4af37;
  margin-bottom: 20px;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reply-btn:hover {
  text-decoration: underline;
}

.like-btn {
  background: none;
  border: none;
  color: #bfa100;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.like-btn i {
  /* Transition for icon color */
  transition: color 0.3s ease;
}

.like-btn i.bi-heart-fill {
  color: #e74c3c; /* Memberikan warna merah saat icon sudah di-like (aktif) */
}

.like-btn .like-count {
  /* Transition for like count number color */
  transition: color 0.3s ease;
}

.like-btn .like-count.liked {
  color: #e74c3c; /* Memberikan warna merah pada angka saat di-like */
}

.delete-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  display: none;
  margin-left: auto;
  transition: transform 0.2s ease;
  line-height: 1;
  flex-shrink: 0; /* Pastikan tombol hapus tidak ikut gepeng */
}

.delete-btn:hover {
  transform: scale(1.1);
}

/* Tampilkan tombol hapus hanya jika dalam mode Mempelai */
.mempelai-mode .delete-btn {
  display: inline-block;
}

.gb-reply {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
  padding-left: 35px;
  position: relative;
}

.gb-reply::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 5px;
  width: 1.5px;
  background: rgba(212, 175, 55, 0.4);
  border-radius: 2px;
}

/* Gaya untuk mention nama yang dibalas */
.reply-to-mention {
  color: #bfa100;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 6px;
  text-decoration: none;
}

/* Menyesuaikan ukuran avatar di dalam balasan agar tidak terlalu dominan */
.gb-reply .gb-avatar {
  font-size: 1.8rem;
}

.gb-reply .gb-header-row {
  margin-bottom: 8px;
}

.view-reply-btn {
  background: none;
  border: none;
  color: #888;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.view-reply-btn:hover {
  color: #bfa100;
}

.reply-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
  background: #bfa100;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Reply Mode Indicator in Form */
.reply-mode-bar {
  display: none; /* Sembunyikan secara default */
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 10px;
  border-left: 4px solid #d4af37;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
}

.reply-mode-bar span {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0; /* Penting agar ellipsis bekerja pada baris indikator balas */
  margin-right: 10px;
}

.reply-mode-bar strong {
  color: #bfa100;
}

.verified-icon {
  color: #1d9bf0; /* Warna biru verified */
  font-size: 0.85rem;
  margin-left: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
  background-color: #ffffff;
  color: #2c3e50;
}

/* Menghilangkan gaya bawaan iOS dan menambahkan panah kustom */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23bfa100' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  cursor: pointer;
  padding-right: 40px; /* Memberi ruang agar teks tidak menabrak ikon panah */
}

/* Memastikan background option tetap putih di perangkat mobile */
.form-group select option {
  background-color: #ffffff;
  color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.guestbook-item small {
  font-size: 0.75rem;
  color: #999;
  display: block;
}

/* Main Footer Styles */
#main-footer {
  padding: 60px 50px 60px;
  background-color: #fdfdfd; /* Light background, consistent with event section */
  background-image: radial-gradient(
    #d4af37 0.5px,
    transparent 0.5px
  ); /* Subtle gold dots */
  background-size: 30px 30px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.2); /* Subtle top border */
}

#main-footer .container {
  max-width: 100%; /* Override default container max-width */
}

.footer-top {
  margin-bottom: 30px;
}

.footer-thankyou {
  font-size: 1.2rem;
  color: #bfa100;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footer-top-icon {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  font-size: 0.9rem;
  color: #777;
  max-width: 500px;
  margin: 10px auto 25px;
  line-height: 1.7;
  font-style: italic;
}

.footer-names {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.footer-made-by {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
}

.footer-made-by i {
  color: #e74c3c;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-social a {
  font-size: 1.8rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.footer-social a.social-instagram {
  color: #e1306c;
}
.footer-social a.social-facebook {
  color: #1877f2;
}
.footer-social a.social-whatsapp {
  color: #25d366;
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.1);
}

.footer-social a.social-instagram:hover {
  color: #fd5949;
}
.footer-social a.social-facebook:hover {
  color: #145dbf;
}
.footer-social a.social-whatsapp:hover {
  color: #128c7e;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.5px;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  padding: 15px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #2c3e50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 5px solid #d4af37;
  animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast.success {
  border-left-color: #28a745;
}
.toast.error {
  border-left-color: #dc3545;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(20px);
    opacity: 0;
  }
}

/* Custom Confirmation Modal Styles */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 15000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal.show {
  display: flex;
}

.modal-content-confirm {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Styles for content inside the confirmation modal */
.modal-header-confirm {
  margin-bottom: 15px;
}

.modal-header-confirm i {
  font-size: 3.5rem;
  color: #dc3545;
}

.modal-content-confirm h3 {
  margin-bottom: 10px;
  color: #bfa100;
  font-size: 1.4rem;
}

.modal-content-confirm p {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-content-confirm .modal-actions-confirm {
  display: flex;
  gap: 15px; /* Jarak antar tombol */
  justify-content: center;
  margin-top: 25px; /* Jarak dari teks di atasnya */
}

.modal-content-confirm .modal-actions-confirm button {
  flex: 1; /* Membuat tombol memiliki lebar yang sama */
  padding: 10px 15px;
  border-radius: 8px !important; /* Mengabaikan radius 30px dari class .btn-event */
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid; /* Border dasar untuk konsistensi */
  height: auto;
  display: inline-block;
}

.modal-content-confirm .modal-actions-confirm #btn-cancel-confirm {
  background: #f0f0f0 !important;
  color: #555 !important;
  border-color: #ddd !important;
}

.modal-content-confirm .modal-actions-confirm #btn-cancel-confirm:hover {
  background: #e0e0e0 !important;
  border-color: #ccc !important;
}

.modal-content-confirm .modal-actions-confirm #btn-delete-confirm {
  background: #dc3545 !important; /* Warna merah untuk tombol hapus */
  color: white !important;
  border-color: #dc3545 !important;
}
.modal-content-confirm .modal-actions-confirm #btn-delete-confirm:hover {
  background: #c82333 !important;
  border-color: #bd2130 !important;
}

/* Floating Hearts Animation */
.floating-heart {
  position: fixed;
  color: #d4af37; /* Warna emas tema undangan */
  pointer-events: none;
  z-index: 15000;
  animation: floatUpAndFade var(--duration) ease-out forwards;
  font-size: var(--size);
}

@keyframes floatUpAndFade {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: var(--op);
  }
  100% {
    transform: translate(calc(-50% + var(--tx)), -30px) scale(0.5)
      rotate(var(--rot));
    opacity: 0;
  }
}

@keyframes shiverEffect {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-4px);
  }
}

.shiver-effect {
  display: inline-block;
  animation: shiverEffect 0.4s ease-in-out;
  position: relative;
  z-index: 1;
}

/* Mobile */
@media (max-width: 767px) {
  .mempelai-section,
  .event-section,
  .attendance-section,
  .gallery-section,
  .gift-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Lightbox Responsive Adjustments */
  .lightbox-img {
    max-height: 80vh;
    width: 100%;
  }
  .lightbox-toolbar {
    top: 10px;
    right: 0px;
    gap: 3px;
  }
  .lightbox-nav {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .lightbox-prev {
    left: 0px;
  }
  .lightbox-next {
    right: 0px;
  }
  .lightbox-counter {
    top: 15px;
    left: 15px;
    font-size: 0.9rem;
  }

  .attendance-section .container {
    padding: 0;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.35rem; /* Ukuran lebih ramping khusus mobile */
    margin-bottom: 15px;
  }

  .cover-content {
    width: 100%;
    padding: 0 20px; /* Memberikan ruang agar nama tidak menyentuh pinggir layar */
  }

  .cover-content h1 {
    font-size: 2rem; /* Ukuran nama di cover lebih kecil */
  }

  .event-date {
    font-size: 0.9rem;
  }

  .guest-name {
    font-size: 1.3rem;
  }

  .opening-greeting h2 {
    font-size: 1.7rem;
  }

  .opening-greeting p {
    font-size: 0.85rem;
    padding: 0 5px;
  }

  .mempelai-card .name {
    font-size: 1.5rem; /* Ukuran nama mempelai disesuaikan */
  }

  .couple-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .divider {
    margin: -25px 0 10px 0;
  }

  .mantra-box {
    padding: 30px 15px;
    margin: 5px 0px;
  }

  .mantra-icon {
    font-size: 2rem;
  }

  .mantra-sanskrit {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .mantra-translation {
    font-size: 0.85rem;
  }

  .mantra-source {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .mantra-box::before,
  .mantra-box::after {
    width: 45px;
    height: 45px;
  }

  .event-card {
    width: 100%;
    min-width: unset;
  }

  .event-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Mengurangi jarak antar kartu agar tidak terlalu jauh */
  }

  .event-arch {
    padding: 40px 20px 30px 20px; /* Memperkecil padding dalam kartu */
    border-radius: 140px 140px 20px 20px; /* Menyesuaikan lengkungan arch */
  }

  .event-arch h3 {
    font-size: 1.5rem; /* Ukuran judul acara lebih kecil di mobile */
  }

  .info-item p {
    font-size: 0.85rem; /* Ukuran teks info lebih kecil agar pas */
  }

  .btn-event {
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .countdown-container {
    gap: 10px; /* Mengurangi jarak antar box countdown agar tetap muat di satu baris */
    margin-top: 30px;
  }

  .countdown-box {
    padding: 15px 5px;
    min-height: 80px; /* Ditingkatkan agar tidak gepeng */
    min-width: 65px; /* Mengecilkan batas minimal agar 4 box tetap muat di satu baris mobile */
  }

  .countdown-box span {
    font-size: 1.4rem;
  }

  .closing-text.mt-5 {
    margin-top: 1.7rem !important;
  }

  .family-section.mt-5 {
    margin-top: 1.5rem !important;
  }

  .family-section p {
    font-size: 1.1rem;
  }

  .family-names {
    justify-content: space-between;
    flex-wrap: nowrap; /* Memaksa tetap satu baris horizontal */
    gap: 10px;
    margin-top: 25px;
  }

  .family-side {
    min-width: 0;
    flex: 0.4;
  }

  .family-side strong {
    font-size: 0.75rem;
    word-wrap: break-word; /* Memastikan kata yang terlalu panjang tidak merusak layout */
  }

  .family-amp {
    font-size: 0.7rem;
    margin: 2px 0;
  }

  .gallery-section {
    padding: 10px 20px; /* Padding lebih kecil untuk mobile agar foto lebih besar */
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 70px;
    gap: 10px;
  }

  .gallery-item.landscape.momen13 {
    display: none;
  }

  .attendance-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .attendance-form-container,
  .attendance-list-container {
    width: 100%;
    flex: none;
    height: auto; /* Reset tinggi pada tampilan mobile */
  }

  .guestbook-list {
    max-height: 400px; /* Batasi tinggi list di mobile agar tetap bisa di-scroll */
  }

  .attendance-card {
    padding: 25px 15px;
  }

  .attendance-card label {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.85rem;
  }

  .attendance-card label {
    font-size: 0.75rem; /* Mengecilkan label form */
  }

  /* Penyesuaian Wedding Gift Mobile */
  .gift-section {
    padding: 20px;
  }

  .gift-layout-wrapper {
    gap: 25px;
  }

  .gift-column {
    padding: 30px 20px;
    flex: 1 1 100%;
    min-width: unset;
  }

  .gift-header i {
    font-size: 1.4rem;
  }

  .gift-header h3 {
    font-size: 1rem;
  }

  .bank-number {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .btn-copy {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  #main-footer {
    padding: 40px 20px 40px;
  }

  .footer-thankyou {
    font-size: 1rem;
  }

  .footer-description {
    font-size: 0.8rem;
    padding: 0 15px;
  }

  .footer-names {
    font-size: 2rem;
  }

  .footer-social {
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-social a {
    font-size: 1.5rem;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }
}

@media (max-width: 359px) {
  .cover-content {
    margin-bottom: 38vh; /* Tambahan margin untuk layar sangat pendek agar teks tetap berada di atas ombak */
  }

  .cover-content h1 {
    font-size: 1.6rem;
  }

  .event-date {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .recipient-text {
    font-size: 0.75rem;
  }

  .guest-name {
    font-size: 1.1rem;
  }

  .open-btn {
    padding: 10px 25px;
    font-size: 0.8rem;
  }

  .opening-greeting h2 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .family-section p {
    font-size: 1rem;
  }

  .footer-names {
    font-size: 1.8rem;
  }

  .countdown-container {
    gap: 8px;
    flex-wrap: wrap;
  }

  .countdown-box {
    flex: 1 1 calc(50% - 5px);
    max-width: none;
    min-height: 110px;
    min-width: 45%;
  }
}

/* Media query untuk layar yang lebih kecil, di mana tombol harus berada di bawah nama */
@media (max-width: 380px) {
  .bank-details-flex-wrapper {
    flex-direction: column; /* Tumpuk semua item secara vertikal */
    align-items: flex-start; /* Sejajarkan ke kiri */
    justify-content: flex-start;
  }

  .bank-number-display {
    order: 1; /* Nomor tetap pertama */
    margin-bottom: 5px; /* Jarak di bawah nomor */
  }

  .bank-details-flex-wrapper .bank-name {
    order: 2; /* Nama menjadi kedua */
    flex-basis: auto; /* Reset flex-basis */
    margin-top: 0;
    margin-bottom: 8px; /* Jarak di bawah nama */
  }

  .btn-copy {
    order: 3; /* Tombol menjadi ketiga, secara efektif di bawah nama */
    margin-left: 0; /* Reset margin-left: auto */
    align-self: flex-start; /* Sejajarkan tombol ke kiri */
  }
}

/* Responsive adjustment for modal buttons */
@media (max-width: 480px) {
  /* Tombol akan menumpuk di layar yang lebih kecil dari 480px */
  .modal-content-confirm .modal-actions-confirm {
    flex-direction: column; /* Tumpuk tombol secara vertikal */
    gap: 10px; /* Jarak antar tombol yang ditumpuk */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mempelai-section,
  .event-section,
  .attendance-section,
  .gallery-section,
  .gift-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .section-title {
    font-size: 2.2rem;
  }

  /* Penyesuaian Wedding Gift Tablet */
  .gift-layout-wrapper {
    gap: 30px;
  }

  .gift-column {
    padding: 35px 25px;
    min-width: 320px;
  }

  .gift-column-left {
    flex: 1;
    min-width: 360px;
  }

  .opening-greeting p {
    font-size: 0.9rem;
  }

  .cover-content h1 {
    font-size: 2.5rem;
  }

  .guest-name {
    font-size: 1.4rem;
  }

  .opening-greeting h2 {
    font-size: 2rem;
  }

  .couple-container {
    gap: 20px;
  }

  /* Lightbox Tablet Adjustment */
  .lightbox-prev {
    left: 30px;
  }
  .lightbox-next {
    right: 30px;
  }
  .lightbox-img {
    max-height: 75vh;
  }
}

/* Gap lebar hanya untuk layar desktop besar */
@media (min-width: 1200px) {
  .attendance-wrapper {
    gap: 50px;
  }
}
