/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root {

  /* Navbar Colors */
  --beige-50: #ffffff;
  --beige-100: #f8f8f8;
  --beige-200: #e5e5e5;
  --beige-400: #d4a24a;
  --beige-600: #c8973a;
  --beige-700: #1f3c88;

  --text-dark: #111111;
  --text-light: #666666;

  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-drop: 0 10px 30px rgba(0,0,0,0.12);

  /* Placement Page Colors */
  --gold: #c8973a;
  --gold-lt: #d4a24a;
  --gold-dim: #a67c2d;

  --ink: #1b2d45;
  --ink-soft: #304b73;

  --cream: #f8f7f3;
  --cream-dark: #e5e0d5;

  --white: #ffffff;

  --text-body: #333333;
  --text-mid: #666666;

  --sans: 'Poppins', sans-serif;
  --serif: 'Poppins', sans-serif;
}
/* ==========================================
   NAVBAR
   ========================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--beige-50);
  border-bottom: 2px solid var(--beige-200);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

/* ==========================================
   BRAND / LOGO
   ========================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  line-height: 1.15;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--beige-700);
  display: block;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================
   DESKTOP NAV LINKS
   ========================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover {
  background: var(--beige-100);
  color: var(--beige-600);
}

/* Downward arrow on dropdown buttons using ::after */
.nav-links > li > button::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--beige-600);
  border-bottom: 2px solid var(--beige-600);
  transform: rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), border-color 0.18s;
  margin-left: 4px;
  margin-top: -3px;
  flex-shrink: 0;
}

.nav-links > li > button:hover::after {
  border-color: var(--beige-700);
}

.nav-links > li.open > button::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* ==========================================
   DESKTOP DROPDOWN MENUS
   ========================================== */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--beige-50);
  border: 1.5px solid var(--beige-200);
  border-radius: 12px;
  box-shadow: var(--shadow-drop);
  min-width: 280px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 200;
}

.nav-links > li.open .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  line-height: 1.4;
}

.dropdown li a::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1.8px solid var(--text-light);
  border-bottom: 1.8px solid var(--text-light);
  transform: rotate(-45deg);
  transition: border-color 0.15s, transform 0.15s;
}

.dropdown li a:hover {
  background: var(--beige-100);
  color: var(--beige-600);
  padding-left: 1.6rem;
}

.dropdown li a:hover::after {
  border-color: var(--beige-600);
  transform: rotate(-45deg) translateX(3px);
}

.dropdown li + li {
  border-top: 1px solid var(--beige-100);
}

/* ==========================================
   ENROLL NOW BUTTON
   ========================================== */
.enroll-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--beige-400), var(--beige-600));
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.18s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(140, 90, 40, 0.25);
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.enroll-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ==========================================
   HAMBURGER BUTTON
   ========================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--beige-700);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--beige-50);
  border-top: 1.5px solid var(--beige-200);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}

.mobile-menu.open {
  max-height: 1000px;
  opacity: 1;
}

/* Mobile nav list */
.mobile-links {
  list-style: none;
  padding: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
}

.mobile-links > li {
  border-bottom: 1px solid var(--beige-100);
}

.mobile-links > li:last-child {
  border-bottom: none;
}

.mobile-links > li > a,
.mobile-links > li > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.15s;
  text-align: left;
}

.mobile-links > li > a:hover,
.mobile-links > li > button:hover {
  background: var(--beige-100);
}

/* Mobile arrow using ::after on the button */
.mobile-links > li > button::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--beige-600);
  border-bottom: 2px solid var(--beige-600);
  transform: rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  margin-top: -3px;
  flex-shrink: 0;
}

.mobile-links > li.open > button::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Mobile sub-dropdown */
.mobile-dropdown {
  list-style: none;
  background: var(--beige-100);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-links > li.open .mobile-dropdown {
  max-height: 600px;
}

.mobile-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.7rem 2.25rem;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--beige-200);
  transition: background 0.13s, color 0.13s;
}

.mobile-dropdown li a::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1.8px solid var(--text-light);
  border-bottom: 1.8px solid var(--text-light);
  transform: rotate(-45deg);
  transition: border-color 0.15s;
}

.mobile-dropdown li:last-child a {
  border-bottom: none;
}

.mobile-dropdown li a:hover {
  background: var(--beige-200);
  color: var(--beige-700);
}

.mobile-dropdown li a:hover::after {
  border-color: var(--beige-600);
}

/* Mobile enroll button */
.mobile-enroll {
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-enroll .enroll-btn {
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 15px;
  border-radius: 10px;
}

/* ==========================================
   PAGE PLACEHOLDER
   ========================================== */
.page-placeholder {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  opacity: 0.55;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .brand-name {
    font-size: 13px;
  }
  .nav-links > li > a,
  .nav-links > li > button {
    font-size: 12.5px;
    padding: 0.4rem 0.55rem;
  }
  .enroll-btn {
    font-size: 12.5px;
    padding: 0.5rem 1rem;
  }
}

/* Mobile */
@media (max-width: 860px) {
  .nav-links,
  .desktop-enroll {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .brand-name {
    font-size: 13.5px;
  }
}
/* Navbar End */



/* ============================================================
   footer.css
   Profenaa Montessori Teacher Training Institute – Coimbatore
   Palette: Deep warm brown bg · Beige text · Gold accent
   ============================================================ */

:root {
  --f-bg:          #1e130a;       /* deep espresso brown */
  --f-bg-top:      #241608;
  --f-border:      rgba(181,129,58,0.18);
  --f-border-btm:  rgba(181,129,58,0.25);
  --accent:        #b5813a;
  --accent-hover:  #d4a05a;
  --f-text:        #c8b89a;       /* warm beige body text */
  --f-muted:       #8a7560;
  --f-white:       #f5efe4;
  --f-link-hover:  #e8c98a;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lato', 'Segoe UI', sans-serif;
  --transition:    0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: #f5f0e8;
}

a { text-decoration: none; color: inherit; }
address { font-style: normal; }

/* ══════════════════════════════════════════
   FOOTER WRAPPER
══════════════════════════════════════════ */
.site-footer {
  background: var(--f-bg);
  color: var(--f-text);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

/* subtle warm radial glow top-left */
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(181,129,58,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Footer Top ── */
.footer-top {
  position: relative;
  z-index: 1;
  padding: 60px 40px 52px;
  border-bottom: 1px solid var(--f-border-btm);
  max-width: 1300px;
  margin: 0 auto;
}

/* ── 5-column grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr 1.2fr;
  gap: 40px 32px;
  align-items: start;
}

/* ── Column base ── */
.footer-col {}

/* ── Col Title ── */
.footer-col__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--f-white);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ══════════════════════════════════════════
   COL 1 – BRAND
══════════════════════════════════════════ */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  width: fit-content;
}

.footer-logo__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.footer-logo__icon svg {
  width: 100%;
  height: 100%;
}

.footer-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--f-white);
  letter-spacing: 0.02em;
}

.footer-logo__sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.footer-brand__desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--f-text);
  margin-bottom: 22px;
  max-width: 300px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--f-border);
  border-radius: 50%;
  color: var(--f-text);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.footer-social__link svg {
  width: 17px;
  height: 17px;
}

.footer-social__link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   COLS 2–4 – LINKS
══════════════════════════════════════════ */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links li a {
  font-size: 0.855rem;
  color: var(--f-text);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition), gap var(--transition);
  line-height: 1.4;
}

.footer-links li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.footer-links li a:hover {
  color: var(--f-link-hover);
  gap: 10px;
}

.footer-links li a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   COL 5 – CONTACT
══════════════════════════════════════════ */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--f-text);
  line-height: 1.6;
  transition: color var(--transition);
}

.footer-contact__item:hover {
  color: var(--f-link-hover);
}

.footer-contact__item--location {
  align-items: flex-start;
}

.footer-contact__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 2px;
}

.footer-contact__icon svg {
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════ */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-bottom__copy {
  font-size: 0.78rem;
  color: var(--f-muted);
}

.footer-bottom__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--f-muted);
}

.footer-bottom__nav a {
  color: var(--f-muted);
  transition: color var(--transition);
}

.footer-bottom__nav a:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════
   RESPONSIVE – Tablet ≤1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px 28px;
  }

  /* Brand spans full row */
  .footer-col--brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 28px;
    align-items: start;
  }

  .footer-logo {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
  }

  .footer-brand__desc {
    grid-row: 1;
    grid-column: 2;
    margin-bottom: 0;
    max-width: 100%;
  }

  .footer-social {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 14px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE – Tablet ≤768px
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .footer-top {
    padding: 44px 24px 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand__desc {
    max-width: 100%;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE – Mobile ≤480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .footer-top {
    padding: 36px 18px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col--brand,
  .footer-col--contact {
    grid-column: 1;
  }

  .footer-logo__name  { font-size: 1.15rem; }
  .footer-logo__icon  { width: 40px; height: 40px; }

  .footer-col__title  { font-size: 0.95rem; margin-bottom: 14px; }

  .footer-links       { gap: 9px; }
  .footer-links li a  { font-size: 0.82rem; }

  .footer-contact__item { font-size: 0.82rem; }

  .footer-bottom {
    padding: 14px 18px;
  }

  .footer-bottom__copy,
  .footer-bottom__nav { font-size: 0.73rem; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .footer-social__link,
  .footer-links li a,
  .footer-contact__item { transition: none !important; }
}


/* Form */
/* Demo trigger button */
.demo-trigger {
    padding: 14px 32px;
    background: linear-gradient(135deg, #c9a56d, #b78d55);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}
.demo-trigger:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #b78d55, #9e7840);
}
 
/* ===== OVERLAY ===== */
.montessori-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
 
.montessori-overlay.active {
    opacity: 1;
    visibility: visible;
}
 
/* ===== POPUP ===== */
.montessori-popup {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 30px;
    position: relative;
    overflow-y: auto;
    max-height: 92vh;
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
    animation: popupZoom .4s cubic-bezier(0.34,1.56,0.64,1);
}
 
@keyframes popupZoom {
    from { transform: scale(0.82); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
 
/* ===== CLOSE BUTTON ===== */
.montessori-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #f0e6d3;
    color: #b78d55;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    transition: .3s;
    font-weight: bold;
}
.montessori-close:hover {
    background: #e0d1ba;
    color: #7c5d33;
}
 
/* ===== HEADER ===== */
.montessori-header {
    text-align: center;
    margin-bottom: 26px;
}
 
.logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e0d1ba;
    overflow: hidden;
    margin: 0 auto 14px;
    background: #f5ecdb;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
/* Fallback placeholder shown when no logo image is set */
.logo-placeholder {
    font-size: 13px;
    color: #b78d55;
    text-align: center;
    line-height: 1.3;
    padding: 6px;
    font-weight: 600;
    letter-spacing: .3px;
}
 
.montessori-header h2 {
    font-size: 1.75rem;
    color: #7c5d33;
    margin-bottom: 6px;
    font-weight: 700;
}
 
.montessori-header p {
    color: #9a7d55;
    font-size: 0.9rem;
}
 
/* ===== FORM ===== */
.montessori-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
 
/* Two-column row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
 
.form-group {
    position: relative;
    margin-bottom: 12px;
}
 
.form-row .form-group {
    margin-bottom: 0;
}
 
/* Icons inside fields */
.field-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #c9a56d;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}
 
.field-icon.top {
    top: 14px;
    transform: none;
    align-items: flex-start;
}
 
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px 13px 38px;
    border: 1.5px solid #e0d1ba;
    background: #fdf9f4;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #4a3520;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
 
.form-group select {
    appearance: none;
    cursor: pointer;
    padding-right: 36px;
}
 
.select-arrow {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 20px;
    color: #c9a56d;
    display: flex;
    align-items: center;
}
 
.form-group textarea {
    padding-top: 13px;
    resize: none;
}
 
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c9a56d;
    box-shadow: 0 0 0 3px rgba(201,165,109,0.18);
    background: #fff;
}
 
/* Error state */
.form-group input.error,
.form-group select.error {
    border-color: #e05c5c;
    box-shadow: 0 0 0 3px rgba(224,92,92,0.15);
}
 
.error-msg {
    font-size: 11px;
    color: #c0392b;
    margin-top: 4px;
    display: none;
    padding-left: 4px;
}
 
.error-msg.visible {
    display: block;
}
 
/* ===== SUBMIT ===== */
.submit-btn {
    width: 100%;
    border: none;
    padding: 15px;
    background: linear-gradient(135deg, #c9a56d, #b78d55);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    letter-spacing: .3px;
    margin-top: 4px;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183,141,85,0.4);
}
.submit-btn:active {
    transform: translateY(0);
}
.submit-btn.success {
    background: linear-gradient(135deg, #4caf87, #38896a);
    pointer-events: none;
}
 
/* Privacy note */
.privacy-note {
    text-align: center;
    font-size: 11.5px;
    color: #b0956f;
    margin-top: 12px;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .montessori-popup {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-row .form-group {
        margin-bottom: 12px;
    }
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
    .montessori-header h2 {
        font-size: 1.5rem;
    }
    .logo-wrapper {
        width: 68px;
        height: 68px;
    }
}
 
@media (max-width: 380px) {
    .montessori-popup {
        padding: 22px 16px 18px;
    }
    .montessori-header h2 {
        font-size: 1.35rem;
    }
}


/* .contact-sidebar */

.contact-sidebar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.contact-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  background: linear-gradient(145deg, #e0b93f, #b8860b);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  isolation: isolate;

  /* fly-in entrance, then hand off to floating loop */
  opacity: 0;
  animation:
    flyIn 0.8s cubic-bezier(.17,.89,.32,1.28) forwards,
    float 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s), calc(var(--i) * 0.18s + 0.9s);
}

/* fly in from far right, spinning, with a little overshoot bounce */
@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateX(220px) translateY(-40px) rotate(280deg) scale(0.3);
  }
  60% {
    opacity: 1;
    transform: translateX(-8px) translateY(4px) rotate(-10deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
}

/* gentle continuous up-down float, staggered per icon */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(2deg); }
}

/* pulsing halo ring */
.contact-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 0 0 0 rgba(212,175,55,0.6);
  animation: pulse 2.2s ease-out infinite;
  animation-delay: calc(var(--i) * 0.3s + 1.2s);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

.contact-icon i {
  transition: transform 0.35s ease;
}

/* hover: pause float, wobble + scale up + brighten */
.contact-icon:hover {
  animation-play-state: paused;
  transform: scale(1.2) !important;
  box-shadow: 0 8px 22px rgba(184,134,11,0.6);
  background: linear-gradient(145deg, #f0c94a, #c9950f);
}

.contact-icon:hover i {
  animation: wobble 0.6s ease;
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-18deg) scale(1.2); }
  50%  { transform: rotate(14deg) scale(1.2); }
  75%  { transform: rotate(-8deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* click ripple burst */
.contact-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.contact-icon:active::after {
  animation: ripple 0.5s ease-out;
}

@keyframes ripple {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

/* tooltip slide-out label */
.contact-icon .tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #3a2e13;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-icon .tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #3a2e13;
}

.contact-icon:hover .tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile */
@media (max-width: 768px) {
  .contact-sidebar {
    top: auto;
    bottom: 18px;
    right: 14px;
    transform: none;
    gap: 10px;
  }
  .contact-icon {
    width: 46px;
    height: 46px;
    font-size: 19px;
    animation: flyIn 0.8s cubic-bezier(.17,.89,.32,1.28) forwards;
  }
  .contact-icon::before { display: none; }
  .contact-icon .tooltip { display: none; }
}
.contact-icon.instagram {
  background: linear-gradient(145deg, #e0b93f, #b8860b);
  color: #fff;
}

.contact-icon.instagram:hover {
  background: linear-gradient(145deg, #f0c94a, #c9950f);
  box-shadow: 0 8px 22px rgba(184,134,11,0.6);
}

.contact-icon.instagram::before {
  box-shadow: 0 0 0 0 rgba(212,175,55,0.55);
  animation: pulse 2.2s ease-out infinite;
  animation-delay: calc(var(--i) * 0.3s + 1.2s);
}
 #gallerySection {
    --gold: #c8973a;
    --gold-deep: #a97922;
    --gold-soft: #e7c583;
    --espresso: #3d2b12;
    --bronze: #8a6224;
    --cream: #fbf6ea;
    --paper: #f4ecd8;
    --ink: #2c2416;
    --ink-soft: #6b6152;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    padding: 90px 20px 100px;
    background:
      radial-gradient(ellipse at 15% 0%, rgba(200,151,58,0.14), transparent 55%),
      radial-gradient(ellipse at 90% 100%, rgba(138,98,36,0.12), transparent 55%),
      var(--cream);
    position: relative;
    overflow: hidden;
  }
 
  /* ---------- Floating ambient decor ---------- */
  #gallerySection .g-float-shape {
    position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(200,151,58,0.35), rgba(200,151,58,0) 70%);
    filter: blur(2px); animation: gFloatDrift 14s ease-in-out infinite;
  }
  #gallerySection .g-float-shape.s1 { width: 90px; height: 90px; top: 6%; left: 6%; animation-duration: 16s; }
  #gallerySection .g-float-shape.s2 { width: 50px; height: 50px; top: 18%; right: 10%; animation-duration: 12s; animation-delay: -3s; }
  #gallerySection .g-float-shape.s3 { width: 130px; height: 130px; bottom: 8%; left: 4%; animation-duration: 20s; animation-delay: -6s; opacity: 0.7; }
  #gallerySection .g-float-shape.s4 { width: 60px; height: 60px; bottom: 14%; right: 8%; animation-duration: 15s; animation-delay: -2s; }
  #gallerySection .g-float-shape.s5 { width: 34px; height: 34px; top: 46%; left: 50%; animation-duration: 10s; animation-delay: -4s; opacity: 0.5; }
 
  /* ---------- Extra geometric 3D decor (triangle + diamond) ---------- */
  #gallerySection .g-float-shape.tri {
    border-radius: 4px;
    background: none;
    filter: none;
    width: 46px; height: 46px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: rgba(169,121,34,0.28);
    border: none;
  }
  #gallerySection .g-float-shape.diamond {
    border-radius: 6px;
    background: rgba(231,197,131,0.4);
    filter: none;
    transform: rotate(45deg);
  }
 
  @keyframes gFloatDrift {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    25%  { transform: translate(14px,-18px) rotate(8deg) scale(1.06); }
    50%  { transform: translate(-6px,-30px) rotate(-4deg) scale(0.96); }
    75%  { transform: translate(-16px,-10px) rotate(6deg) scale(1.04); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
  }
  @media (prefers-reduced-motion: reduce) {
    #gallerySection .g-float-shape { animation: none; }
  }
 
  /* ---------- Rotating 3D cube + ring accents ---------- */
  #gallerySection .g-cube-wrap {
    position: absolute; top: 9%; right: 6%; width: 64px; height: 64px;
    perspective: 600px; z-index: 1; opacity: 0.5; pointer-events: none;
  }
  #gallerySection .g-cube {
    width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
    animation: gCubeSpin 19s linear infinite;
  }
  #gallerySection .g-cube div {
    position: absolute; width: 64px; height: 64px;
    border: 1.5px solid var(--gold); background: rgba(200,151,58,0.07);
    box-sizing: border-box;
  }
  #gallerySection .g-cube .f1 { transform: translateZ(32px); }
  #gallerySection .g-cube .f2 { transform: rotateY(180deg) translateZ(32px); }
  #gallerySection .g-cube .f3 { transform: rotateY(90deg) translateZ(32px); }
  #gallerySection .g-cube .f4 { transform: rotateY(-90deg) translateZ(32px); }
  #gallerySection .g-cube .f5 { transform: rotateX(90deg) translateZ(32px); }
  #gallerySection .g-cube .f6 { transform: rotateX(-90deg) translateZ(32px); }
  @keyframes gCubeSpin {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
  }
 
  #gallerySection .g-ring3d {
    position: absolute; width: 100px; height: 100px; left: 4%; bottom: 22%;
    border: 2px solid var(--gold-soft); border-radius: 50%;
    z-index: 1; opacity: 0.4; pointer-events: none;
    animation: gRing3dSpin 24s linear infinite;
  }
  @keyframes gRing3dSpin {
    from { transform: rotateX(70deg) rotateZ(0deg); }
    to   { transform: rotateX(70deg) rotateZ(360deg); }
  }
 
  @media (max-width: 760px) {
    #gallerySection .g-cube-wrap, #gallerySection .g-ring3d { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    #gallerySection .g-cube, #gallerySection .g-ring3d { animation: none; }
  }
 
  #gallerySection .gwrap { max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }
 
  /* ---------- Heading ---------- */
  #gallerySection .g-eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 0.78rem; letter-spacing: 0.28em; font-weight: 600;
    color: var(--gold-deep); text-transform: uppercase; margin-bottom: 14px;
  }
  #gallerySection .g-eyebrow::before,
  #gallerySection .g-eyebrow::after {
    content: ""; width: 34px; height: 1px; background: var(--gold);
  }
  #gallerySection h2.g-title {
    font-family: 'Fraunces', serif; font-weight: 600; text-align: center;
    font-size: clamp(2.1rem, 4.5vw, 3.1rem); line-height: 1.15;
    color: var(--espresso); margin: 0 0 12px;
  }
  #gallerySection h2.g-title em {
    font-style: italic; color: var(--gold-deep); font-weight: 500;
  }
  #gallerySection .g-sub {
    text-align: center; max-width: 560px; margin: 0 auto 46px;
    color: var(--ink-soft); font-size: 1rem; line-height: 1.6;
  }
 
  /* ---------- 3D Rotating Photo Ring ---------- */
  #gallerySection .g-ring-outer {
    position: relative; height: 260px; margin: 0 auto 56px; max-width: 1100px;
    perspective: 1600px;
  }
  #gallerySection .g-ring {
    position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    transform-style: preserve-3d;
    animation: gRingSpin 26s linear infinite;
  }
  #gallerySection .g-ring-outer:hover .g-ring,
  #gallerySection .g-ring-outer:hover .g-ring-face {
    animation-play-state: paused;
  }
  @keyframes gRingSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
 
  #gallerySection .g-ring-item {
    position: absolute; top: 0; left: 0; width: 180px; height: 220px;
    margin: -110px 0 0 -90px;
    transform-style: preserve-3d;
  }
  #gallerySection .g-ring-face {
    width: 100%; height: 100%; border-radius: 10px; overflow: hidden;
    background: #fff center/cover no-repeat; padding: 8px; box-sizing: border-box;
    box-shadow: 0 18px 34px -14px rgba(61,43,18,0.4), 0 0 0 1px rgba(200,151,58,0.2);
    animation: gRingCounter 26s linear infinite;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  #gallerySection .g-ring-face .g-ring-img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block;
  }
  @keyframes gRingCounter { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
  #gallerySection .g-ring-face:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 26px 44px -14px rgba(61,43,18,0.5), 0 0 0 2px var(--gold);
  }
  #gallerySection .g-ring-shadow {
    position: absolute; left: 50%; bottom: -6px; width: 70%; height: 26px;
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(ellipse, rgba(61,43,18,0.25), transparent 70%);
    filter: blur(4px);
  }
  @media (max-width: 640px) {
    #gallerySection .g-ring-outer { height: 190px; }
    #gallerySection .g-ring-item { width: 130px; height: 160px; margin: -80px 0 0 -65px; }
  }
  @media (prefers-reduced-motion: reduce) {
    #gallerySection .g-ring, #gallerySection .g-ring-face { animation: none; }
  }
 
  /* ---------- Filter switcher ---------- */
  #gallerySection .g-tabs {
    position: relative;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200,151,58,0.35);
    padding: 6px; border-radius: 50px;
    max-width: 900px; margin: 0 auto 56px;
    box-shadow: 0 10px 30px -14px rgba(61,43,18,0.22), 0 0 0 6px rgba(200,151,58,0.06);
  }
  #gallerySection .g-tab-indicator {
    position: absolute; top: 6px; left: 6px; height: calc(100% - 12px);
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: 40px; z-index: 0;
    transition: transform .45s cubic-bezier(.65,0,.35,1), width .45s cubic-bezier(.65,0,.35,1);
    box-shadow: 0 6px 16px -4px rgba(169,121,34,0.55);
  }
  #gallerySection .gallery-btn {
    position: relative; z-index: 1; border: none; background: transparent;
    padding: 12px 22px; font-family: 'Poppins', sans-serif; font-size: 0.82rem;
    font-weight: 600; letter-spacing: 0.03em; color: var(--espresso);
    border-radius: 40px; cursor: pointer; transition: color .3s ease;
    white-space: nowrap;
  }
  #gallerySection .gallery-btn.active { color: #fff; }
  #gallerySection .gallery-btn:hover:not(.active) { color: var(--gold-deep); }
  #gallerySection .gallery-btn:focus-visible {
    outline: 2px solid var(--bronze); outline-offset: 3px;
  }
 
  /* ---------- Grid ---------- */
  #gallerySection .gallery-content { position: relative; min-height: 260px; }
  #gallerySection .gallery-images {
    display: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 34px 26px; padding: 10px 4px 4px;
    perspective: 1600px;
  }
  #gallerySection .gallery-images.active { display: grid; }
 
  #gallerySection .g-card {
    opacity: 0; transform-style: preserve-3d;
    backface-visibility: hidden;
    transform:
      translate3d(var(--fx, 0px), var(--fy, 90px), var(--fz, -220px))
      rotate3d(var(--frx, 0), var(--fry, 1), var(--frz, 0.3), var(--frot, 50deg))
      scale(0.4);
    animation: gCardFly .95s cubic-bezier(.17,.84,.3,1) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes gCardFly {
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translate3d(0,0,0) rotate3d(0,0,1,var(--tilt, 0deg)) scale(1); }
  }
  #gallerySection .g-card.g-idle {
    animation: gCardIdle 4.5s ease-in-out infinite;
    animation-delay: var(--idle-d, 0s);
  }
  @keyframes gCardIdle {
    0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
    50%      { transform: translateY(-9px) rotate(var(--tilt, 0deg)); }
  }
  @media (prefers-reduced-motion: reduce) {
    #gallerySection .g-card { animation: none; opacity: 1; transform: none; }
    #gallerySection .g-card.g-idle { animation: none; }
  }
 
  /* .g-frame now ONLY handles the hover "lift + scale" — a separate,
     infrequently-changing transform. The continuous mouse-tilt effect
     lives on the nested .g-tilt element below so the two never fight
     over the same `transform` transition (this was the cause of the
     hover shake/jitter). */
  #gallerySection .g-frame {
    background: #fff; padding: 10px 10px 34px; border-radius: 6px;
    box-shadow: 0 14px 26px -12px rgba(61,43,18,0.22), 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer; position: relative; overflow: hidden;
    transform-style: preserve-3d;
    transform: translateY(var(--lift, 0px)) scale(var(--sc, 1));
    transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
    will-change: transform;
  }
  #gallerySection .g-frame:hover,
  #gallerySection .g-frame:focus-visible {
    --lift: -10px; --sc: 1.045;
    box-shadow: 0 30px 46px -16px rgba(61,43,18,0.34), 0 0 0 1px rgba(200,151,58,0.25);
    outline: none;
  }
  #gallerySection .g-frame::before {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
    transform: translateX(-120%); transition: transform .7s ease;
  }
  #gallerySection .g-frame:hover::before { transform: translateX(120%); }
 
  /* Inner tilt wrapper — inserted by JS around .g-media-wrap. Its
     transform updates every pointermove, so it deliberately uses a
     very short linear transition (not the frame's .3s easing) to stay
     glued to the cursor without jumping or fighting the lift/scale. */
  #gallerySection .g-tilt {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
    transition: transform .12s linear;
    will-change: transform;
  }
 
  #gallerySection .g-media-wrap {
    position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px;
    background: var(--paper); transform: translateZ(20px);
  }
  #gallerySection .g-media-wrap img,
  #gallerySection .g-media-wrap video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
  }
  #gallerySection .g-frame:hover .g-media-wrap img,
  #gallerySection .g-frame:hover .g-media-wrap video { transform: scale(1.1); }
 
  #gallerySection .g-zoom-hint {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(to top, rgba(61,43,18,0.55), transparent 55%);
    opacity: 0; transition: opacity .3s ease;
  }
  #gallerySection .g-frame:hover .g-zoom-hint { opacity: 1; }
  #gallerySection .g-zoom-hint span {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center; color: var(--espresso);
    font-size: 1.1rem; transform: translateY(10px);
    transition: transform .3s ease;
  }
  #gallerySection .g-frame:hover .g-zoom-hint span { transform: translateY(0); }
 
  #gallerySection .g-caption {
    position: absolute; bottom: 6px; left: 10px; right: 10px;
    font-family: 'Fraunces', serif; font-style: italic; font-size: 0.86rem;
    color: var(--espresso); text-align: center;
  }
 
  /* Slight varied tilt for a hand-arranged photo-wall feel */
  #gallerySection .g-card:nth-child(6n+1) { --tilt: -2.2deg; }
  #gallerySection .g-card:nth-child(6n+2) { --tilt: 1.6deg; }
  #gallerySection .g-card:nth-child(6n+3) { --tilt: -1.1deg; }
  #gallerySection .g-card:nth-child(6n+4) { --tilt: 2.1deg; }
  #gallerySection .g-card:nth-child(6n+5) { --tilt: -1.8deg; }
  #gallerySection .g-card:nth-child(6n+6) { --tilt: 1.2deg; }
 
  /* ---------- Lightbox ---------- */
  #gLightbox {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; padding: 40px;
    background: rgba(10,14,30,0.92); backdrop-filter: blur(4px);
  }
  #gLightbox.open { display: flex; animation: gFade .25s ease; }
  @keyframes gFade { from { opacity: 0; } to { opacity: 1; } }
  #gLightbox .g-lb-inner { position: relative; max-width: 900px; width: 100%; text-align: center; perspective: 1200px; }
  #gLightbox img {
    max-width: 100%; max-height: 78vh; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: gLbPop .35s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes gLbPop {
    from { opacity: 0; transform: scale(0.85) rotateX(10deg) translateY(20px); }
    to   { opacity: 1; transform: scale(1) rotateX(0) translateY(0); }
  }
  #gLightbox .g-lb-caption { color: var(--gold-soft); font-family: 'Fraunces', serif; font-style: italic; margin-top: 16px; font-size: 1rem; }
  #gLightbox .g-lb-close,
  #gLightbox .g-lb-nav {
    position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: background .2s ease, transform .2s ease;
  }
  #gLightbox .g-lb-close:hover, #gLightbox .g-lb-nav:hover { background: var(--gold); transform: scale(1.08); }
  #gLightbox .g-lb-close { top: -56px; right: 0; }
  #gLightbox .g-lb-nav.prev { left: -60px; top: 50%; transform: translateY(-50%); }
  #gLightbox .g-lb-nav.next { right: -60px; top: 50%; transform: translateY(-50%); }
  @media (max-width: 760px) {
    #gLightbox .g-lb-nav.prev { left: 6px; }
    #gLightbox .g-lb-nav.next { right: 6px; }
    #gLightbox .g-lb-close { top: -46px; }
  }