.halloween_banner {
    block-size: 430px;
    color: #fff;
    position: relative;
    display: flex;
    background-color: #191526;
    border: 1px solid #dedede;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-inline-size: 1370px;
    inline-size: 100%;
    margin-inline: auto;
    margin-block-start: 24px;
    border-radius: 40px;
    overflow: hidden;

    .halloween_banner_media {
        z-index: 0;
        position: absolute;
        inset-block: 0;
        inset-inline-start: 50%;
        block-size: 100%;
        aspect-ratio: 683 / 430;
        transform: translateX(-50%);
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
        mask-composite: intersect;

        .halloween_banner_poster,
        .halloween_banner_video {
            position: absolute;
            inset: 0;
            display: block;
            inline-size: 100%;
            block-size: 100%;
            object-fit: cover;
        }

        .halloween_banner_video {
            opacity: 0;
            transition: opacity 0.4s ease;

            &.is-playing {
                opacity: 1;
            }
        }
    }

    .container {
        display: flex;
        justify-content: space-between;
        z-index: 1;

        .halloween_banner_left {
            display: flex;
            flex-direction: column;
            justify-content: center;
            row-gap: 42px;
            max-inline-size: 33%;
            inline-size: 100%;

            .halloween_banner_title {
                font-family: Onest-Bold;
                font-size: 50px;
                line-height: 1;
                max-inline-size: 400px;
                text-transform: lowercase;

                &::first-letter {
                    text-transform: uppercase;
                }
            }

            .halloween_banner_text {
                color: #fff;
                font-family: Onest-Medium;
                font-size: 16px;
                line-height: normal;
                max-inline-size: 313px;
            }
        }

        .halloween_banner_right {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            max-inline-size: 30%;
            inline-size: 100%;
            gap: 40px;

            .frame {
                display: block;
                inline-size: 408px;
                cursor: pointer;
                transition: transform 0.4s ease;

                &:hover {
                    transform: scale(1.04);
                }

                .frame_img {
                    display: block;
                    inline-size: 100%;
                    block-size: auto;
                }
            }
        }

        .mobile {
            display: none;
        }
    }
}

@media (max-width: 1450px) {
    .halloween_banner {
        max-inline-size: calc(100% - 60px);
    }
}

@media (max-width: 1200px) {
    .halloween_banner {
        block-size: 200px;
        border-radius: 20px;

        .container {
            /* Tablet: edge-to-text gap equals text-to-video gap on each side;
               video width counts up to the middle of its faded edges */
            --halloween-video: calc(200px * 683 / 430 * 0.7);
            inline-size: 100%;
            max-inline-size: 100%;
            --halloween-left: 200px;
            --halloween-right: 217px;
            padding-inline-start: max(
                24px,
                calc((100% - var(--halloween-video)) / 4 - var(--halloween-left) / 2)
            );
            padding-inline-end: max(
                24px,
                calc((100% - var(--halloween-video)) / 4 - var(--halloween-right) / 2)
            );

            .halloween_banner_left {
                row-gap: 16px;
                max-inline-size: none;
                inline-size: auto;
                flex-shrink: 0;

                .halloween_banner_title {
                    font-size: 25px;
                    max-inline-size: 200px;
                }

                .halloween_banner_text {
                    font-size: 10px;
                    max-inline-size: 178px;
                }
            }

            .halloween_banner_right {
                gap: 21px;
                max-inline-size: none;
                inline-size: auto;
                flex-shrink: 0;

                .frame {
                    inline-size: var(--halloween-right);
                }
            }
        }
    }
}

@media (max-width: 1040px) {
    .halloween_banner {
        max-inline-size: calc(100% - 20px);
    }
}

@media (max-width: 820px) {
    .halloween_banner .container {
        --halloween-right: 180px;
    }
}

@media (max-width: 650px) {
    .halloween_banner {
        block-size: 226px;
        padding: 30px 29px;

        .halloween_banner_media {
            display: none;
        }

        .container {
            justify-content: center;
            flex-direction: column;
            gap: 16px;
            padding: 0;

            .halloween_banner_left {
                max-inline-size: 100%;
                row-gap: 16px;

                .halloween_banner_title {
                    max-inline-size: 191px;
                    font-size: 25px;
                    line-height: 1;
                }

                .halloween_banner_text {
                    max-inline-size: 263px;
                    font-size: 10px;
                    line-height: normal;
                }
            }

            .halloween_banner_right {
                align-items: flex-start;
                max-inline-size: 100%;

                .frame {
                    display: none;
                }

                .reviews_banner.reviews_banner {
                    flex-direction: row;
                    flex-wrap: nowrap;
                    justify-content: flex-start;
                    align-items: center;
                    column-gap: 6px;
                    margin: 0;
                    padding: 0;
                    max-inline-size: none;

                    .reviews_banner_body {
                        column-gap: 4px;

                        .reviews_banner_text {
                            font-family: Onest-SemiBold;
                            font-size: 14px;
                            line-height: 1;
                        }

                        .reviews_banner_average_rating {
                            flex: none;
                            align-items: center;
                            column-gap: 2px;
                            block-size: 14px;
                            padding-block: 0;
                            padding-inline: 3px;
                            font-family: Onest-SemiBold;
                            font-size: 8.5px;
                            line-height: 1;

                            img,
                            svg {
                                inline-size: 9px;
                                block-size: 9px;
                            }
                        }
                    }

                    .reviews_banner_links {
                        flex-direction: row;
                        column-gap: 5px;

                        a {
                            padding-block: 3px;
                            padding-inline: 6px;
                            border-radius: 4px;
                        }
                    }
                }
            }
        }
    }
}
