.block-33 {width: 33.3333%;}
.display--inline-top {display: inline-block;vertical-align: top;}

.gallery-wrap.type-one {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-img-wrap {
    display: block;
    overflow: hidden;
    position: relative;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-img-wrap:hover {
    transform: scale(0.95);
}
.gallery-img-wrap a {
    display: block;
    position: relative;
    width: 100%;
}
.gallery-img-wrap img {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    height: 100%;
    width: 100%;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-img-wrap:hover img {
    transform: translate(-50%, -50%) scale(1.05);
}
.gallery-caption {
    display: block;
    margin: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    background: #fff5;
    padding: 5px 10px;
    font-size: 12px;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-img-wrap:hover > .gallery-caption {
    transform: translateY(0%);
}

.type-two .gallery-wrap-two:nth-child(2n) a {
    padding-top: 120%;
}
.type-two .gallery-wrap-two:nth-child(2n+1) a {
    padding-top: 80%;
}