.justified-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--jg-gap, 4px);
    opacity: 0;
    height: 100vh;
    overflow: hidden;
    transition: opacity 0.35s ease-in;
}

.justified-gallery.gallery-ready {
    opacity: 1;
    height: auto;
}

.justified-gallery .jg-item {
    overflow: hidden;
    position: relative;
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    transition: width 0.3s ease-out, height 0.3s ease-out;
}
  
.justified-gallery .jg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}