/* Галерея - подпись под картинкой */
.vb-gallery__caption {
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--vb-color-text);
    line-height: 1.4;
}

/* ========================================
   3. ГАЛЕРЕЯ / ПРИМЕРЫ РАБОТ
   ======================================== */

.vb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vb-gallery__item {
    position: relative;
    border-radius: var(--vb-radius);
    overflow: hidden;
    cursor: pointer;
}

.vb-gallery__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s;
}

.vb-gallery__item:hover img {
    transform: scale(1.05);
}

.vb-gallery__overlay {
    position: absolute;
    inset: 0;
    background: var(--vb-color-primary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.vb-gallery__item:hover .vb-gallery__overlay {
    opacity: 0.8;
}

.vb-gallery__overlay span {
    color: #fff;
    font-size: 2rem;
}

/* Кастомная иконка лупы */
.vb-gallery__zoom-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Галерея с подписями */
.vb-gallery__item {
    display: flex;
    flex-direction: column;
}

/* Лайтбокс */
.vb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.vb-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.vb-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--vb-radius);
}

.vb-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.vb-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.4);
}
