/* ==========================================================
GALLERY PAGE — extends homepage design system
========================================================== */

.page-gallery {
    overflow-x: hidden;
}

.page-gallery section {
    padding: 0;
    overflow-x: hidden;
}

/* ----------------------------------------------------------
PAGE BANNER
---------------------------------------------------------- */

.page-gallery .gal-banner {
    position: relative;
    padding: 185px 0 145px;
    overflow: hidden;
    background: none;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-gallery .gal-banner-bg {
    position: absolute;
    inset: 0;
    background: url("../images/banner/gallery-banner.jpg") center center / cover no-repeat;
    transform: scale(1);
    animation: galBannerKenBurns 14s ease-out forwards;
    will-change: transform;
}

@keyframes galBannerKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.page-gallery .gal-banner .banner-overlay {
    background:
        linear-gradient(105deg,
            rgba(18, 30, 46, 0.88) 0%,
            rgba(32, 50, 72, 0.72) 45%,
            rgba(18, 30, 46, 0.84) 100%),
        radial-gradient(ellipse at 25% 25%,
            rgba(132, 147, 15, 0.16) 0%,
            transparent 55%),
        radial-gradient(ellipse at 80% 70%,
            rgba(212, 175, 55, 0.1) 0%,
            transparent 50%);
    z-index: 1;
}

.page-gallery .gal-banner-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #84930F 20%,
        #D4AF37 50%,
        #84930F 80%,
        transparent 100%);
    z-index: 3;
}

.page-gallery .gal-banner .container {
    position: relative;
    z-index: 2;
}

.page-gallery .gal-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    margin-bottom: 26px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.page-gallery .gal-banner-badge i {
    color: #D4AF37;
    font-size: 11px;
}

.page-gallery .gal-banner h1 {
    font-family: "Cormorant Garamond", serif;
    color: #fff;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.page-gallery .gal-banner h1 span {
    color: #D4AF37;
}

.page-gallery .gal-banner-divider {
    display: flex;
    justify-content: center;
    margin: 22px 0 24px;
}

.page-gallery .gal-banner-divider span {
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #84930F, #D4AF37, #84930F);
}

.page-gallery .gal-banner p {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(18px, 2.2vw, 24px);
    font-style: italic;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
}

.page-gallery .gal-breadcrumb {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 22px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-gallery .gal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

.page-gallery .gal-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gallery .gal-breadcrumb a:hover {
    color: #D4AF37;
}

.page-gallery .gal-breadcrumb .breadcrumb-item.active {
    color: #D4AF37;
}

.page-gallery .gal-banner-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
    clip-path: ellipse(78% 100% at 50% 100%);
    z-index: 2;
}

/* ----------------------------------------------------------
SHARED
---------------------------------------------------------- */

.page-gallery .gal-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    margin-bottom: 16px;
    border-radius: 40px;
    background: rgba(132, 147, 15, 0.1);
    border: 1px solid rgba(132, 147, 15, 0.22);
    color: #84930F;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.page-gallery .gal-section-divider {
    display: flex;
    justify-content: center;
    margin: 16px 0 20px;
}

.page-gallery .gal-section-divider span {
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #84930F, #D4AF37, #84930F);
}

/* ----------------------------------------------------------
INTRO
---------------------------------------------------------- */

.page-gallery .gal-intro {
    padding: 110px 0;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
}

.page-gallery .gal-intro-header {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.page-gallery .gal-intro-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 3.8vw, 44px);
    color: #243447;
    margin-bottom: 16px;
}

.page-gallery .gal-intro-header p {
    font-size: 17px;
    line-height: 1.75;
    color: #5a6a7a;
    margin: 0;
}

/* ----------------------------------------------------------
PHOTO GRID — mirrors index.php memories2
---------------------------------------------------------- */

.page-gallery .gal-grid-section {
    padding: 110px 0 80px;
    background: linear-gradient(135deg, #1E2D3E 0%, #27384B 50%, #182432 100%);
    position: relative;
    overflow: hidden;
}

.page-gallery .gal-grid-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    top: -200px;
    left: -150px;
    pointer-events: none;
}

.page-gallery .gal-grid-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(132, 147, 15, 0.05);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}

.page-gallery .gal-grid-section .container {
    position: relative;
    z-index: 1;
}

.page-gallery .gal-grid-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.page-gallery .gal-grid-header .gal-label {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

.page-gallery .gal-grid-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 3.8vw, 44px);
    color: #fff;
    margin-bottom: 16px;
}

.page-gallery .gal-grid-header p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.page-gallery .gal-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.page-gallery .gal-item:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.page-gallery .gal-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.page-gallery .gal-item:hover img {
    transform: scale(1.08);
}

.page-gallery .gal-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(30, 45, 62, 0.1) 0%,
        rgba(30, 45, 62, 0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-gallery .gal-item:hover .gal-item-overlay {
    opacity: 1;
}

.page-gallery .gal-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #84930F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-gallery .gal-item-caption {
    width: 100%;
    text-align: center;
}

.page-gallery .gal-item-caption strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.page-gallery .gal-item-caption span {
    font-size: 12px;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 0.3px;
}

.page-gallery .gal-empty {
    text-align: center;
    padding: 60px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* ----------------------------------------------------------
LOAD MORE
---------------------------------------------------------- */

.page-gallery .gal-load-wrap {
    padding: 0 0 100px;
    background: linear-gradient(180deg, #182432 0%, #1E2D3E 100%);
    position: relative;
}

.page-gallery .gal-load-wrap .container {
    position: relative;
    z-index: 1;
}

.page-gallery .btn-gal-load {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.page-gallery .btn-gal-load:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #1E2D3E;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.page-gallery .btn-gal-load i {
    transition: transform 0.3s ease;
}

.page-gallery .btn-gal-load:hover i {
    transform: translateY(2px);
}

/* ----------------------------------------------------------
VERSE & CTA
---------------------------------------------------------- */

.page-gallery .gal-verse {
    padding: 100px 0;
}

.page-gallery .gal-cta-wrap {
    padding: 100px 0 110px;
    background: linear-gradient(180deg, #F7F3EC 0%, #FCFAF6 100%);
}

.page-gallery .gal-cta-box h3 {
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1.25;
}

.page-gallery .gal-cta-box p {
    margin-bottom: 24px;
}

.page-gallery .gal-cta-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-gallery .gal-cta-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-gallery .gal-cta-phone:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 175, 55, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.page-gallery .gal-cta-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.18);
    color: #D4AF37;
    flex-shrink: 0;
}

.page-gallery .gal-cta-phone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-gallery .gal-cta-phone-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.page-gallery .gal-cta-phone-number {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ----------------------------------------------------------
RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 991px) {
    .page-gallery .gal-banner {
        padding: 155px 0 120px;
        min-height: 460px;
    }

    .page-gallery .gal-intro,
    .page-gallery .gal-grid-section {
        padding: 80px 0;
    }

    .page-gallery .gal-load-wrap {
        padding-bottom: 80px;
    }
}

@media (max-width: 767px) {
    .page-gallery .gal-banner {
        padding: 135px 0 105px;
    }

    .page-gallery .gal-intro,
    .page-gallery .gal-grid-section {
        padding: 64px 0;
    }

    .page-gallery .gal-item img {
        height: 180px;
    }

    .page-gallery .gal-cta-wrap {
        padding: 70px 0 80px;
    }

    .page-gallery .gal-cta-phones {
        flex-direction: column;
    }

    .page-gallery .gal-cta-phone {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-gallery .gal-banner-bg {
        animation: none;
    }

    .page-gallery .gal-item,
    .page-gallery .btn-gal-load {
        transition: none;
    }
}
