:root {
  --primary: #b76e79;
  --primary-dark: #8f4e58;
  --bg: #fff8f6;
  --text: #3a2e2e;
  --muted: #7a6a68;
  --card-bg: #ffffff;
  --radius: 16px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,248,246,0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid #f0dede;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { flex: 1; min-width: 280px; }

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.hero-text h1 span { color: var(--primary); }

.hero-text p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(183,110,121,0.25);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* About */
.about { padding: 60px 0; }

.about h2, .gallery h2, .contact h2 {
  font-size: 1.9rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  text-align: center;
}

.about > .container > p {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  text-align: center;
}

.about-card h3 { color: var(--primary); margin-bottom: 10px; }

/* Gallery */
.gallery { padding: 60px 0; background: #fdf0ee; }

.gallery-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.gallery-grid figure.video-item {
  overflow: hidden;
}

.video-item video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #000;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-grid img:hover { transform: scale(1.05); }

/* Contact */
.contact { padding: 60px 0; }

.contact > .container > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid #e6cfcf;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 24px 0;
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 0.9rem; }
  .hero-text h1 { font-size: 1.8rem; }
}
/* =========================
   IMAGE LIGHTBOX
========================= */

.gallery-image {
  cursor: zoom-in;
}

/* Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);

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

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease;
}

/* Saat aktif */
.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Foto preview */
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;
  border-radius: 8px;

  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.lightbox.active img {
  transform: scale(1);
}

/* Tombol close */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;

  border: none;
  background: transparent;

  color: white;
  font-size: 42px;
  line-height: 1;

  cursor: pointer;
  z-index: 2;
}

/* Tombol navigasi */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  background: rgba(255,255,255,0.15);

  color: white;
  font-size: 32px;

  width: 50px;
  height: 60px;

  cursor: pointer;
  border-radius: 8px;

  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Video */
.video-item video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Tampilan video ketika fullscreen */
.video-item video:fullscreen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Chrome / Safari */
.video-item video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Mobile */
@media (max-width: 640px) {
  .lightbox img {
    max-width: 100vw;
    max-height: 85vh;
    border-radius: 0;
  }

  .lightbox-close {
    top: 12px;
    right: 18px;
    font-size: 36px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 52px;
    font-size: 25px;
  }

  .lightbox-prev {
    left: 8px;
  }

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