.easy-gallery {
    container-type: inline-size;
    --bs-columns: 1;
    padding-bottom: 2rem;
}

.easy-gallery .collection-list {
}

.easy-gallery .collection {
    position: relative;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
    overflow: hidden;
}

.easy-gallery .lightbox-collection {
    position: relative;
    overflow: hidden;
}

.easy-gallery .image-list {
    position: relative;
}

@container (min-width: 480px) {
    .easy-gallery .image-list {
        --bs-columns: 2;
    }
    .easy-gallery .lightbox-collection {
        --bs-columns: 2;
    }
}

@container (min-width: 768px) {
    .easy-gallery .image-list {
        --bs-columns: 4;
    }
}

@container (min-width: 992px) {
    .easy-gallery .image-list {
        --bs-columns: 4;
    }
}

@container (min-width: 1200px) {
    .easy-gallery .image-list {
        --bs-columns: 5;
    }
}

@media (min-width: 768px) {
    .easy-gallery .collection-list {
        --bs-columns: 2;
    }
    .easy-gallery .collection-list-small {
        --bs-columns: 3;
    }
}

@media (max-width: 1199px) {
    .easy-gallery .collection {
        text-align: center;
    }
    .easy-gallery .collection a {
        aspect-ratio: 3/2;
        display: block;
        overflow: hidden;
    }
    .easy-gallery .collection a img,
    .easy-gallery .lightbox-collection a,
    .easy-gallery .lightbox-collection a img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
}
@media (min-width: 1200px) {
    .easy-gallery .collection {
        --bs-columns: 2;
        display: grid;
        grid-template-rows: repeat(var(--bs-rows, 1), 1fr);
        grid-template-columns: repeat(var(--bs-columns, 12), 1fr);
        gap: var(--bs-gap, 1.5rem);
    }
    .easy-gallery .collection a,
    .easy-gallery .collection a img,
    .easy-gallery .lightbox-collection a,
    .easy-gallery .lightbox-collection a img {
        height: 100% !important;
    }
    .easy-gallery .collection a img,
    .easy-gallery .lightbox-collection a img {
        -o-object-fit: cover !important;
        object-fit: cover !important;
        width: 100% !important;
    }
}

.lightbox-collection .info {
    opacity: 0;
    position: absolute;
    left: 0px;
    bottom: -100%;
    z-index: 3;
    right: 0px;
    transition: all 0.3s;
    background: rgba(var(--bs-white-rgb), .9);
    padding: 10px 15px;
    text-align: center;
    font-weight: 400;
}
.lightbox-collection:hover .info {
    opacity: 1;
    bottom: 0;
}
