#search-drawer-popup {

    .mt-product-search__posts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;

        @media (min-width: 768px) {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        @media (min-width: 1140px) {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    .mt-product-search-post {
        border: 1px solid #dedede;
        background-color: white;
        display: flex;
        flex-direction: column;
        gap: 16px;
        transition: border-color .3s ease-in-out;
        overflow: hidden;

        &:hover {

            &.mt-product-search-post--post {
                border-color: #101010;
            }

            &:not(.mt-product-search-post--post) {
                .mt-product-search-post__image-wrapper {
                    img:not(.mt-product-search-post__logo) {
                        transform: scale(1.05);
                    }

                    &.mt-product-search-post__image-wrapper--has-overlay {
                        &:after {
                            background-color: rgba(0, 0, 0, .15);
                        }
                    }
                }
            }
        }
    }

    .mt-product-search-post__image-wrapper {
        aspect-ratio: 1/1;
        background-color: #dedede;
        position: relative;

        &.mt-product-search-post__image-wrapper--has-overlay {
            &:after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0, 0, 0, .3);
                transition: background-color .3s ease-in-out;
            }
        }

        img:not(.mt-product-search-post__logo) {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: transform .3s ease-in-out;
        }
    }

    .mt-product-search-post__logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 128px;
        max-width: 80%;
        z-index: 1;
        margin-bottom: 16px;

        @media (min-width: 768px) {
            max-height: 192px;
        }
    }

    .mt-product-search-post__image-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        color: white;
        font-weight: 300;
        z-index: 1;
        text-align: center;
        width: 100%;
        padding: 0 16px;

        @media (min-width: 768px) {
            font-size: 24px;
        }
    }

    .mt-product-search-post__content-wrapper {
        padding: 0 8px 8px;

        @media (min-width: 768px) {
            padding: 0 16px 16px;
        }
    }

    .mt-product-search-post__title {
        font-size: 13px;
        color: #4d4d4d;

        @media (min-width: 768px) {
            font-size: 15px;
        }
    }

    .mt-product-search-post--brand {
        .mt-product-search-post__image-wrapper {
            aspect-ratio: 372/465;
        }
    }

    .mt-tag {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 1;
        font-size: 12px;
        text-align: center;

        @media (min-width: 768px) {
            font-size: 14px;
        }

        &:not(.mt-tag--active) {
            background-color: white;
            cursor: pointer;
        }
    }
}