.c-filtgal {
    padding-block: 60px;
    @media (min-width: 63.75em) {
        margin-block: 80px;
    }

    .c-filtgal__title {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        text-transform: uppercase;
        color: var(--brand-1);
        margin-bottom: 40px;
        text-align: center;

        html.wf-tradegothicltstd-n7-active & {
            font-family: var(--font-tradeg);
        }
    }

    .c-filtgal__select-wrap {
        display: block;
        margin-bottom: 30px;
        padding: 0 20px;

        @media (min-width: 63.75em) {
            display: none;
        }
    }

    .c-filtgal__select {
        display: block;
        width: 100%;
        height: 56px;
        padding: 0 50px 0 24px;
        border: 2px solid var(--brand-1);
        border-radius: var(--radius-round);
        background-color: transparent;
        color: var(--brand-1);
        font-family: var(--font-tradeg);
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d2926' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 20px center;
        background-size: 16px;
    }

    .c-filtgal__filters {
        display: none;
        margin-bottom: 60px;
        align-items: center;
        gap: 0;

        @media (min-width: 63.75em) {
            display: flex;
        }

        .c-filtgal__filters-line {
            flex: 1;
            height: 0;
            border-top: 3px dashed var(--brand-1);
        }

        .c-filtgal__filters-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            padding: 0 20px;

            .c-filtgal__filter {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                height: 50px;
                padding: 10px 25px;
                border: 2px solid var(--brand-1);
                border-radius: var(--radius-round);
                background: transparent;
                color: var(--brand-1);
                font-family: var(--font-tradeg);
                font-size: 1.125rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                cursor: pointer;
                transition: background-color 0.25s ease, color 0.25s ease;
                white-space: nowrap;

                &:hover {
                    background-color: var(--brand-1);
                    color: #fff;
                }

                &.is_active {
                    background-color: var(--brand-1);
                    color: #fff;
                }
            }
        }
    }

    .c-filtgal__grid {
        width: 100%;
        display: grid;
        grid-template-columns: 100%;
        gap: 16px;

        @media (min-width: 43.75em) {
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        @media (min-width: 63.75em) {
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }
        
        .c-filtgal__col {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .c-filtgal__item--landscape,
        .c-filtgal__item--square,
        .c-filtgal__item--portrait {
            width: 100%;
        }
    }

    .c-filtgal__item {
        position: relative;
        border: 10px solid white;
        overflow: hidden;
        background-color: var(--brand-2);
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.20);
        transition: opacity 0.35s ease, transform 0.35s ease;

        &.is_fading {
            opacity: 0;
            transform: scale(0.95);
        }

        &.is_hidden {
            display: none;
        }

        &[data-cats=""] {
            cursor: pointer;
        }

        .c-filtgal__item-imgw,
        .c-filtgal__item-videow {
            position: relative;
            overflow: hidden;
            width: 100%;
            display: block;
        }

        .c-filtgal__item-img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        &.c-filtgal__item--landscape .c-filtgal__item-imgw,
        &.c-filtgal__item--landscape .c-filtgal__item-videow {
            aspect-ratio: 4 / 3;
        }

        &.c-filtgal__item--square .c-filtgal__item-imgw,
        &.c-filtgal__item--square .c-filtgal__item-videow {
            aspect-ratio: 1 / 1;
        }

        &.c-filtgal__item--portrait .c-filtgal__item-imgw,
        &.c-filtgal__item--portrait .c-filtgal__item-videow {
            aspect-ratio: 4 / 5;
        }

        .c-filtgal__item-img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        &.c-filtgal__item--landscape .c-filtgal__item-imgw,
        &.c-filtgal__item--landscape .c-filtgal__item-videow {
            aspect-ratio: 4 / 3;
        }

        &.c-filtgal__item--square .c-filtgal__item-imgw,
        &.c-filtgal__item--square .c-filtgal__item-videow {
            aspect-ratio: 1 / 1;
        }

        &.c-filtgal__item--portrait .c-filtgal__item-imgw,
        &.c-filtgal__item--portrait .c-filtgal__item-videow {
            aspect-ratio: 4 / 5;
        }

        .c-filtgal__item-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
            color: white;
            font-size: 0.875rem;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .c-filtgal__item-play {
            position: absolute;
            inset: 50% auto auto 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            display: flex;
            align-items: center;
            text-decoration: none;
            color: black;

            &:hover, &:focus {
                text-decoration: none;
            }

            .c-filtgal__play-icon {
                color: white;
                border-radius: var(--radius-round);
                background-color: var(--brand-1);
                outline: 1.5px solid var(--color-bg);
                outline-offset: -3px;
                font-size: 1rem;
                width: 40px;
                height: 40px;
                display: grid;
                place-content: center;
                transform: translateX(20px);
                transition: transform 0.3s ease;
            }

            .c-filtgal__play-text {
                font-family: var(--font-tradeg);
                background-color: var(--brand-3);
                border: 2px solid white;
                text-transform: uppercase;
                font-size: 1rem;
                font-weight: 700;
                padding-inline: 20px 5px;
                padding-block: 5px;
                white-space: nowrap;
                box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.30);
                color: var(--brand-1);
            }

            &:hover {
                .c-filtgal__play-icon {
                    transform: translateX(0);
                }
            }
        }

        &:hover {
            .c-filtgal__item-img {
                transform: scale(1.04);
            }
            .c-filtgal__item-caption {
                opacity: 1;
            }
        }

        .c-filtgal__item-play {
            opacity: 0.9;
            &:hover {
                transform: translate(-50%, -50%) scale(1.05);
                opacity: 1;
            }
        }
    }
}
