/*
 * T5 — Glamr Portfolio Style 1 compatibility.
 *
 * Native card chrome, hover treatment, title/category content and portfolio
 * button are owned by the licensed Glamr theme. VHL CSS only normalizes real
 * CMS media and the truthful Before/After variant.
 */

.gallery-section .pbmit-heading-subheading .pbmit-title {
    color: var(--pbmit-white-color);
}

.gallery-section .vhl-gallery-native-grid {
    row-gap: 30px;
}

.gallery-section
    .vhl-gallery-card
    .pbmit-featured-wrapper {
    overflow: hidden;
}

.gallery-section
    .vhl-gallery-card
    .pbmit-featured-wrapper
    > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.vhl-gallery-transformation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 100%;
    aspect-ratio: 4 / 5;
}

.vhl-gallery-transformation__figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.vhl-gallery-transformation__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vhl-gallery-transformation__figure figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin: 0;
    padding: 7px 11px;
    background: rgb(17 19 24 / 88%);
    color: var(--pbmit-white-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .gallery-section .vhl-gallery-native-grid {
        row-gap: 24px;
    }
}
