/* =============================================================
   Photo Gallery – Before & After Side-by-Side + Lightbox
   ============================================================= */

/* --- Filter tabs --- */
.gallery-filters .btn {
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    background: transparent;
    transition: all 0.3s ease;
}

.gallery-filters .btn:hover,
.gallery-filters .btn.active {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* --- Gallery grid item card --- */
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hide {
    display: none;
}

.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(43, 36, 33, 0.12);
}

.gallery-card .card-body {
    padding: 1rem 1.25rem;
}

.gallery-card .card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-card .card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Lightbox overlay --- */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10000;
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

/* --- Single showcase images --- */
.showcase-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.showcase-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(43, 36, 33, 0.12);
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.showcase-img:hover img {
    transform: scale(1.03);
}


