/* ==========================================================================
   MR LIZARD HOME SERVICES — DEDICATED GALLERY STYLES
   ========================================================================== */

.gallery-hero-section {
    padding: 64px 0 40px;
    background: var(--navy-950);
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.gallery-hero-section .section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.gallery-controls-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 12px;
}

.gallery-view-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.view-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--slate-300);
    font-size: 0.8rem;
    font-weight: 600;
}

.view-btn.active {
    background: var(--blue-500);
    color: #FFFFFF;
    border-color: var(--blue-500);
}

/* Featured Swiper Carousel */
.gallery-featured-carousel {
    padding: 48px 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-featured-carousel .swiper {
    height: 480px;
    border-radius: var(--radius-xl);
}

/* Masonry Grid */
.gallery-grid-section {
    padding: 64px 0 96px;
    background: var(--slate-50);
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 16px;
    }
}

@media (max-width: 560px) {
    .masonry-grid {
        column-count: 1;
    }
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 24px;
    background: #FFFFFF;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan-500);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-card-info {
    padding: 16px 20px;
    background: #FFFFFF;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-900);
}

.gallery-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 24, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-container {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 16px;
    color: var(--slate-200);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}
