.cfrrhh {
    --accent-color: #FCB32F;
}

.cfrrhh__overlay {
    position: relative;
    aspect-ratio: 431 / 404;
}

.cfrrhh__overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 30px 50px 24px;
    z-index: 2;
    height: 100%;
}

.cfrrhh__overlay::before {
    z-index: 1;
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(/wp-content/plugins/cf-rr-home-hero/assets/mobile.svg);
    background-size: contain;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
}

.cfrrhh__title {
    z-index: 2;
    color: #fff;
    font-size: 52px;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -2px;
}

.cfrrhh__subtitle {
    z-index: 2;
    display: none;
}

.cfrrhh__media {
    position: relative;
    margin-top: -40px;
    aspect-ratio: 430 / 285;
}

.cfrrhh__media img {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    object-position: center;
}

.cfrrhh__media img.is-active {
    display: block;
}

.cfrrhh__caption {
    font-size: 14px;
    line-height: 1.3;
    color: #707070;
}

.cfrrhh__bar {
    display: flex;
    padding: 12px 24px;
    align-items: center;
    gap: 15px;
}

.cfrrhh__progress {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.cfrrhh__progress-item {
    width: 8px;
    height: 8px;
    background-color: #e3e3e3;
    border-radius: 100%;
    cursor: pointer;
}

.cfrrhh__progress-item.is-active {
    background-color: #707070;
}

.cfrrhh__footer {
    background-color: var(--accent-color);
    color: #000;
    font-size: 16px;
    line-height: 1.3;
    padding: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .cfrrhh__view {
        max-width: 1225px;
        margin: 0 auto;
        position: relative;
        aspect-ratio: 1440 / 570;
    }

    .cfrrhh__overlay {
        position: absolute;
        aspect-ratio: auto;
        top: 0;
        bottom: 0;
        right: 0;
        aspect-ratio: 836 / 543;
    }

    .cfrrhh__overlay-content {
        padding: 0 50px 30px 30px;
        gap: 10px;
    }

    .cfrrhh__overlay::before {
        background-image: url(/wp-content/plugins/cf-rr-home-hero/assets/desktop.svg);
        background-position: bottom right;
    }

    .cfrrhh__title {
        font-size: 65px;
    }

    .cfrrhh__subtitle {
        display: block;
        align-self: flex-end;
        font-size: 18px;
        line-height: 1.3;
        max-width: 280px;
    }

    .cfrrhh__media {
        position: absolute;
        top: 20px;
        left: 0;
        bottom: 0;
        width: 63%;
        margin-top: 0;
        aspect-ratio: auto;
    }
    
    .cfrrhh__media img {
        display: none;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .cfrrhh__bar {
        max-width: 1225px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    .cfrrhh__footer {
        display: none;
    }
}