.sacramento-regular {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  font-style: normal;
}

:root {
  --pink: #f14e95;
  --bg: #0a0a0a;
  --shadow: 0 2px 2px rgb(0, 0, 0 / 0.5);
}

body {
  font-size: 1.2rem;
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  /* min-height: 2000px; */
  background-color: #f7f3f1;
}

.hero {
  min-height: 100vh;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/Dian-Rifkhi-9.jpeg") center/cover no-repeat;
  opacity: 0.25;
}

.hero main {
  position: relative;
  z-index: 1;
}

.ornament {
  position: absolute;
  width: clamp(140px, 22vw, 280px);
  height: clamp(140px, 22vw, 280px);
  background: center/contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.ornament-top-left {
  top: -40px;
  left: -30px;
  background-image: url("img/kembang2.png");
}

.ornament-top-center {
  top: -60px;
  left: 50%;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  transform: translateX(-50%);
  background-image: url("img/kembang6.jpg");
  opacity: 0.25;
}

.ornament-bottom-right {
  bottom: -50px;
  right: -30px;
  transform: rotate(18deg);
  background-image: url("img/kembang4.png");
}

.ornament-top-right {
  top: -40px;
  right: -20px;
  transform: rotate(-12deg);
  background-image: url("img/kembang3.png");
}

.ornament-bottom-left {
  bottom: -50px;
  left: -20px;
  transform: rotate(10deg);
  background-image: url("img/kembang8.png");
}

.ornament-mid-left {
  top: 35%;
  left: -40px;
  width: clamp(120px, 20vw, 240px);
  height: clamp(120px, 20vw, 240px);
  transform: rotate(-8deg);
  background-image: url("img/kembang1.jpg");
  opacity: 0.28;
}

.ornament-mid-right {
  top: 45%;
  right: -35px;
  width: clamp(120px, 20vw, 240px);
  height: clamp(120px, 20vw, 240px);
  transform: rotate(14deg);
  background-image: url("img/kembang7.jpg");
  opacity: 0.28;
}

.hero h1 {
  font-family: "Sacramento";
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin-top: 0.4rem;
}

.hero h4 {
  font-size: 2rew;
}

.hero p {
  font-size: 1.4rem;
}

.recipient-name {
  margin: 0.25rem 0 9rem;
  font-weight: 600;
  display: none;
}

.simply-countdown {
  margin: 1.5rem auto 0.5rem;
}

.hero a {
  color: var(--pink);
  background-color: white;
}

.hero a:hover {
  background-color: var(--pink);
  color: white;
}

.undangan {
  background: linear-gradient(180deg, #f7f3f1 0%, #fff 60%, #f7f3f1 100%);
  color: #2f2a28;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  max-height: 5000px;
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    max-height 800ms ease;
}

.undangan.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.ornament-undangan-left {
  top: 20%;
  left: -30px;
  width: clamp(130px, 20vw, 260px);
  height: clamp(130px, 20vw, 260px);
  transform: rotate(-6deg);
  background-image: url("img/kembang5.jfif");
  opacity: 0.22;
}

.ornament-undangan-right {
  top: 55%;
  right: -30px;
  width: clamp(140px, 22vw, 270px);
  height: clamp(140px, 22vw, 270px);
  transform: rotate(8deg);
  background-image: url("img/kembang6.jpg");
  opacity: 0.22;
}

.undangan-subtitle {
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #a46b80;
  margin-bottom: 0.5rem;
}

.undangan-title {
  font-family: "Sacramento";
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

.undangan-lead {
  max-width: 720px;
  margin: 0 auto;
  color: #5c4c4f;
}

.undangan-parents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}

.parents-card {
  background: #fff;
  border: 1px solid #f0e4e7;
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.35);
}

.parents-label {
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #b0768b;
  margin-bottom: 0.5rem;
}

.parents-name {
  font-size: 2rem;
  color: #a03f62;
  margin-bottom: 0.5rem;
}

.parents-of {
  color: #6c5a5f;
  margin-bottom: 0.5rem;
}

.parents-detail {
  margin-bottom: 0;
  color: #3f3638;
  font-weight: 600;
}

.undangan-card {
  background: #ffffff;
  border: 1px solid #f0e4e7;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.35);
}

.undangan-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #a03f62;
}

.undangan-quote,
.undangan-gift {
  background: #fff6f8;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid #f4e1e6;
  box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.25);
}

.undangan-quote {
  font-style: italic;
  color: #5b4b4b;
}

.quote-source {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: #a03f62;
  font-weight: 600;
}

.undangan-gallery-title {
  font-size: 1.8rem;
  color: #a03f62;
}

.undangan-gallery-subtitle {
  color: #6c5a5f;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 1rem;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 32px -28px rgba(0, 0, 0, 0.45);
  background: #f0e6ea;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item.tall {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-item.wide {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-item:not(.tall):not(.wide) {
  grid-column: span 4;
  grid-row: span 2;
}

.footer {
  background: #1a1416;
  color: #f7eef1;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.ornament-footer-left {
  top: -20px;
  left: -20px;
  width: clamp(110px, 18vw, 220px);
  height: clamp(110px, 18vw, 220px);
  background-image: url("img/kembang3.png");
  opacity: 0.18;
}

.ornament-footer-right {
  bottom: -40px;
  right: -20px;
  width: clamp(130px, 20vw, 240px);
  height: clamp(130px, 20vw, 240px);
  background-image: url("img/kembang4.png");
  opacity: 0.18;
}

.footer-title {
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-message {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: #e7cfd7;
}

.footer-sign {
  font-family: "Sacramento";
  font-size: 2.6rem;
  color: #f2b3c8;
  margin-bottom: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 9, 0.92);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 999;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}

.lightbox-nav,
.lightbox-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #f7eef1;
  font-size: 0.95rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }

  .lightbox-image {
    max-height: 70vh;
  }
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .gallery-item.tall {
    grid-column: span 4;
    grid-row: span 3;
  }

  .gallery-item.wide {
    grid-column: span 4;
    grid-row: span 2;
  }

  .gallery-item:not(.tall):not(.wide) {
    grid-column: span 4;
  }
}

@media (max-width: 575px) {
  .undangan-parents {
    grid-template-columns: 1fr;
  }

  .undangan-title {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 90px;
  }

  .gallery-item.tall,
  .gallery-item.wide,
  .gallery-item:not(.tall):not(.wide) {
    grid-column: span 4;
    grid-row: span 2;
  }
}
