/* ========================================================================== 
   Vrinda Packing House - Gallery Page
   ========================================================================== */

.gallery-page { background: var(--ivory); }
.gallery-page section { scroll-margin-top: 106px; }

/* Header dropdowns */
.main-nav .dropdown { display: inline-flex; align-items: center; }
.main-nav .dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.main-nav .dropdown-toggle::after { display: none; }
.main-nav .dropdown-toggle .bi { font-size: 10px; }
.main-nav .dropdown-menu { min-width: 220px; padding: 10px; margin-top: 18px !important; background: rgba(255,253,249,.98); border: 1px solid rgba(199,162,98,.25); border-radius: 10px; box-shadow: 0 16px 36px rgba(70,31,34,.12); }
.main-nav .dropdown-item { padding: 10px 12px; border-radius: 7px; font-size: 12.5px; white-space: normal; }
.main-nav .dropdown-item::after { display: none; }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { color: var(--wine); background: var(--blush); }
.mobile-nav-links .collapse-inner { margin: 2px 0 8px 12px; padding-left: 14px; border-left: 1px solid rgba(199,162,98,.45); }
.mobile-nav-links .collapse-inner a { padding-block: 9px; color: var(--muted); font-size: 13px; }

/* Breadcrumb hero */
.gallery-hero { position: relative; min-height: var(--inner-page-hero-height); display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(255,249,244,.98) 0%, rgba(255,249,244,.92) 37%, rgba(255,249,244,.46) 64%, rgba(255,249,244,.12) 100%), url("../images/wedding-special-banner-v1.jpg") 70% center / cover no-repeat; }
.gallery-hero::after { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(180deg, transparent 74%, rgba(143,29,44,.08)); }
.gallery-hero-content { position:relative; z-index:1; width:100%; padding: var(--inner-page-hero-padding-y) clamp(22px,4.8vw,90px); }
.gallery-breadcrumb { display:flex; align-items:center; gap:10px; margin-bottom:26px; color:var(--muted); font-size:13px; }
.gallery-breadcrumb a { color:var(--wine); font-weight:700; }
.gallery-breadcrumb .bi { color:var(--gold); font-size:10px; }
.gallery-kicker, .gallery-section-label { display:inline-flex; align-items:center; gap:9px; color:var(--wine); font-size:11px; font-weight:800; letter-spacing:1.9px; text-transform:uppercase; }
.gallery-kicker::before, .gallery-section-label::before { content:""; width:28px; height:1px; background:var(--gold); }
.gallery-hero h1 { max-width:530px; margin-top:10px; color:var(--wine); font-size:clamp(44px,5.2vw,68px); line-height:.92; }
.gallery-flourish { display:flex; align-items:center; gap:8px; width:210px; margin-top:22px; color:var(--gold); }
.gallery-flourish::before { content:""; width:70px; height:1px; background:var(--gold); }
.gallery-flourish::after { content:""; flex:1; height:1px; background:var(--gold); }

/* Gallery */
.gallery-section { padding: var(--section-pad) 0 72px; }
.gallery-heading { max-width:690px; margin:0 auto 38px; text-align:center; }
.gallery-heading .gallery-section-label { justify-content:center; }
.gallery-heading .gallery-section-label::after { content:""; width:28px; height:1px; background:var(--gold); }
.gallery-heading h2 { margin-top:12px; color:var(--wine); font-size:clamp(35px,4vw,49px); }
.gallery-heading p { margin-top:12px; color:var(--muted); font-size:14px; line-height:1.7; }

.creation-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.creation-card { position:relative; min-width:0; width:100%; aspect-ratio:1/1; padding:0; overflow:hidden; color:var(--wine); background:#eadbd4; border:0; border-radius:0; cursor:zoom-in; }
.creation-card img { width:100%; height:100%; object-fit:cover; transition:transform .55s var(--ease), filter .35s var(--ease); }
.creation-card:hover img { transform:scale(1.04); filter:brightness(.92); }
.creation-card-tall, .creation-card-wide { grid-row:auto; grid-column:auto; }
.creation-card-overlay { position:absolute; inset:20px auto auto 20px; display:inline-flex; align-items:center; max-width:calc(100% - 40px); padding:10px 14px; color:var(--wine); background:#fff; font-family:var(--font-body); font-size:15px; font-weight:500; line-height:1.35; text-align:left; transform:none; }
.creation-card:hover .creation-card-overlay, .creation-card:focus-visible .creation-card-overlay { transform:none; }
.creation-card-overlay .bi { display:none; }
.gallery-note { display:flex; align-items:center; justify-content:center; gap:11px; margin-top:28px; color:var(--wine); font-family:var(--font-heading); font-size:18px; font-weight:600; text-align:center; }
.gallery-note .bi { color:var(--gold); }

.gallery-cta { padding:55px 0; background:linear-gradient(90deg,rgba(255,244,241,.97),rgba(252,226,226,.94)),url("../images/hero-wedding-v2.jpg") center / cover no-repeat; }
.gallery-cta .container { display:flex; align-items:center; justify-content:space-between; gap:36px; }
.gallery-cta h2 { margin-top:9px; color:var(--wine); font-size:clamp(32px,3.7vw,45px); }
.gallery-cta p { max-width:660px; margin-top:8px; color:#6b5d5d; font-size:13px; line-height:1.65; }
.gallery-cta-actions { display:flex; flex-shrink:0; gap:12px; }

/* Lightbox */
.gallery-lightbox { position:fixed; z-index:1200; inset:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:18px; padding:clamp(18px,4vw,54px); color:#fff; background:rgba(30,10,13,.92); opacity:0; visibility:hidden; transition:opacity .25s var(--ease), visibility .25s var(--ease); }
.gallery-lightbox.is-open { opacity:1; visibility:visible; }
.lightbox-figure { position:relative; display:flex; flex-direction:column; align-items:center; max-width:min(1060px,82vw); max-height:calc(100vh - 108px); margin:0; }
.lightbox-figure img { display:block; max-width:100%; max-height:calc(100vh - 145px); object-fit:contain; border-radius:7px; box-shadow:0 18px 50px rgba(0,0,0,.35); }
.lightbox-figure figcaption { margin-top:12px; color:#fff7ed; font-family:var(--font-heading); font-size:23px; font-weight:700; text-align:center; }
.lightbox-close, .lightbox-nav { display:grid; place-items:center; flex:0 0 auto; width:46px; height:46px; padding:0; color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.45); border-radius:50%; font-size:19px; transition:background .25s var(--ease), transform .25s var(--ease); }
.lightbox-close { position:absolute; top:24px; right:26px; }
.lightbox-close:hover, .lightbox-nav:hover { background:var(--wine); transform:scale(1.04); }
.gallery-lightbox.is-open .lightbox-figure { animation:lightbox-in .28s var(--ease) both; }
@keyframes lightbox-in { from { transform:scale(.96); opacity:0; } to { transform:scale(1); opacity:1; } }
body.lightbox-open { overflow:hidden; }

@media (max-width:992px) {
  .creation-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gallery-cta .container { align-items:flex-end; }
}

@media (max-width:768px) {
  .gallery-page section { scroll-margin-top:96px; }
  .gallery-hero { min-height:var(--inner-page-hero-height); background:linear-gradient(0deg,rgba(255,249,244,.98) 0%,rgba(255,249,244,.91) 45%,rgba(255,249,244,.26) 100%),url("../images/wedding-special-banner-v1.jpg") 68% center / cover no-repeat; }
  .gallery-hero-content { padding:var(--inner-page-hero-padding-y) 20px; }
  .gallery-hero h1 { font-size:44px; }
  .gallery-section { padding:55px 0; }
  .creation-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .gallery-cta .container { flex-direction:column; align-items:flex-start; gap:25px; }
  .gallery-cta-actions { width:100%; }
  .gallery-cta-actions .btn { flex:1; }
  .gallery-lightbox { grid-template-columns:1fr; gap:12px; padding:62px 18px 20px; }
  .lightbox-figure { max-width:100%; max-height:calc(100vh - 156px); }
  .lightbox-figure img { max-height:calc(100vh - 190px); }
  .lightbox-figure figcaption { font-size:20px; }
  .lightbox-nav { position:absolute; bottom:28px; }
  .lightbox-prev { left:calc(50% - 58px); }
  .lightbox-next { right:calc(50% - 58px); }
}

@media (max-width:576px) {
  .gallery-hero { min-height:var(--inner-page-hero-height); background-position:70% center; }
  .gallery-hero-content { padding:var(--inner-page-hero-padding-y) 18px; }
  .gallery-breadcrumb { margin-bottom:18px; font-size:11px; }
  .gallery-kicker, .gallery-section-label { font-size:9.5px; letter-spacing:1.5px; }
  .gallery-hero h1 { font-size:38px; }
  .gallery-heading { margin-bottom:27px; }
  .gallery-heading h2 { font-size:32px; }
  .creation-gallery { gap:7px; }
  .creation-card-overlay { inset:10px auto auto 10px; max-width:calc(100% - 20px); padding:7px 9px; font-size:12px; }
  .gallery-note { margin-top:21px; font-size:16px; }
  .gallery-cta { padding:45px 0; }
  .gallery-cta-actions { flex-direction:column; }
  .gallery-cta-actions .btn { width:100%; }
  .lightbox-close { top:14px; right:14px; }
}
