.vfg {
    --vfg-red: #d52027;
    --vfg-dark: #101828;
    --vfg-radius: 14px;
    width: 100%;
    margin: 48px auto;
}

.vfg__title {
    margin: 0 0 32px;
    color: var(--vfg-dark);
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1px;
}

.vfg__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(270px, 1fr) minmax(300px, 1fr);
    gap: 10px;
}

.vfg-card {
    position: relative;
    min-width: 0;
    min-height: 270px;
    overflow: hidden;
    border-radius: var(--vfg-radius);
    background: #5f5147;
    isolation: isolate;
}

.vfg-card--left {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.vfg-card--top {
    grid-column: 2 / span 2;
    grid-row: 1;
}

.vfg-card--bottom-left {
    grid-column: 2;
    grid-row: 2;
}

.vfg-card--bottom-right {
    grid-column: 3;
    grid-row: 2;
}

.vfg-card__media,
.vfg-card__media img,
.vfg-card__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vfg-card__media {
    z-index: -3;
    overflow: hidden;
}

.vfg-card__media img {
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.vfg-card:hover .vfg-card__media img {
    transform: scale(1.075);
}

.vfg-card__overlay {
    z-index: -2;
    background: linear-gradient(
        180deg,
        rgba(14, 10, 7, 0.08) 0%,
        rgba(14, 10, 7, 0.22) 42%,
        rgba(14, 10, 7, 0.74) 100%
    );
}

.vfg-card--top .vfg-card__overlay {
    background: linear-gradient(90deg, rgba(14, 10, 7, 0.66) 0%, rgba(14, 10, 7, 0.38) 50%, rgba(14, 10, 7, 0.25) 100%);
}

.vfg-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: inherit;
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 26px;
}

.vfg-card--top .vfg-card__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.vfg-card__copy {
    min-width: 0;
}

.vfg-card__eyebrow {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vfg-card__title {
    margin: 0;
    max-width: 720px;
    color: #fff;
    font-size: clamp(24px, 2.1vw, 36px);
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.vfg-card__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.vfg-card__button:hover {
    transform: translateY(-2px);
}

.vfg-card__button--red {
    background: var(--vfg-red);
    color: #fff !important;
}

.vfg-card__button--red:hover {
    background: #bb1c22;
}

.vfg-card__button--white {
    background: #fff;
    color: #3b2d25 !important;
}

.vfg-card__button--white:hover {
    background: #f6f1ec;
}

@media (max-width: 1199.98px) {
    .vfg__grid {
        grid-template-rows: minmax(230px, 1fr) minmax(260px, 1fr);
    }

    .vfg-card__content {
        padding: 26px;
    }

    .vfg-card__button {
        padding-inline: 20px;
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .vfg {
        margin: 34px auto;
    }

    .vfg__title {
        margin-bottom: 22px;
        font-size: 30px;
    }

    .vfg__grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .vfg-card,
    .vfg-card--left,
    .vfg-card--top,
    .vfg-card--bottom-left,
    .vfg-card--bottom-right {
        width: 100%;
        min-height: 330px;
    }

    .vfg-card--top .vfg-card__content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .vfg-card__content {
        padding: 26px 22px;
        gap: 22px;
    }

    .vfg-card__title {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vfg-card__media img,
    .vfg-card__button {
        transition: none;
    }

    .vfg-card:hover .vfg-card__media img {
        transform: none;
    }
}

.vfg-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vfg-card--linked .vfg-card__content {
    pointer-events: none;
}

.vfg-card--linked .vfg-card__button {
    pointer-events: auto;
}

.vfg-card__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
    border-radius: var(--vfg-radius);
}
