:root {
    --overlay-color: rgba(29, 79, 216, 0.65); 
}

.gallery 
{margin-top: 50px;}


.m-gallery {
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.m-gallery:hover {
    transform: translateY(-5px);
}

.xoverlay {
    position: relative;
    overflow: hidden;
    border-radius: 15px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.xoverlay img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


.x-zoom .xoverlay-box { 
    width: 100%; height: 100%; 
    position: absolute; top: 0; left: 0;
    display: flex; justify-content: center; align-items: center;
    background: var(--overlay-color);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-in-out;
}

.x-zoom:hover .xoverlay-box { 
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.gallery-icon {
    width: 50px; height: 50px;
    background: url("../images/gallery.a0c8df5341ef.svg") no-repeat center / contain;
    filter: brightness(0) invert(1); 
}


.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none; justify-content: center; align-items: center;
    z-index: 99999; backdrop-filter: blur(10px);
}

.lb-image-stage { position: relative; text-align: center; }

#lb-main-img {
    max-width: 90vw; max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
}

.lb-close-btn { position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; cursor: pointer; z-index: 10002; }
.lb-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; background: white; border-radius: 50%;
    border: none; cursor: pointer; z-index: 10001; font-size: 0;
}
.lb-prev { left: 30px; }
.lb-next { right: 30px; }
.lb-nav-btn::after {
    content: ''; display: inline-block; width: 15px; height: 15px;
    border-top: 3px solid #333; border-right: 3px solid #333;
}
.lb-prev::after { transform: rotate(-135deg); }
.lb-next::after { transform: rotate(45deg); }
.lb-counter { color: white; margin-top: 15px; font-size: 18px; font-family: sans-serif; }