/* heading */
section.listing-heading {
    display: flex;
    align-items: center;
    gap: 10px;

    h2 {
        width: 100%;
        margin-bottom: 0;
        ;
    }

    button.toolbar-toggle,
    button.toolbar-toggle-mb {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 5px;
        user-select: none;
        border-radius: 0.625rem;
        padding: 0.4375rem 0.625rem;
        border: 1px solid var(--color-black);
        background-color: var(--color-white);
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s, filter 0.3s;

        &:hover {
            background-color: var(--primary-link-color-hover);
            color: var(--color-white);

            img {
                filter: brightness(0) invert(1);
            }
        }

        @media screen and (min-width: 799px) {
            &.toolbar-toggle-mb {
                display: none;
            }

        }
    }



    @media screen and (max-width: 800px) {
        & {
            padding-inline: 26px;
        }
    }

}

/* toolbar */
section.listing-toolbar {

    overflow: visible;
    position: relative;
    background: none;
    border: none;
    display: block;
    gap: 10px;
    width: 100%;

    form {
        display: flex;
        flex-direction: column;
        gap: 15px;

        >div {
            display: flex;
            gap: 10px;
        }

        legend {
            font-size: 1rem;
            font-weight: 700;
            text-indent: 15px;
            margin-bottom: 5px;
        }

        select {
            border-radius: 0.625rem;
            padding: 0.875rem 0.9375rem;
            padding-right: calc(0.9375rem + 35px);
            border: 1px solid var(--color-black);
            background-color: var(--secondary-background-color);
            box-sizing: border-box;
            appearance: none;
            font-family: inherit;
            font-size: inherit;
            color: var(--color-black);
            background-image: url(../img/icons/select_b.svg);
            background-repeat: no-repeat;
            background-position: calc(100% - 15px) center;
            background-size: 20px auto;
        }

        .filters {
            display: flex;
            flex: 1 1 auto;
            min-width: 0;

            .slider {
                display: flex;
                gap: 10px;
                overflow-y: hidden;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch;
                -ms-overflow-style: none;
                scrollbar-width: none;

                &::-webkit-scrollbar {
                    display: none;
                }

                label {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    user-select: none;
                    border-radius: 0.625rem;
                    padding: 0.875rem 0.9375rem;
                    border: 1px solid var(--color-black);
                    background-color: var(--secondary-background-color);
                    white-space: nowrap;
                    cursor: pointer;
                    transition: background-color 0.3s, color 0.3s, filter 0.3s;

                    span.mb {
                        display: none;
                    }

                    input {
                        display: none;
                    }

                    &:has(input:checked) {
                        background-color: var(--primary-link-color-hover);
                        color: var(--color-white);

                        img {
                            filter: brightness(0) invert(1);
                        }
                    }
                }
            }

            .prev,
            .next {
                position: absolute;
                padding: 12px;
                background: var(--primary-background-color);
                top: 50%;
                transform: translate(0, -50%);
                left: -5px;
                z-index: 1;
                border-radius: 100%;
                opacity: 0;
                transition: opacity 0.25s ease-out;

                div {
                    pointer-events: none;
                    width: 30px;
                    height: 30px;
                    border-radius: 100%;
                    border: 1px solid var(--font-color);
                    background: url(../img/icons/chevron-prev_b.svg) no-repeat 9px center;
                    background-size: 30% auto;
                }

            }

            .prev {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }

            .next {
                left: auto;
                right: -20px;
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;

                div {
                    background: url(../img/icons/chevron-next_b.svg) no-repeat 9px center;
                }
            }

            .prev.active,
            .next.active {
                pointer-events: auto;
                opacity: 1;
            }

            &.alt {
                background-color: var(--secondary-background-color);
                padding: 10px;
                border-radius: 0.625rem;
                padding: 5px 55px;
                border: 1px solid var(--color-black);

                &:has(legend) {
                    margin-top: 16px;

                    legend {
                        position: absolute;
                        margin-top: -30px;
                        left: 0px;
                    }
                }

                .slider {
                    align-items: center;

                    label {
                        padding: 0.75rem 0.875rem;
                        border: none;
                        flex-wrap: wrap;
                        justify-content: center;

                        img {
                            width: 31px;
                            height: 31px;
                            display: block;
                        }
                    }

                    .space {
                        display: block;
                        height: 50%;
                        width: 1px;
                        margin-block: 5px;
                        border-right: 1px solid var(--color-black);
                    }
                }

                .prev,
                .next {
                    padding: 0;
                    background: none;
                    left: 15px;

                    &:not(.active) {
                        opacity: 0.2;
                    }

                    div {
                        background-color: var(--color-yellow);
                    }
                }

                .next {
                    left: auto;
                    right: 15px;
                }

            }
        }

    }

    @media screen and (max-width: 800px) {

        &:not(.mobile-popover) {
            padding-inline: 10px;
            padding-block: 15px;

            form {

                >div {
                    flex-direction: column;
                }

                select {
                    width: 100%;
                    border-radius: 0.5rem;
                    font-size: 0.75rem;
                    padding: 0.4375rem 0.375rem;
                    background-position: calc(100% - 10px) center;
                    background-size: 17px auto;
                }

                .filters {

                    &:not(.alt) {

                        .slider {
                            gap: 10px;

                            label {
                                font-size: 0.75rem;
                                padding: 0.4375rem 0.375rem;

                                span:not(.mb) {
                                    display: none;
                                }

                                span.mb {
                                    display: inline;
                                }
                            }
                        }

                        .prev,
                        .next {
                            left: -6px;
                            padding: 6px;

                            div {
                                width: 20px;
                                height: 20px;
                                background-size: 30% auto;
                                background-position: center;
                            }
                        }

                        .next {
                            left: auto;
                            right: -6px;
                        }
                    }

                    &.alt {
                        background-color: var(--secondary-background-color);
                        padding: 10px;
                        border-radius: 0.625rem;
                        padding: 5px 35px;
                        border: 1px solid var(--color-black);

                        .slider {
                            align-items: stretch;
                            gap: 2px;

                            label {
                                padding: 0.3125rem 0.4375rem;
                                font-size: 0.75rem;
                                flex-direction: column;
                                text-align: center;
                                justify-content: start;
                                justify-items: center;

                                img {
                                    width: 15px;
                                    height: 15px;
                                    display: block;
                                }
                            }

                            .space {
                                display: block;
                                height: 100%;
                                width: 1px;
                                border-right: 1px solid var(--color-black);
                            }
                        }

                        .prev,
                        .next {
                            outline: none;
                            left: 8px;

                            >div {
                                width: 20px;
                                height: 20px;
                                background-size: 30% auto;
                                background-position: center;
                            }
                        }

                        .next {
                            left: auto;
                            right: 8px;
                        }

                    }
                }
            }

        }

        &.mobile-popover {
            display: none;
            transition: opacity 0.25s ease-out;

            .mobile {
                transition: opacity 0.25s ease-out, transform 0.25s ease-out;
            }
        }

        &.mobile-popover.active {
            position: fixed;
            display: block;
            z-index: 4000;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.519);

            .mobile {
                position: fixed;
                display: block;
                opacity: 1;
                transform: translateY(0);
                width: 100%;
                left: 0;
                top: auto;
                bottom: 0px;
                background-color: var(--secondary-background-color);
                padding: 27px;
                border-top-left-radius: var(--border-radius);
                border-top-right-radius: var(--border-radius);
            }

            .header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                width: 100%;
                border-bottom: 1px solid #000;
                padding-bottom: 22px;
                margin-bottom: 24px;
                ;

                h3 {
                    margin: 0;
                    width: 100%;
                    font-size: 1.25rem;
                    text-align: center;
                }

                button {
                    display: flex;
                    position: absolute;
                    align-items: center;
                    gap: 5px;
                    user-select: none;
                    border-radius: 0.625rem;
                    padding: 0.4375rem 0.625rem;
                    white-space: nowrap;
                    cursor: pointer;
                    transition: background-color 0.3s, color 0.3s, filter 0.3s;

                    &:hover {
                        img {
                            filter: invert(31%) sepia(96%) saturate(2522%) hue-rotate(249deg) brightness(100%) contrast(105%);
                        }
                    }
                }
            }

            form {

                >div {
                    display: grid;
                    gap: 24px;
                }

                select {
                    width: 100%;
                }

                .filters {
                    display: flex;
                    flex: 1 1 auto;
                    min-width: 0;
                    gap: 0;

                    .slider {
                        display: flex;
                        gap: 10px;
                        width: 100%;
                        flex-wrap: wrap;
                        overflow: visible;

                        label {
                            padding: 0.5rem 0.75rem;
                        }

                    }

                    .next,
                    .prev {
                        display: none;
                    }

                }

                >button {
                    margin: 0 auto auto 0;
                }

            }
        }

        @starting-style {
            &.mobile-popover.active {
                display: block;

                .mobile {
                    transform: translateY(100%);
                }
            }
        }

    }

}

/* listings */
section.listings {

    >a.loadmore {
        padding: 15px 60px;
        margin: 0 auto;
        display: flex;
        width: fit-content;
        border-radius: 50px;
        font-size: 1.125rem;
        margin-top: 40px;

        img {
            pointer-events: none;
        } 


        @media (any-hover: hover) {
            &:hover {
                img {
                    filter: grayscale(1.0) invert(1);
                }
            }
        }
    }


    .items {

        >hr {
            margin: 0;
            margin-block: 24px;

            &:first-child {
                display: none;
            }
        }

        .item {
            display: flex;
            gap: 40px;

            &:not(:first-child) {
                margin-top: 48px;
            }

            &:not(:first-child):after {
                position: absolute;
                content: '';
                display: block;
                width: 100%;
                height: 1px;
                top: -24px;
                background-color: var(--color-black);
            }

            >.feature {
                flex: 1 1 auto;
                width: 100%;
                aspect-ratio: 520 / 250;
                max-width: 520px;

                a {
                    position: relative;
                    display: block;
                    width: 100%;
                    height: 100%;
                }

                img,
                video {
                    display: block;
                    border-radius: 1.25rem;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                video {
                    aspect-ratio: 800 / 600;
                }

                .tag {
                    position: absolute;
                    top: 15px;
                    left: 15px;
                    background-color: var(--color-black);
                    padding: 4px 8px;
                    color: var(--color-yellow);
                    border-radius: 10px;
                    font-weight: 800;
                }
            }

            >.carousel {

                .slides {
                    display: flex;
                    max-width: 382px;
                    width: 100%;
                    height: 100%;
                    border-radius: 1.25rem;
                    overflow-y: hidden;
                    overflow-x: auto;
                    scroll-snap-type: x mandatory;
                    scroll-behavior: smooth;
                    -webkit-overflow-scrolling: touch;
                    -ms-overflow-style: none;
                    scrollbar-width: none;

                    &::-webkit-scrollbar {
                        display: none;
                    }

                    >a {
                        flex: 0 0 auto;
                        display: block;
                        width: 100%;
                        height: 100%;
                        background: #FF6600;
                        scroll-snap-align: center;
                        min-height: 0;

                        >img {
                            display: flex;
                            width: 100%;
                            height: 100%;
                            max-height: 500px;
                            aspect-ratio: 666 / 500;
                            object-fit: cover;
                        }
                    }

                    >img {
                        display: block;
                        scroll-snap-align: center;
                        max-width: 382px;
                        min-height: 300px;
                        height: 100%;
                        object-fit: cover;
                    }

                }

                .prev,
                .next {
                    position: absolute;
                    bottom: 15px;
                    opacity: 1;
                    cursor: pointer;
                    left: 15px;
                    width: 30px;
                    height: 30px;
                    border: 1px solid var(--primary-background-color);
                    border-radius: 100%;
                    background-position: center center;
                    background-size: 35% auto;
                    background: url(../img/icons/chevron-prev_y.svg) no-repeat 9px center;
                    background-size: 30% auto;
                    transition: opacity 0.25s ease-out;

                    &:hover {
                        filter: invert(31%) sepia(54%) saturate(1847%) hue-rotate(242deg) brightness(107%) contrast(113%);
                    }
                }

                .prev:not(.active),
                .next:not(.active) {
                    opacity: .3;
                    cursor: pointer;
                }

                .next {
                    left: auto;
                    right: 15px;
                    background-image: url(../img/icons/chevron-next_y.svg);
                    background-position: 10px center;
                }

                &:has(.slides > img:only-child),
                &:has(.slides > a:only-child) {

                    .prev,
                    .next {
                        display: none;
                    }
                }
            }

            >.content {
                flex: 1 1 auto;
                width: 60%;

                h3 {
                    font-size: 1.625rem;
                    text-wrap: pretty;
                }

                h3~.legend {
                    margin-top: 5px;
                }

                p {
                    font-size: 0.875rem;
                    line-height: 1.2rem;
                    text-wrap: pretty;
                }

                .legend {
                    margin: 0;
                    padding: 0;
                    gap: 5px 15px;
                    list-style: none;
                    display: flex;
                    flex-wrap: wrap;

                    li {
                        margin: 0;
                        padding: 0;
                        display: flex;
                        align-items: center;
                        gap: 3px;

                        .icon {
                            max-width: 22px;
                            max-width: 14px;
                        }
                    }
                }

                ul.legend+a {
                    margin-top: 15px;
                }

                >.buttons {
                    width: 100%;
                    display: flex;
                }

                .text {

                    &:has(p + a[data-site-action="content:readmore"]) {
                        p {
                            display: inline;
                            margin: 0;
                        }

                        margin-block: 1em;
                    }

                    a[data-site-action="content:readmore"] {
                        font-size: 14px;
                        font-weight: bold;
                        margin-block-end: 1rem;
                        white-space: nowrap;
                    }
                }
            }

            >.feature~.content {
                min-width: 375px;
            }
        }

    }

    .items-columns {

        display: grid;
        gap: 20px;
        grid-template-columns: 1fr 1fr;

        .item {
            flex-direction: column;
            padding: 30px;
            gap: 15px;

            &:nth-child(4n+2),
            &:nth-child(4n+3) {
                background-color: var(--list-background-color);
                border-radius: 1.25rem;
                overflow: hidden;
            }

            &:not(:first-child) {
                margin-top: 0;
            }

            &:not(:first-child):after {
                display: none;
            }

            >.feature {
                flex: 1 1 auto;
                max-width: none;

                a {
                    position: relative;
                    display: block;
                    width: 100%;
                    height: 100%;
                }

                img,
                video {
                    width: 100%;
                    min-height: auto;
                    aspect-ratio: 470 / 300;
                }

                .tag {
                    position: absolute;
                    top: 15px;
                    left: 15px;
                    background-color: var(--color-black);
                    padding: 4px 8px;
                    color: var(--color-yellow);
                    border-radius: 10px;
                    font-weight: 800;
                }
            }

            .content {
                display: flex;
                flex-direction: column;
                gap: 10px;
                min-width: auto;

                .text {
                    p:first-child {
                        margin-top: 0;
                    }

                    p:last-child {
                        margin-bottom: 4px;
                    }
                }
            }

        }

    }

    @media screen and (max-width: 800px) {

        >a.loadmore {
            margin-top: 1rem;
        }

        .items {

            .item {
                flex-direction: column;
                gap: 0px;

                &:after {
                    display: none !important;
                }

                &:not(:first-child) {
                    margin-top: 0px;
                }

                &:nth-child(even) {
                    background-color: var(--list-background-color);
                }

                >.feature {
                    width: 100%;
                    max-width: none;
                    padding: 26px;

                    a {
                        display: block;
                        width: 100%;
                    }

                    img,
                    video {
                        aspect-ratio: 373 / 252;
                        width: 100%;
                        max-width: none;
                        border-radius: 0.625rem;
                    }
                }

                >.content {
                    width: 100%;
                    min-width: none;
                    padding-inline: 26px;
                    padding-block: 10px 20px;
                }

            }
        }

        .items.mobile-stack {

            .item {
                display: grid;
                grid-template-columns: 26px 16px 1fr 16px 26px;
                grid-template-rows: 26px 20px auto 1fr 16px auto auto 26px;
                gap: 0;
                margin-top: 0 !important;
                padding-right: 0 !important;

                &:after {
                    display: none !important;
                }

                &:nth-child(even) {
                    background-color: var(--list-background-color);
                }

                >.carousel {
                    grid-area: 2 / 2 / 6 / 5;
                    max-width: none;
                    height: 400px;

                    .slides {
                        max-width: none;
                        width: 100%;
                        overflow: hidden;
                        border-radius: var(--border-radius-mobile);

                        &::after {
                            position: absolute;
                            content: ' ';
                            background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
                            width: 100%;
                            height: 60%;
                            bottom: 0px;
                            left: 0px;
                            pointer-events: none;
                        }

                        img {
                            max-width: none;
                            width: 100%;
                        }

                        img:not(:first-child) {
                            display: none;
                        }
                    }

                    .next,
                    .prev {
                        display: none;
                    }

                }

                >.content {
                    display: contents;

                    h3 {
                        grid-area: 3 / 3;
                        font-size: 0;

                        a {
                            background-color: var(--primary-background-color);
                            text-decoration: none;
                            padding: 2px 8px;
                            border-radius: 10px;
                            font-size: 1rem;
                            font-weight: 800;
                        }
                    }

                    .text {
                        grid-area: 6 / 3;
                    }

                    .legend {
                        pointer-events: none;
                        grid-area: 4 / 3;
                        z-index: 1;
                        color: var(--color-white) !important;
                        align-content: end;

                        li:first-child {
                            width: 100%;

                            strong {
                                color: var(--primary-color);
                                text-decoration: underline;
                                text-decoration-thickness: 1px;
                                text-underline-offset: 3px;
                            }

                            img {
                                filter: invert(89%) sepia(96%) saturate(7351%) hue-rotate(350deg) brightness(100%) contrast(99%) !important;
                            }
                        }

                        li {
                            img {
                                filter: brightness(0) invert(1) !important;
                            }
                        }

                    }

                    >a {
                        grid-area: 7 / 3;
                        margin-top: 0 !important;
                        margin: 0 auto auto 0;
                    }
                }

            }
        }

        .items-columns {

            display: grid;
            gap: 20px;
            grid-template-columns: 1fr;

            .item {
                flex-direction: column;
                padding: 0px;
                gap: 0px;

                &:nth-child(4n+2),
                &:nth-child(4n+3) {
                    background: none;
                    border-radius: 0;
                    overflow: visible;
                }

                &:nth-child(even) {
                    background-color: var(--list-background-color);
                }

                >.feature {

                    img,
                    video {
                        aspect-ratio: 373 / 300;
                    }
                }

                .content {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    min-width: auto;
                }

                .buttons {
                    margin-left: 0;
                    ;
                }

            }

        }
    }

    @media screen and (max-width: 450px) {

        .items {
            .item {
                >.feature {
                    padding: 16px;
                }
            }
        }

        .items.mobile-stack {
            .item {
                grid-template-columns: 16px 16px 1fr 16px 16px;
                grid-template-rows: 16px 20px auto 1fr 16px auto auto 16px;
            }
        }
    }

    .grid {

        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;

        .item {

            display: flex;
            flex-direction: column;
            justify-content: flex-end;

            h3 {
                font-size: clamp(1.125rem, calc(-0.875rem + 4vw), 1.625rem);
                margin: 0;
            }

            .content {
                flex: 1 1 auto;
                height: 100%;

                p {
                    margin-block: 0.313rem;
                    font-size: clamp(0.875rem, calc(0.375rem + 1vw), 1rem);
                }

            }

            .img {
                display: grid;
                grid-template-columns: 16px 1fr 16px;
                grid-template-rows: 16px 1fr 16px;
                flex: 0 0 auto;
                margin-top: 0.625rem;

                border-radius: var(--border-radius);
                overflow: hidden;

                a {
                    display: flex;
                    grid-area: 1 / 1 / 4 / 4;
                }

                a>img {
                    width: 100%;
                    aspect-ratio: 520 / 300;
                    min-height: 244px;
                    object-fit: cover;
                }

                .legend {
                    pointer-events: none;
                    grid-area: 2 / 2 / 3 / 3;
                    align-content: flex-end;
                    margin: 0;
                    padding: 0;
                    gap: 5px 15px;
                    list-style: none;
                    display: flex;
                    flex-wrap: wrap;
                    z-index: 100;
                    color: #FFF;
                    font-size: 1rem;

                    li {
                        margin: 0;
                        padding: 0;
                        display: flex;
                        align-items: center;
                        gap: 3px;

                        &.single {
                            flex: 1 1 auto;
                            width: 100%;
                        }

                        .icon {
                            max-width: 22px;
                            max-width: 14px;
                        }
                    }
                }

                &:has(.legend)::after {
                    position: absolute;
                    pointer-events: none;
                    content: ' ';
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
                    width: 100%;
                    height: 60%;
                    bottom: 0px;
                    left: 0px;
                }

            }

            >a {
                margin: 15px auto 0 0;
            }
        }

        @media screen and (max-width: 800px) {

            & {
                grid-template-columns: 1fr;
                gap: 26px;
                padding: 0;

                .item {

                    h3 {
                        margin-inline: 16px;
                    }

                    .content {
                        margin-inline: 16px;

                        p:last-child {
                            margin-bottom: 0;
                        }
                    }

                    .img {

                        .legend {
                            font-size: 0.875rem;
                            gap: 5px 8px;

                            li {

                                .icon {
                                    max-width: 16px;
                                    max-width: 16px;
                                }
                            }
                        }
                    }

                }

            }

        }

        @media screen and (max-width: 450px) {
            & {
                gap: 16px;

            }
        }

    }

    .masonry {
        position: relative;
        display: block;
        width: 100%;

        &::after {
            content: "";
            clear: both;
            display: table;
        }


        .masonry-sizer {
            width: calc(33% - 7px);
        }

        .item {
            float: left;
            margin: 0;
            margin-bottom: 0.9375rem;
            border-radius: 1.25rem;
            width: calc(33% - 7px);
            min-width: 0;
            min-height: 0;

            a {
                border-radius: 1.25rem;
                display: grid;
                grid-template-columns: 16px 1fr 16px;
                grid-template-rows: 16px auto 1fr auto 16px;
                text-decoration: none;
                overflow: hidden;

                &:has(h1)::before {
                    position: absolute;
                    content: ' ';
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
                    width: 100%;
                    height: 60%;
                    bottom: 0px;
                    left: 0px;
                }

                >img,
                >video {
                    display: block;
                    width: 100%;
                    height: auto;
                    grid-area: 1 / 1 / 6 / 4;
                    pointer-events: none;

                }

                >video {
                    height: 300px;
                    object-fit: cover;
                }

                h1 {
                    grid-area: 2 / 2 / 3 / 3;
                    font-size: 1.125rem;
                    margin-right: auto;
                    font-weight: 600;
                    color: var(--color-white);
                    background-color: var(--color-blue);
                    padding: clamp(5.008px, calc(-34.992px + 5vw), 15.008px) clamp(0.938rem, calc(-0.312rem + 2.5vw), 1.25rem);
                    border-radius: clamp(0.625rem, calc(-9.375rem + 20vw), 3.125rem);
                    z-index: 1;
                }

                ul.legend {
                    grid-area: 4 / 2 / 5 / 3;
                    margin: 0;
                    padding: 0;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 10px;
                    color: var(--color-white);
                    font-size: clamp(0.875rem, calc(0.375rem + 1vw), 1rem);
                    z-index: 1;

                    li {
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        white-space: nowrap;
                        img.icon {
                            filter: brightness(0) invert(1);
                        }
                    }
                }

            }
        }

        @media screen and (max-width: 800px) {
            & {
                display: grid;
                grid-auto-columns: 1fr 1fr;
                grid-auto-rows: auto;
                height: auto !important;
                grid-gap: 10px;
                grid-auto-flow: dense;

                .masonry-sizer {
                    display: none;
                }

                .item {
                    position: relative !important;
                    width: 100% !important;
                    top: 0 !important;
                    left: 0 !important;
                    margin-bottom: 0;
                    grid-column: 1 / 3;


                    a {
                        height: 100%;

                        >img,
                        >video {
                            max-height: 500px;
                            object-fit: cover;
                            height: 100%;
                        }
                    }
                }

                .item:nth-of-type(3n+2) {
                    grid-column: 1 / 2;
                }

                .item:nth-of-type(4n+3) {
                    grid-column: 2 / 3;
                }
            }
        }
    }
}