*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Georgia', serif;
  background: #f9f9f9;
  color: #333;
}

section,
.section-frame,
.gallery-wrapper,
.hero,
.event-section,
.bride-groom,
.gallery-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


.hero {
  height: 100vh;
  width:100vw;
  background:
    linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
    url("assets/bg-hero-baru.webp") center/cover no-repeat;
  position: relative;
  object-position:center top;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  color: #fff;
  transition: opacity 1s ease;
  overflow: visible;
  
  pointer-events: auto;


}

.hero.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease;
}





/* overlay gelap tipis */
.hero .overlay {
  position: absolute;
  inset: 0;
  /*background: url('assets/bg.jpeg') center/cover no-repeat;*/
  opacity: 0;
  z-index: 5;
}

.hero .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* ambil background hero */
  transform: scale(1.1); /* cegah pinggir blur terpotong */
  z-index: 0;
}


/* konten tetap tajam */
.hero-inner {

  position: relative;
  z-index: 2;
  color: #fff;
}

.pretitle {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 3px;
  font-size: 30px;
  color: #d4af37;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin: 15px 0;
}

.hero h1 span {
  color: #d4af37;
}


.card {
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.45)),
    url("assets/bg-bunga.png") center/cover no-repeat;
  backdrop-filter: blur(5px);
  max-width: 560px;
  margin: 50px auto;
  padding: 35px;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,.15);
}

.card h2 {
  font-family: 'Playfair Display';
  color: #1a1a2e;
  text-align: center;
}

.card::before {
  content: "";
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #d4af37, #f5e6a8);
  display: block;
  margin: 0 auto 15px;
}



input, select, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button, .btn {
  background: #2c2c54;
  color: white;
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-size: 25px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 40px;
  font-size: 14px;
}

.verse {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.date {
  font-family: 'Poppins';
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #d4af37;
}



.guest-box {
  margin: 15px auto;
  padding: 10px 10px;
  border: 1px solid rgba(212,175,55,.5);
  display: inline-block;
  border-radius: 30px;
  font-family: 'Poppins';
  font-size: 15px;
}

.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 14px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg,#caa14d,#f5e1a4);
  color: #222;
  font-weight: 500;
  transition: transform .3s ease;
  font-size: 15px;
}

.btn-primary::after {
  content:'';
  position:absolute;
  top:0;left:-100%;
  width:100%;height:100%;
  background:rgba(255,255,255,.4);
  transition:.5s;
}

.btn-primary:hover::after {
  left:100%;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  transition: .4s;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.gallery img:hover {
  transform: scale(1.06);
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#countdown {
  font-family: 'Playfair Display';
  font-size: 20px;
  text-align: center;
  color: #1a1a2e;
  margin-top: 10px;
}



#opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* BACKGROUND LAYER */
.opening-bg {
  position: absolute;
  inset: -6%;
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.20)),
    url("assets/bg-opening.webp") center / cover no-repeat;
  animation: openingBreath 24s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

@keyframes openingBreath {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-24px);
  }
  100% {
    transform: scale(1.02) translateY(16px);
  }
}


@media (max-width: 768px) {
  .opening-bg {
    animation: none;
    transform: scale(1.05);
  }
}


#opening::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,10,30,.7);
}

.opening-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 20px;
  animation: fadeUp 1.5s ease;
}

.opening-pretitle {
  font-family: 'Poppins';
  letter-spacing: 3px;
  font-size: 17px;
  color: #d4af37;
  text-transform: uppercase;
}

.opening-content h1 {
  font-family: 'Playfair Display';
  font-size: 30px;
  margin: 15px 0;
}

.opening-content h1 span {
  color: #d4af37;
}

.opening-verse {
  font-style: italic;
  margin-bottom: 25px;
}


.hidden {
  opacity: 0;
  pointer-events: none;
}


/* Kunci scroll */
body.lock {
  overflow: visible;
}

/* Konten utama */
#content {
  transition: opacity 0.8s ease, filter 0.8s ease;
}

/* Saat opening aktif */
body.lock #content {
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
}

/* Setelah dibuka */
body.opened #content {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

/*body.opened #opening {
  transform: scale(1.1);
  filter: blur(8px);
}*/


/* SECTION */
.event-section {
  padding: 100px 20px;
  text-align: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  text-align: center;
  color: #e6c86e;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

/* WRAP */
.event-wrap {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 20px;
}

/* CARD */
.event-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 22px;
  padding: 45px 35px;
  color: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  transition: all 0.4s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(230,200,110,0.35);
}

/* ICON */
.event-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5e28d, #caa742);
  color: #222;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* TEXT */
.event-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 12px;
  color: #e6c86e;
}

.event-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin: 6px 0;
  opacity: 0.9;
}


.event-luxury {
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.45)),
    url("assets/bg-bunga.png") center/cover no-repeat;
}

.time {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(230,200,110,0.15);
  color: #e6c86e;
  font-size: 14px;
}

/* DIVIDER */
.divider {
  width: 2px;
  height: 260px;
  background: linear-gradient(
    to bottom,
    transparent,
    #e6c86e,
    transparent
  );
  margin: auto;
}

/* BUTTON MAP */
.btn-map {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f5e28d, #caa742);
  color: #222;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-map:hover {
  transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
  .event-wrap {
    grid-template-columns: 1fr;
  }

  .divider {
    display: none;
  }

  .event-card {
    margin-bottom: 30px;
  }
}





/* ===== EVENT LUXURY ===== */
.event-luxury {
  padding: 120px 20px;
  position: relative;
  overflow: visible;
}

.event-luxury::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(230,200,110,.15), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.08), transparent 45%);
  pointer-events: none;
}

/* TITLE */
.lux-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #e6c86e;
  text-align: center;
  margin-bottom: 90px;
}

/* TIMELINE */
.lux-timeline {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  align-items: center;
}

/* CENTER LINE */
.lux-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lux-line {
  width: 2px;
  height: 300px;
  background: linear-gradient(
    to bottom,
    transparent,
    #e6c86e,
    transparent
  );
}

/* MINI COUNTDOWN */



.event-countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 30px 0 150px;
}

.count-item {
  background: rgba(255, 255, 255, 0.15);   /* transparan */
  backdrop-filter: blur(8px);              /* efek kaca */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  
  border-radius: 18px;
  text-align: center;
  flex: 1;                 /* semua bagi lebar sama */
  max-width: 120px;        /* batas maksimal */
  min-width: 120px;        /* paksa lebar sama */
  padding: 18px 0;         /* padding kiri kanan disamakan */

  box-shadow:
    0 15px 40px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.count-item span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.count-item small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: .85;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

@media (max-width: 768px) {
  .event-countdown {
    gap: 16px;
  }

  .count-item {
    padding: 14px 18px;
    min-width: 70px;
  }

  .count-item span {
    font-size: 22px;
  }
}

/* CARD */
.lux-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  margin-top: 60px;
}

.lux-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 45px 40px;
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
  transition: .4s ease;

  width: 100%;
  max-width: 420px;   /* ⬅ atur sesuai selera */
  box-sizing: border-box;
}

.lux-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 50px 100px rgba(230,200,110,.4);
}

/* KUNCI POSISI */
.lux-card.left {
  margin-right: auto;
  text-align: center;
}

.lux-card.right {
  margin-left: auto;
  text-align: center;
}

/* ICON */
.lux-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg,#f5e28d,#caa742);
  color: #222;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon rata tengah */
.lux-card .lux-icon {
  margin: 0 auto 15px;
}

/* TEXT */
.lux-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #e6c86e;
  margin-bottom: 10px;
}



.lux-time {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  border-radius: 30px;
  background: rgba(230,200,110,.2);
  color: #e6c86e;
  font-size: 14px;
}


/* PARAGRAPH */
.lux-card p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

/* MAP */
.lux-map {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg,#f5e28d,#caa742);
  color: #222;
  text-decoration: none;
  transition: .3s;
}

.lux-map:hover {
  transform: scale(1.06);
}

/* MOBILE */
@media (max-width: 768px) {

  /* TIMELINE JADI 1 KOLOM */
  .lux-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* SEMUA CARD CENTER */
  .lux-card {
    max-width: 100%;
    width: 100%;
    padding: 32px 24px;
    margin: 0 auto;
  }

  /* LEFT & RIGHT DISAMAKAN */
  .lux-card.left,
  .lux-card.right {
    grid-column: 1;
    margin: 0 auto;
  }
}



/* =========================
   BACKGROUND EVENT CARD
========================= */

.blessing-card {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.88),
    rgba(255,255,255,.92)),
    url("assets/pemberkatan.jpg") center/cover no-repeat;
}

.reception-card {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.88),
    rgba(255,255,255,.92)),
    url("assets/resepsi.jpg") center/cover no-repeat;
}






.bride-groom {
  padding: 100px 20px;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 120px;

  text-align: center;

  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.45)),
    url("assets/bg-bunga.png") center/cover no-repeat;
}

@media (max-width: 768px){

  .bride-groom{
    flex-direction: column;
    gap: 80px;
  }

}

.photo-wrapper {
  position: relative;
  width: 350px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  background: transparent; /* penting */
  padding: 0; /* hapus padding lama */
}

.photo-wrapper img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.photo-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
  z-index: 1;
}

.photo-name {
  position: absolute;
  bottom: 20px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

.photo-name h3 {
  font-family: 'Allura', cursive;
  font-size: 36px;
  margin: 0;
  color: #000;
}

.photo-name .line {
  width: 120px;
  height: 1px;
  background: #000;
}



.ig-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 18px;
  border: 1px solid #000;
  font-size: 12px;
  text-decoration: none;
  color: #000;
  letter-spacing: 2px;
}

/* ===== GROOM ===== */

.groom-section {
  margin-bottom: 120px;
  max-width: 420px;
  width: 100%;
}

.groom-photo img {
  width: 350px;
  border-radius: 20px;
  margin-top: 30px;
}

.groom-text {
  margin-bottom: 40px;
  text-align: center; /* biasanya lebih elegan kalau center */
}

.groom-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #f5e1a4;
  letter-spacing: 1px;
}

.groom-text span {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: 4px;
}

.groom-text p {
  font-size: 16px;
  color: #666;
}

/* untuk layar HP */
@media (max-width: 768px){
    .groom-text{
        text-align: left;
        padding-left: 0px; /* opsional supaya tidak terlalu mepet */
    }
}

.groom-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.groom-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}

.groom-slide.active {
  opacity: 1;
  z-index: 1;
}


.groom-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-top: 30px;
  letter-spacing: 1px;
}

.groom-info p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* ===== BRIDE ===== */

.bride-section {
  margin-bottom: 120px;
  max-width: 420px;
  width: 100%;
}

.bride-photo img {
  width: 350px;
  border-radius: 20px;
  margin-top: 30px;
}

.bride-text {
  margin-bottom: 40px;
  text-align: center; /* biasanya lebih elegan kalau center */
}

.bride-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #f5e1a4;
  letter-spacing: 1px;
}

.bride-text span {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: 4px;
}

.bride-text p {
  font-size: 16px;
  color: #666;
}

/* untuk layar HP */
@media (max-width: 768px){
    .bride-text{
        text-align: left;
        padding-left: 0px; /* opsional supaya tidak terlalu mepet */
    }
}

.bride-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.bride-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}

.bride-slide.active {
  opacity: 1;
  z-index: 1;
}


.bride-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-top: 30px;
  letter-spacing: 1px;
}

.bride-info p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 60px;
}

.couple-wrapper {
  max-width: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.couple-card {
  max-width: 260px;
}

.couple-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-top: 20px;
  background: linear-gradient(145deg, #f5e28d, #caa742);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(212,175,55,.25);
}

.couple-card .parent {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  line-height: 1.6;
}

.ampersand {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  background: linear-gradient(145deg, #f5e28d, #caa742);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .couple-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .ampersand {
    font-size: 40px;
  }
}




.gallery-section {
  padding: 90px 20px;
  background:
    linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.85)),
    url("assets/bg-bunga.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
}


.gallery-wrapper {
  position: relative;
  overflow: visible;
  max-width: 1200px;
  margin: auto;
}


.gallery-scroll {
  display: flex;
  width: max-content;
  gap: 18px;
  overflow: visible;
}


.gallery-scroll::-webkit-scrollbar {
  display: none;
}


.gallery-scroll img {
  height: 300px;        /* tinggi seragam */
  width: auto;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.gallery-scroll img:hover {
  transform: scale(1.05);
}



.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: #e8eee6;
  border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: #7b8f6b;
  border-radius: 10px;
}

.gallery-scroll.auto {
  width: max-content;
  animation: scrollGallery 70s linear infinite;
}

.gallery-scroll.auto:hover {
  animation-play-state: paused;
}



@keyframes scrollGallery {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


.swipe-hint {
  font-size: 13px;
  opacity: 0.6;
  text-align: center;
  margin-top: 8px;
}

.gallery-item {
  position: relative; /* ⬅ PENTING */
  z-index: 1;
  flex: 0 0 auto;
  width: 260px;
  height: 360px;
  border-radius: 22px;
  overflow: visible;
box-shadow: 0 20px 40px rgba(0,0,0,.25);
  background: #000;
}

.gallery-item:hover {
  z-index: 999;
}

.gallery-item:hover img {
  transform: scale(1.5);
  z-index: 10;
}



.gallery-item::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}





.our-gallery{
  padding:80px 20px;
  background:#f4f1ec;
  text-align:center;
}

.gallery-title{
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  text-align: center;
  color: #e6c86e;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* GRID */
.gallery-grid{
  max-width:600px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* FOTO BESAR */
.gallery-big{
  grid-column:1 / -1;
}

.gallery-big img{
  width:100%;
  height:400px;
  object-fit:cover;
  border-radius:8px;
}

/* FOTO KECIL */
.gallery-small img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}


/* hover effect */
.gallery-grid img{
  transition:.4s;
  width:100%;
  height:400px;
  object-fit:cover;
}

.gallery-grid img:hover{
  transform:scale(1.05);
}


@media (max-width:768px){

  .gallery-grid{
    grid-template-columns:1fr 1fr;
  }

  .gallery-big{
    grid-column:1 / -1;
  }

  .gallery-big img{
  width:100%;
  height:100%;
  object-fit:contain;
  }

  .gallery-small img{
  width:100%;
  height:100%;
  object-fit:contain;
}

}


/* =====================
   MOBILE OPTIMIZATION
   ===================== */
@media (max-width: 768px) {
  .gallery-item {
    width: 190px;
    height: 270px;
    border-radius: 18px;
    border-width: 2px;
  }
}

.gallery-item.landscape {
  width: 320px;
  height: 220px;
}

.gallery-item.portrait {
  width: 220px;
  height: 320px;
}



.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.nav-btn.left {
  left: 15px;
}

.nav-btn.right {
  right: 15px;
}

@media (max-width: 768px) {
  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
    opacity: 0.8;
  }
}



.section-frame {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 56px;
}

@media (max-width: 768px) {
  .section-frame {
    padding: 28px 16px; /* ⬅ KUNCI */
  }
}


.section-frame::before {
  width: 60px;
  height: 60px;
}

@media (max-width: 768px) {
  .section-frame::before {
    width: 28px;
    height: 28px;
  }
}



.hero-frame {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;

  /* glass transparan */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);

  border-radius: 32px;

  /* border emas */
  border: 1.5px solid rgba(218, 182, 90, 0.85);

  box-shadow:
    0 30px 80px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.18);

  overflow: visible;
}



.guest-messages {
  padding: 100px 20px;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.95)),
    url("assets/bg-bunga.png") center/cover no-repeat;
}

.message-list {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.message-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 28px 30px;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.message-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 4px;
  color: #1a1a2e;
}

.attendance {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.attendance.hadir {
  background: rgba(0,150,0,.12);
  color: #1c7c1c;
}

.attendance.tidak hadir {
  background: rgba(180,0,0,.12);
  color: #a33;
}

.message-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 12px 0;
}

.message-card small {
  font-size: 12px;
  opacity: .6;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.pagination button {
  padding: 10px 18px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg,#d4af37,#f5e6a8);
  cursor: pointer;
  font-size: 14px;
  max-width: 160px;
}

.pagination span {
  font-size: 14px;
  opacity: .7;
}



@media (max-width: 768px) {
  .message-list {
    grid-template-columns: 1fr;
  }
}




.popup-overlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.popup-overlay.show {
  display: flex !important;
}

.popup-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 22px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: scaleIn .4s ease;
}

.popup-box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
}

.popup-box p {
  font-size: 15px;
  line-height: 1.5;
  opacity: .85;
}

.popup-box button {
  margin-top: 22px;
  padding: 10px 28px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg,#caa14d,#f5e1a4);
  font-weight: 500;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes scaleIn {
  from { transform: scale(.85); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}




.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid #000;
  font-size: 12px;
  text-decoration: none;
  color: #000;
  letter-spacing: 2px;
  transition: all .3s ease;
}

.ig-btn:hover {
  background: #000;
  color: #fff;
}




.event-clean {
  padding: 80px 20px;
  background:
    linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)),
    url("assets/bg-event.webp") center/cover no-repeat;
  text-align: center;
}

.event-clean h3,
.event-clean p {
  color: #fff;
  text-shadow: 0 4px 15px rgba(0,0,0,.8);
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 20px;
  color: #f5e1a4; /* gold lembut */
}

.event-item {
  max-width: 420px;
  margin: 0 auto -5px;
}

.event-item.left {
  text-align: left;
}

.event-item.right {
  text-align: right;
}

.event-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #f5e1a4; /* gold lembut */
  margin-bottom: 15px;
}

.event-date {
  font-size: 14px;
  color: #5a3a2e;
  margin-bottom: 20px;
}

.event-location {
  font-size: 14px;
  color: #6e6e6e;
  line-height: 1.6;
  margin-bottom: 25px;
}

.event-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.event-actions.left {
  text-align: left;
  justify-content: flex-start;
}

.event-actions.right {
  text-align: right;
  justify-content: flex-end;
}

.btn-outline {
  padding: 8px 16px;
  border: 1px solid #6b3e2e;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #f5e1a4;
}

.btn-solid {
  padding: 8px 16px;
  background: #f5e1a4;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #000; /* tulisan jadi hitam */
}


footer {
  position: relative;
  min-height: 100vh; /* bikin tinggi */
  padding: 10px 20px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;

  color: #fff;

  background:
    linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.3)),
    url("assets/bg-footer.webp") center / cover no-repeat;


  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #f5e1a4; /* gold lembut */
}

footer p{
  margin-bottom: 10px;
}

@media (max-width:768px){

  footer{
    background-position:center 25%;
  }

}







/* PERSON WRAPPER */

.gift-wrapper{
  display:flex;
  justify-content:center;
  gap:120px;   /* jarak antar card */
  flex-wrap:wrap;
}

/* PER ORANG */

.gift-person{
  max-width:560px;
}

.gift-person-title{
  font-family:'Playfair Display';
  font-size:22px;
  margin-bottom:20px;
  color:#d4af37;
}

/* CARD */

.gift-card{
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.45)),
    url("assets/bg-bunga.png") center/cover no-repeat;

  backdrop-filter: blur(5px);

  width:100%;
  max-width:560px;   /* ukuran ideal desktop */

  padding:50px 40px; /* bikin card lebih besar */

  border-radius:24px;

  box-shadow:0 30px 60px rgba(0,0,0,.15);
}

/* QR */

.qris-img{
  width:170px;
  margin-top:10px;
}

/* MOBILE */

@media (max-width:768px){

  .gift-wrapper{
    flex-direction:column;
    gap:50px;
    align-items:center;
  }

}

.copy-btn{
  display:inline-block;
  margin-top:15px;

  padding:10px 22px;
  border-radius:30px;

  border:none;

  background:linear-gradient(135deg,#f5e28d,#caa742);
  color:#222;

  font-size:13px;
  font-family:'Poppins',sans-serif;
  letter-spacing:1px;

  cursor:pointer;

  transition:all .3s ease;
}

.copy-btn:hover{
  transform:scale(1.05);
}