/* ============================================================
   GALLERY PAGE — DEDICATED STYLESHEET
   DB Luminous Painting LLC
   Import in gallery.php only (no :root / no var(--...))
   Palette: Navy #0b1424 | Burgundy #85121d | Cream #fdfbf7 | Slate #64748b
============================================================ */

/* --------------------------------------------------------
   PAGE HERO BANNER
-------------------------------------------------------- */
.gallery-page-hero {
    min-height: 350px;
    display: flex;
    align-items: center;
    padding: 85px 0 65px;
    position: relative;
    background-color: #0b1424;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 20, 36, 0.88) 0%, rgba(10, 40, 84, 0.75) 60%, rgba(133, 18, 29, 0.65) 100%);
    z-index: 1;
}

.gallery-hero-label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.gallery-hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    font-family: 'Montserrat', sans-serif;
}

.gallery-hero-accent {
    color: #e87c88;
}

.gallery-breadcrumb {
    background: transparent;
}

.gallery-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.gallery-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
    font-size: 0.9rem;
}

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

/* --------------------------------------------------------
   MAIN GALLERY SECTION
-------------------------------------------------------- */
.gallery-main-section {
    background-color: #fdfbf7;
    padding: 85px 0 100px;
    position: relative;
    z-index: 2;
}

/* Paint drip at bottom: drips from #fdfbf7 into the CTA below */
.gallery-main-section::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: 0;
    width: 100%;
    height: 35px;
    background-repeat: repeat-x;
    background-size: 1000px 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath fill='%23fdfbf7' d='M0,0 L1200,0 L1200,8 Q1180,8 1170,20 Q1160,34 1150,20 Q1140,8 1110,8 Q1090,8 1080,24 Q1070,38 1060,24 Q1050,8 1020,8 Q990,8 980,22 Q970,36 960,22 Q950,8 920,8 Q895,8 885,26 Q875,40 865,26 Q855,8 820,8 Q795,8 785,18 Q775,28 765,18 Q755,8 720,8 Q695,8 685,24 Q675,38 665,24 Q655,8 620,8 Q595,8 585,22 Q575,34 565,22 Q555,8 520,8 Q495,8 485,26 Q475,40 465,26 Q455,8 420,8 Q395,8 385,18 Q375,28 365,18 Q355,8 320,8 Q295,8 285,24 Q275,38 265,24 Q255,8 220,8 Q195,8 185,22 Q175,34 165,22 Q155,8 120,8 Q95,8 85,26 Q75,40 65,26 Q55,8 20,8 L0,8 Z'/%3E%3C/svg%3E");
    z-index: 3;
    pointer-events: none;
}

.gallery-count-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-count-badge i {
    color: #85121d;
}

/* --------------------------------------------------------
   MODERN GALLERY CARD & FRAME
-------------------------------------------------------- */
.gallery-card-frame {
    position: relative;
    height: 270px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.gallery-card-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 38px rgba(11, 20, 36, 0.18);
    border-color: #85121d;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-frame:hover .gallery-card-img {
    transform: scale(1.09);
}

.gallery-hover-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(133, 18, 29, 0.88) 0%, rgba(11, 20, 36, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.gallery-card-frame:hover .gallery-hover-glass-overlay {
    opacity: 1;
}

.gallery-zoom-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #85121d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
    transform: translateY(12px) scale(0.9);
    transition: transform 0.35s ease, background-color 0.25s ease, color 0.25s ease;
}

.gallery-card-frame:hover .gallery-zoom-circle-btn {
    transform: translateY(0) scale(1);
}

.gallery-card-frame:hover .gallery-zoom-circle-btn:hover {
    background-color: #0b1424;
    color: #ffffff;
}

.gallery-hover-caption {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.gallery-card-frame:hover .gallery-hover-caption {
    transform: translateY(0);
}

/* --------------------------------------------------------
   PAGINATION CONTROLS
-------------------------------------------------------- */
.gallery-pagination-wrap {
    margin-top: 55px;
}

.gallery-pagination .page-item .page-link {
    color: #0b1424;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    margin: 0 4px;
    padding: 10px 20px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.gallery-pagination .page-item .page-link:hover {
    background-color: #85121d;
    border-color: #85121d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 18, 29, 0.3);
}

.gallery-pagination .page-item.active .page-link {
    background-color: #85121d;
    border-color: #85121d;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(133, 18, 29, 0.35);
}

.gallery-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    opacity: 0.7;
    pointer-events: none;
}

/* --------------------------------------------------------
   RESPONSIVE DESIGN
-------------------------------------------------------- */
@media (max-width: 991.98px) {
    .gallery-hero-title {
        font-size: 2.3rem;
    }
    .gallery-card-frame {
        height: 230px;
    }
}

@media (max-width: 575.98px) {
    .gallery-hero-title {
        font-size: 1.9rem;
    }
    .gallery-card-frame {
        height: 180px;
        border-radius: 12px;
    }
    .gallery-zoom-circle-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .gallery-hover-caption {
        font-size: 0.8rem;
    }
    .gallery-pagination .page-item .page-link {
        padding: 8px 14px;
        font-size: 0.85rem;
        margin: 0 2px;
    }
}

