.gallery-template-swim-branding {
    & {
        /*--branding-card-width: 350px;*/
        /*--branding-card-height: 450px;*/
        /*--branding-grid-gap: 24px;*/
        --branding-card-width: clamp(1px, calc(350 / 1920 * 100vw), 350px);
        --branding-card-height: clamp(1px, calc(450 / 1920 * 100vw), 450px);
        --branding-grid-gap: clamp(1px, calc(24 / 1920 * 100vw), 24px);

        padding-top: clamp(1px, calc(120 / 1920 * 100vw), 120px);
        padding-bottom: clamp(1px, calc(165 / 1920 * 100vw), 165px);
    }


    .cards-wrapper {
        width: 100%;
    }

    .branding-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(1px, calc(350 / 1920 * 100vw), 350px)), clamp(1px, calc(350 / 1920 * 100vw), 350px)));
        justify-content: center;
        gap: var(--branding-grid-gap);
        width: 100%;
    }


    .item {
        position: relative;
        width: 100%;
        max-width: var(--branding-card-width);
    }

    .item.is-hidden {
        display: none;
    }

    .card-link {
        position: relative;
        display: block;
        width: 100%;
        overflow: hidden;
    }

    .branding-grid__image {
        display: block;
        width: 100%;
        aspect-ratio: 350 / 450;
        min-height: var(--branding-card-height);
        max-height: var(--branding-card-height);
        object-fit: cover;
    }

    .branding-grid__actions {
        display: flex;
        justify-content: center;
        margin-top: 80px;
    }


    .item.item_youtube:after {
        background: url("/_data/styly/img/youtube-play.png") 0 -60px no-repeat;
        content: "";
        height: 64px;
        width: 88px;
        position: absolute;
        left: calc(50% - 44px);
        top: calc(50% - 32px);
        pointer-events: none;
        opacity: 0.8;
    }

    .btn-default {
        padding-left: clamp(1px, calc(100 / 1920 * 100vw), 100px);
        padding-right: clamp(1px, calc(100 / 1920 * 100vw), 100px);
    }
}
