.home-front-layout {
    grid-template-areas: "lead sidebar" "sections sidebar";
    grid-template-rows: auto 1fr;
    row-gap: 0;
}

.home-front-lead {
    grid-area: lead;
}

.home-front-sections {
    grid-area: sections;
}

.home-news-sidebar {
    grid-area: sidebar;
}

.home-live,
.home-mobile-news-tabs {
    display: none;
}

.home-category-box {
    margin-top: 25px;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 12px;
}

.home-box-lead {
    grid-column: 1 / -1;
}

.front-page :is(.home-front-lead, .home-category-grid, .media-home-grid) :is(.story-card, .media-card) > .story-image {
    align-self: start;
    height: auto;
    aspect-ratio: 16 / 9;
}

.front-page .story-image:has(> img) {
    background: transparent;
}

.front-page .story-image > img,
.front-page .story-image:hover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.home-box-lead .story-tile h2 {
    font-size: clamp(20.199375px, 2.100735vw, 30.5235px);
}

.home-category-grid .story-meta {
    flex-wrap: wrap;
}

.home-category-more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid #cdcbc5;
    margin-top: 13px;
    padding: 8px;
    background: #f4f2ec;
    font: 700 12.285px/1.2 var(--sans);
}

.home-investigation-box .section-heading {
    padding: 6px 12px;
    background: #191613;
    color: #e1c491;
}

.home-investigation-soon {
    padding: 14px 16px;
    border-bottom: 2px solid var(--gold);
    background: #191613;
    color: #fff;
}

.home-investigation-soon h2 {
    font: 700 clamp(22.68px, 2.3625vw, 34.02px)/1.15 var(--serif);
    text-transform: uppercase;
}

.home-investigation-soon h2 span {
    color: #e1c491;
}

.home-sidebar-live {
    aspect-ratio: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    margin-bottom: 16px;
    gap: 8px;
    padding: 12px;
    text-align: center;
    background: #191613;
    border-bottom: 3px solid var(--gold);
    color: #fff;
}

.home-live-title {
    margin: 0;
    font: 700 clamp(17.01px, 2.03175vw, 32.13px)/1.12 var(--serif);
}

.home-live-title span {
    color: #e1c491;
}

.home-sidebar-live p {
    margin: 0;
    font: 13.23px/1.3 var(--sans);
}

.home-sidebar-live button {
    border: 1px solid #e1c491;
    padding: 7px 12px;
    color: #fff;
    background: transparent;
}

.video-promo-carousel {
    margin-top: 18px;
}

.video-promo-carousel .video-promo-banner {
    aspect-ratio: 3 / 2;
    background: linear-gradient(140deg, #1c1a16, #392e22);
}

.video-promo-carousel .video-promo-text strong {
    font-size: clamp(17.955px, 1.89vw, 26.46px);
}

.video-promo-controls {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 5px;
}

.video-promo-controls[hidden] {
    display: none;
}

.video-promo-controls button {
    padding: 4px 8px;
    font: 700 11.34px var(--sans);
    background: #f4f2ec;
    border: 1px solid #cdcbc5;
}

.video-promo-controls button[aria-pressed="true"] {
    background: #222;
    color: #fff;
}

@media (min-width: 641px) {
    .front-page .home-front-lead .story-hero h2 {
        font-size: clamp(18.85275px, 2.423925vw, 36.80775px);
    }

    .front-page .home-front-lead .desktop-support .story-support h2 {
        font-size: clamp(14.364px, 1.25685vw, 17.955px);
    }

    .front-page .tile-row .story-tile h2,
    .front-page .home-box-story .story-tile h2 {
        font-size: clamp(16.1595px, 1.4364vw, 18.85275px);
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .home-front-layout {
        grid-template-areas: "lead" "highlights" "sections" "other";
        grid-template-rows: auto;
    }

    .front-page .home-news-sidebar {
        display: contents;
    }

    .home-sidebar-highlight,
    .home-sidebar-other {
        display: grid;
        grid-template-columns: minmax(175px, 30%) minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        border-top: 1px solid var(--line);
        margin-top: 14px;
        padding-top: 14px;
    }

    .home-sidebar-highlight {
        grid-area: highlights;
    }

    .home-sidebar-other {
        grid-area: other;
        grid-template-columns: minmax(0, 1fr) minmax(175px, 30%);
    }

    .home-sidebar-highlight .home-sidebar-live,
    .home-sidebar-other .latest-block,
    .home-sidebar-other .video-promo-carousel {
        margin: 0;
    }
}

@media (max-width: 640px) {
    .front-page .desktop-advert,
    .front-page .home-desktop-media-fallback {
        display: none;
    }

    .front-page .home-live,
    .front-page .home-mobile-news-tabs {
        display: block;
    }

    .front-page .mobile-support .story-support {
        grid-template-columns: min(34%, 154px) minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 8px 0;
    }

    .front-page .mobile-support .story-support h2 {
        font-size: clamp(14.364px, 3.9501vw, 20.64825px);
    }

    .front-page .mobile-support .story-support + .story-support {
        margin-top: 0;
    }

    .home-category-box,
    .home-live {
        margin-top: 26px;
    }

    .home-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        margin-top: 12px;
    }

    .home-box-lead {
        grid-column: 1 / -1;
    }

    .home-box-lead .story-tile h2 {
        font-size: clamp(18.85275px, 4.6683vw, 27.83025px);
    }

    .home-box-story .story-tile h2 {
        font-size: clamp(14.364px, 3.635835vw, 20.199375px);
    }

    .home-category-grid .story-meta {
        flex-wrap: wrap;
    }

    .home-live h2 {
        font-size: clamp(20.79px, 5.481vw, 30.24px);
        margin: 0 0 10px;
        padding-top: 12px;
        border-top: 2px solid #111;
    }

    .home-live-idle {
        min-height: 135px;
        display: grid;
        place-content: center;
        gap: 4px;
        text-align: center;
        color: white;
        background: #191613;
        border-bottom: 3px solid var(--gold);
        padding: 16px;
    }

    .home-live-idle strong {
        font: 700 clamp(22.68px, 7.0875vw, 38.745px) var(--serif);
        animation: gazzeta-lajv 5s ease-in-out infinite;
    }

    .home-live-idle strong span {
        color: var(--gold);
    }

    .home-live-idle p {
        margin: 0;
        font: 13.23px var(--sans);
    }

    @keyframes gazzeta-lajv {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }

    .home-mobile-news-tabs .news-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-live-idle strong {
        animation: none;
    }
}
