/* Bihotz Masonry Gallery */
.bihotz-masonry {
    display: flex;
    gap: 0;
}

.bihotz-masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bihotz-masonry-item {
    overflow: hidden;
    border-radius: 0;
    line-height: 0;
}

.bihotz-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bihotz-masonry-item:hover img {
    transform: scale(1.05);
}

.bihotz-masonry-item {
    cursor: pointer;
}

/* Lightbox */
.bihotz-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bihotz-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Responsive - Tablette */
@media (max-width: 980px) {
    .bihotz-masonry {
        gap: 0;
    }
    .bihotz-masonry-column {
        gap: 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .bihotz-masonry {
        gap: 0;
    }
    .bihotz-masonry-column {
        gap: 0;
    }
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: auto;
        bottom: 30px;
        transform: none;
        padding: 15px 25px;
    }

    .lightbox-prev {
        left: 30px;
    }

    .lightbox-next {
        right: 30px;
    }

    .lightbox-close {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}
