/* ==========================================================
   gallery.css  (load AFTER style.css) — all classes start gl-
   ========================================================== */

/* ---------- HERO ---------- */
.gl-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  background: linear-gradient(100deg, #fde7f0 0%, #fff3f8 50%, #fff 100%);
}
.gl-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }

.gl-crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6d7280; margin-bottom: 16px; }
.gl-crumb a, .gl-crumb span { color: var(--pink); font-weight: 500; }
.gl-crumb i { font-size: 8px; color: var(--pink); }

.gl-hero h1 { font-family: var(--font-head); font-size: clamp(40px, 5.6vw, 62px); font-weight: 700; line-height: 1.1; color: var(--navy); }
.gl-hero h1 span { color: var(--pink); }
.gl-heart { font-size: .42em; color: var(--pink); margin-left: 10px; vertical-align: super; }
.gl-hero h2 { font-family: var(--font-head); font-size: clamp(19px, 2.3vw, 25px); font-weight: 600; color: var(--navy); margin: 10px 0 12px; }
.gl-lead { font-size: 14.5px; line-height: 1.75; max-width: 480px; }

.gl-chips { display: grid; grid-template-columns: repeat(2, auto); gap: 16px 30px; justify-content: start; margin-top: 28px; }
.gl-chip { display: flex; align-items: center; gap: 12px; font-size: 12.5px; line-height: 1.35; }
.gl-chip i {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; background: #fbd6e5; color: var(--pink);
}

/* photo collage */
.gl-hero-art { position: relative; padding: 10px 10px 30px; }
.gl-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 360px; }
.gl-collage img {
  width: 100%; height: 100%; object-fit: cover;
  border: 4px solid #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(27,42,65,.18);
}
.gl-collage img:nth-child(1) { grid-row: 1 / 3; transform: rotate(-2.5deg); }
.gl-collage img:nth-child(2) { transform: rotate(2deg); }
.gl-collage img:nth-child(3) { transform: rotate(-1.5deg); }
.gl-sticker {
  position: absolute; right: -6px; bottom: 6px; padding: 14px 20px; border-radius: 6px;
  background: #ffeaf2; border: 1px solid #f7c6d9; box-shadow: 0 10px 24px rgba(214,17,95,.18);
  font-family: var(--font-script); font-weight: 700; font-size: 24px; line-height: 1.15;
  color: var(--pink); text-align: center; transform: rotate(-6deg);
}
.gl-sticker i { font-size: .65em; margin-left: 4px; }

/* ---------- FILTER BAR ---------- */
.gl-filter {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #f7e3ec; box-shadow: 0 6px 18px rgba(27,42,65,.05);
}
.gl-filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.gl-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; background: #fff;
  border: 1.5px solid #f3c9da; color: var(--navy);
  font-family: var(--font-body); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.gl-tab:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-1px); }
.gl-tab em {
  font-style: normal; font-size: 11px; min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--pink-light); color: var(--pink); text-align: center;
}
.gl-tab.active { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(214,17,95,.28); }
.gl-tab.active em { background: rgba(255,255,255,.25); color: #fff; }
.gl-tab:focus-visible, .gl-open:focus-visible, .gl-lb-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.gl-count { font-size: 13px; color: #6d7280; white-space: nowrap; }
.gl-count b { color: var(--pink); }

/* ---------- GRID ---------- */
.gl-section { padding: 54px 0 70px; background: linear-gradient(180deg, #fff 0%, #fff7fa 100%); }
.gl-head { text-align: center; margin-bottom: 36px; }
.gl-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.gl-eyebrow i { font-size: 9px; margin: 0 6px; }
.gl-head h2 { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); }
.gl-head h2 span { color: var(--pink); }
.gl-head p:last-child { font-size: 14px; margin-top: 6px; }

.gl-grid { column-count: 4; column-gap: 18px; }
.gl-item {
  position: relative; display: block; margin: 0 0 18px; overflow: hidden;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  border-radius: 16px; background: var(--pink-light);
  box-shadow: 0 8px 24px rgba(27,42,65,.09);
  animation: glIn .5s ease both;
}
.gl-item[hidden] { display: none; }
@keyframes glIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.gl-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.gl-open img { display: block; width: 100%; height: auto; min-height: 140px; object-fit: cover; transition: transform .6s ease; }
.gl-item:hover .gl-open img { transform: scale(1.06); }

.gl-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 16px; opacity: 0; transition: opacity .35s ease;
  background: linear-gradient(180deg, transparent 45%, rgba(27,42,65,.85) 100%);
}
.gl-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
}
.gl-title { font-family: var(--font-head); font-size: 16px; line-height: 1.3; color: #fff; }
.gl-zoom {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; background: #fff; color: var(--pink);
  box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
}
.gl-item:hover .gl-cap, .gl-open:focus-visible .gl-cap { opacity: 1; }
.gl-item:hover .gl-zoom, .gl-open:focus-visible .gl-zoom { opacity: 1; transform: none; }



/* ---------- LIGHTBOX ---------- */
.gl-lb {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; gap: 14px; padding: 24px 70px;
  background: rgba(20,28,45,.94);
}
.gl-lb.open { display: flex; animation: glFade .25s ease; }
@keyframes glFade { from { opacity: 0; } to { opacity: 1; } }
.gl-lock { overflow: hidden; }

.gl-lb-fig { margin: 0; text-align: center; max-width: 100%; }
.gl-lb-img { max-width: min(92vw, 900px); max-height: 76vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #222; }
.gl-lb-fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 16px; color: #fff; }
.gl-lb-tag { padding: 3px 12px; border-radius: 999px; background: var(--pink); font-size: 11px; font-weight: 600; }
.gl-lb-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.gl-lb-count { font-size: 13px; color: #c9d0de; }

.gl-lb-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 16px; transition: background .25s, transform .25s;
}
.gl-lb-btn:hover { background: var(--pink); }
.gl-lb-close { position: absolute; top: 18px; right: 20px; }
.gl-lb-prev { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.gl-lb-next { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA ---------- */
.gl-cta { padding: 46px 0; overflow: hidden; background: linear-gradient(90deg, #ffe6ef, #fff2f7 50%, #ffe6ef); }
.gl-cta-inner { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 24px; }
.gl-cta-art { max-height: 200px; width: auto; }
.gl-cta-art.left { justify-self: start; }
.gl-cta-art.right { justify-self: end; }
.gl-cta-text { text-align: center; }
.gl-cta-text h2 { font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 38px); color: var(--navy); margin-bottom: 8px; }
.gl-cta-text h2 span { color: var(--pink); }
.gl-cta-text p { font-size: 14.5px; line-height: 1.7; max-width: 440px; margin: 0 auto 22px; }
.gl-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- FOOTER ADDITIONS ---------- */

/* ============ GALLERY PAGINATION ============ */

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number,
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e8dfe3;
    border-radius: 50px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
}

.page-btn {
    gap: 8px;
}

.page-number:hover,
.page-btn:hover {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
}

.page-number.active {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
    box-shadow: 0 5px 14px rgba(214,17,95,.2);
}

.page-dots {
    color: #999;
    padding: 0 3px;
}

.gallery-page-info {
    text-align: center;
    margin-top: 16px;
    color: #888;
    font-size: 12px;
}

.gallery-empty {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.gallery-empty i {
    font-size: 40px;
    color: var(--pink);
    margin-bottom: 15px;
}

/* Mobile pagination */
@media (max-width: 576px) {
    .gallery-pagination {
        gap: 8px;
        margin-top: 30px;
    }

    .page-numbers {
        gap: 5px;
    }

    .page-number {
        min-width: 34px;
        height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }
}









