.biu-gallery {
    columns: var(--biu-columns, 3);
    column-gap: var(--biu-gutter, 16px);
}

.biu-gallery-item {
    break-inside: avoid;
    margin-bottom: var(--biu-gutter, 16px);
}

.biu-gallery-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.biu-gallery-link:hover img {
    transform: scale(1.05);
}

.biu-gallery-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .biu-gallery {
        columns: 2;
    }
}



.biu-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
}

.biu-lightbox.active {
    display: block;
}

.biu-lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biu-lightbox-img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    display: block;
}

.biu-lightbox-close,
.biu-lightbox-prev,
.biu-lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1000001;
}

.biu-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    line-height: 1;
}

.biu-lightbox-prev,
.biu-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.biu-lightbox-prev {
    left: 20px;
}

.biu-lightbox-next {
    right: 20px;
}

.biu-lightbox-close:hover,
.biu-lightbox-prev:hover,
.biu-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.biu-lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 1000001;
}

.biu-lightbox.active {
    display: block;
}

.biu-lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.biu-lightbox-img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    display: block;
}

.biu-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.biu-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.biu-lightbox-prev,
.biu-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.biu-lightbox-prev {
    left: 20px;
}

.biu-lightbox-next {
    right: 20px;
}

.biu-lightbox-prev:hover,
.biu-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.biu-lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .biu-lightbox-prev {
        left: 10px;
        width: 44px;
        height: 44px;
    }

    .biu-lightbox-next {
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .biu-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}