.cp-featured-boxes {
    width: 1248px;
    max-width: 100%;
    margin: 0 auto 80px;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;

    display: grid;
    gap: clamp(14px, 1.9vw, 24px);

    grid-template-columns: minmax(0, 2.085fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, clamp(180px, 22.6vw, 282px));
}

.cp-featured-box--large {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.cp-featured-box--small:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.cp-featured-box--small:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
}

.cp-featured-box--wide {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.cp-featured-box {
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: #f3eee8;
}

.cp-featured-box__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cp-featured-box__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .45s ease;
}

.cp-featured-box:hover .cp-featured-box__image {
    transform: scale(1.04);
}

.cp-featured-box__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(18px, 2.9vw, 36px);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .62),
        rgba(0, 0, 0, .18) 45%,
        rgba(0, 0, 0, 0)
    );
    color: #fff;
}

.cp-featured-box__title {
    margin: 0;
    color: #fff;
    font-family: var(--cp-font-heading);
    font-weight: 300;
    line-height: 1;
    text-transform: uppercase;
}

.cp-featured-box--large .cp-featured-box__title,
.cp-featured-box--wide .cp-featured-box__title {
    font-size: clamp(32px, 3.85vw, 48px);
}

.cp-featured-box--small .cp-featured-box__title {
    font-size: clamp(20px, 2.2vw, 24px);
}

.cp-featured-box__subtitle {
    /* margin-top: 8px; */
    color: #fff;
    font-family: var(--cp-font-body);
    font-weight: 400;
    line-height: 1;
}

.cp-featured-box--small .cp-featured-box__subtitle {
    font-size: clamp(14px, 1.45vw, 16px);
}

.cp-featured-box--wide .cp-featured-box__subtitle,
.cp-featured-box--large .cp-featured-box__subtitle {
    font-size: clamp(18px, 1.95vw, 24px);
}

.cp-featured-box__badge {
    position: absolute;
    top: clamp(16px, 2.25vw, 28px);
    left: clamp(16px, 2.25vw, 28px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: clamp(26px, 2.4vw, 30px);
    padding: 0 clamp(12px, 1.45vw, 18px);
    background: var(--cppink);
    color: #fff;
    font-family: var(--cp-font-body);
    font-size: clamp(0.56rem, 0.9vw, 0.69rem);
    font-weight: 400;
    letter-spacing: clamp(1px, 0.16vw, 2px);
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .cp-featured-boxes {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 20px;
    }

    .cp-featured-box,
    .cp-featured-box--large,
    .cp-featured-box--small,
    .cp-featured-box--wide {
        min-height: 285px;
        grid-column: auto;
        grid-row: auto;
    }

    .cp-featured-box__overlay {
        padding: 24px;
    }

    .cp-featured-box__title {
        font-size: 30px !important;
    }

    .cp-featured-box__subtitle {
        font-size: 18px !important;
    }

    /*.cp-featured-box__badge {
        top: 22px;
        left: 22px;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        min-height: 120px;
        height: auto;
        padding: 14px 10px;
    } */
}
