/*
/* Plugin Simple Gallery
*/

.gridbox-gallery-wrapper {
    display: grid;
}

.simple-gallery-masonry-layout {
    grid-row-gap: 20px;
    grid-column-gap: 20px;
    grid-auto-rows: 0px;
}

.ba-gridbox-gallery-image .ba-simple-gallery-image {
    background: inherit;
    transition-duration: inherit;
}

.ba-item-simple-gallery  .ba-gridbox-gallery-image > * {
    transition-delay: 0s !important;
}

.ba-item-field-simple-gallery .ba-gridbox-gallery-image {
    transition: opacity 0.3s linear;
}

.ba-item-field-simple-gallery .ba-gridbox-gallery-image:hover {
    opacity: .85;
}

.ba-gridbox-gallery-image {
    background-position: center;
    background-size: cover;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
}

.ba-gridbox-gallery-image img {
    max-height: 100%;
    opacity: 0;
}

.simple-gallery-masonry-layout .ba-gridbox-gallery-image img {
    max-height: initial;
}