/**
 * boromfolders Gallery Block Styles (Givia Blocks Port)
 */

.boromfolders-gallery {
    margin: 20px 0;
    width: 100%;
}

.boromfolders-gallery ul {
    display: grid;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.boromfolders-gallery ul > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.boromfolders-gallery figure {
    margin: 0 !important;
    height: 100%;
    width: 100%;
}

.boromfolders-gallery img {
    width: 100% !important;
    display: block !important;
    transition: transform 0.3s ease;
}

/* Caption Styles */
.boromfolders-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boromfolders-gallery .item:hover figcaption {
    opacity: 1;
}

/* No Crop (Masonry-like fallback using column-count) */
.boromfolders-gallery ul.no-crop {
    display: block !important;
}

.boromfolders-gallery ul.no-crop > li {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* Lightbox Pointer */
.boromfolders-gallery.lightbox .item {
    cursor: zoom-in;
}

/* Responsive Overrides (Handled by Inline CSS via PHP) */
@media (max-width: 1024px) {
    /* Tablet specific baseline if needed */
}

@media (max-width: 767px) {
    /* Mobile specific baseline if needed */
}
