
/* DLFars Home — mobile hero + stable poster geometry, 2026-11-14
   Deliberately scoped to homepage elements; no desktop header/footer or slider JS overrides.
   This does not replace the site's legacy stylesheet. */

/* Poster images: reserve space before decode, without imposing section widths. */
body.home .dlf-v28-section .dlf-v28-cover > img,
body.home .dlf-v28-section .dlf-v28-cover > a > img,
body.home .dlf-v28-card .dlf-v28-cover > img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:363 / 545;
    object-fit:cover;
}

/* Keep existing desktop feature geometry intact. */
body.home .dlf-v28-feature .dlf-v28-backdrop img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

/* First-row hero has its own markup, not the feature row. */
body.home .dlfars-hero .dlfars-hero__image {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

@media (max-width: 767px) {
    /* Existing, server-rendered feature title is positioned above its image.
       No duplicated title and no JS DOM move (which would create CLS). */
    body.home .rowtitle.dlf-v28-featuretitle {
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        z-index:1;
        box-sizing:border-box;
        width:auto !important;
        height:auto !important;
        min-height:68px;
        margin:0 12px !important;
        padding:13px 16px !important;
        background:#191c23;
        border:1px solid rgba(230,190,129,.22);
        border-bottom:0;
        border-radius:14px 14px 0 0;
        text-align:right;
    }
    body.home .rowtitle.dlf-v28-featuretitle h1 {
        display:block !important;
        position:static !important;
        margin:0 !important;
        padding:0 !important;
        font-size:clamp(17px,4.5vw,22px) !important;
        line-height:1.55 !important;
        color:#f5e9d7;
        font-weight:800;
        text-align:right;
        overflow-wrap:anywhere;
    }
    body.home .rowtitle.dlf-v28-featuretitle + .dlf-v28-feature {
        display:flex !important;
        flex-direction:column !important;
        position:relative !important;
        width:auto !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 12px !important;
        padding:0 !important;
        overflow:hidden;
        border-radius:0 0 14px 14px;
    }
    body.home .rowtitle.dlf-v28-featuretitle + .dlf-v28-feature > .dlf-v28-featureposter {
        display:none !important;
    }
    body.home .rowtitle.dlf-v28-featuretitle + .dlf-v28-feature > .dlf-v28-backdrop {
        order:0;
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        flex:none !important;
        width:100% !important;
        height:auto !important;
        aspect-ratio:1440 / 665;
        margin:0 !important;
        overflow:hidden;
    }
    body.home .rowtitle.dlf-v28-featuretitle + .dlf-v28-feature > .dlf-v28-backdrop img {
        display:block;
        width:100% !important;
        height:100% !important;
        object-fit:cover;
    }
    body.home .rowtitle.dlf-v28-featuretitle + .dlf-v28-feature > .dlf-v28-featureinfo {
        order:1;
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        flex:none !important;
        width:100% !important;
        max-width:none !important;
        height:auto !important;
        min-height:0 !important;
        padding:12px 14px 16px !important;
        margin:0 !important;
        box-sizing:border-box;
        background:#1d2c43;
    }
    body.home .rowtitle.dlf-v28-featuretitle + .dlf-v28-feature > .dlf-v28-featureinfo > :not(.footerbox) {
        display:none !important;
    }
    body.home .dlf-v28-feature .footerbox {
        display:flex !important;
        flex-wrap:nowrap !important;
        gap:10px !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }
    body.home .dlf-v28-feature .footerbox > a {
        display:flex !important;
        flex:1 1 0 !important;
        align-items:center;
        justify-content:center;
        min-width:0;
        min-height:48px;
        margin:0 !important;
        padding:10px !important;
        box-sizing:border-box;
        position:relative !important;
        text-align:center;
    }

    /* Hide navigation arrows only inside this site's homepage carousels. */
    body.home .rowpostc.dlf-v28-section .swiper-button-prev,
    body.home .rowpostc.dlf-v28-section .swiper-button-next,
    body.home .dlfars-hero > .swiper-button-prev,
    body.home .dlfars-hero > .swiper-button-next {
        display:none !important;
    }
}

/* DLFars homepage compatibility: existing cached v2.7 feature rows. */
@media (max-width:767px) {
    body.home .rowtitle.dlf-v27-featuretitle,
    body.front-page .rowtitle.dlf-v27-featuretitle {
        display:block !important;
        visibility:visible !important;
        position:relative !important;
        inset:auto !important;
        top:auto !important;
        right:auto !important;
        bottom:auto !important;
        left:auto !important;
        transform:none !important;
        width:auto !important;
        height:auto !important;
        min-height:68px;
        margin:0 12px !important;
        padding:13px 16px !important;
        box-sizing:border-box;
        z-index:2;
        background:#191c23;
        border:1px solid rgba(230,190,129,.22);
        border-bottom:0;
        border-radius:14px 14px 0 0;
        text-align:right;
    }
    body.home .rowtitle.dlf-v27-featuretitle h1,
    body.front-page .rowtitle.dlf-v27-featuretitle h1 {
        position:static !important;
        transform:none !important;
        display:block !important;
        margin:0 !important;
        padding:0 !important;
        color:#f5e9d7 !important;
        font-size:clamp(17px,4.5vw,22px) !important;
        font-weight:800;
        line-height:1.55;
        text-align:right;
        overflow-wrap:anywhere;
    }
    body.home .rowtitle.dlf-v27-featuretitle + .dlf-v27-feature,
    body.front-page .rowtitle.dlf-v27-featuretitle + .dlf-v27-feature {
        display:flex !important;
        flex-direction:column !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        width:auto !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 12px !important;
        padding:0 !important;
        box-sizing:border-box;
        overflow:hidden;
        border-radius:0 0 14px 14px;
    }
    body.home .dlf-v27-feature > .dlf-v27-featurebg,
    body.front-page .dlf-v27-feature > .dlf-v27-featurebg {
        order:0;
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        flex:none !important;
        width:100% !important;
        height:auto !important;
        aspect-ratio:1440 / 665;
        padding:0 !important;
        margin:0 !important;
        overflow:hidden;
    }
    body.home .dlf-v27-feature > .dlf-v27-featurebg img,
    body.front-page .dlf-v27-feature > .dlf-v27-featurebg img {
        display:block !important;
        width:100% !important;
        height:100% !important;
        object-fit:cover;
    }
    body.home .dlf-v27-feature > .dlf-v27-featureinner,
    body.front-page .dlf-v27-feature > .dlf-v27-featureinner {
        order:1;
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 !important;
        padding:12px 14px 16px !important;
        box-sizing:border-box;
        background:#1d2c43;
    }
    body.home .dlf-v27-feature .dlf-v27-featureposter,
    body.front-page .dlf-v27-feature .dlf-v27-featureposter {
        display:none !important;
    }
    body.home .dlf-v27-feature .dlf-v27-featurecontent,
    body.front-page .dlf-v27-feature .dlf-v27-featurecontent {
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        width:100% !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box;
    }
    body.home .dlf-v27-feature .dlf-v27-featurecontent > :not(.dlf-v27-featureactions),
    body.front-page .dlf-v27-feature .dlf-v27-featurecontent > :not(.dlf-v27-featureactions) {
        display:none !important;
    }
    body.home .dlf-v27-feature .dlf-v27-featureactions,
    body.front-page .dlf-v27-feature .dlf-v27-featureactions {
        display:flex !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        flex-wrap:nowrap !important;
        gap:10px !important;
        width:100% !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
    }
    body.home .dlf-v27-feature .dlf-v27-featureactions > a,
    body.front-page .dlf-v27-feature .dlf-v27-featureactions > a {
        display:flex !important;
        position:relative !important;
        flex:1 1 0 !important;
        align-items:center;
        justify-content:center;
        min-width:0;
        min-height:48px;
        padding:10px !important;
        margin:0 !important;
        box-sizing:border-box;
        text-align:center;
    }
    body.home .rowpostc.dlf-v27-section .swiper-button-prev,
    body.home .rowpostc.dlf-v27-section .swiper-button-next,
    body.front-page .rowpostc.dlf-v27-section .swiper-button-prev,
    body.front-page .rowpostc.dlf-v27-section .swiper-button-next {
        display:none !important;
    }
}

/* ========================================================================
   DLFars homepage — actual DF75 slider + dlf-v28 backdrop compatibility
   2026-11-14. CSS-only, no JavaScript, no change to database/slider timing.
   ======================================================================== */

/* Backdrop rows: preserve geometry and two-image layering. */
body.home .dlf-v28-feature .rowimg.dlf-v28-backdrop,
body.front-page .dlf-v28-feature .rowimg.dlf-v28-backdrop {
    box-sizing:border-box;
    overflow:hidden;
}
body.home .dlf-v28-feature .rowimg.dlf-v28-backdrop > img,
body.front-page .dlf-v28-feature .rowimg.dlf-v28-backdrop > img {
    max-width:100%;
    object-fit:cover;
}

@media (max-width:767px) {
    /* Actual DF75 hero slider */
    body.home .df75-legacy-swiper.df75-hero .df75-slide,
    body.front-page .df75-legacy-swiper.df75-hero .df75-slide {
        display:grid !important;
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:auto auto auto;
        align-content:start;
        min-width:0;
        box-sizing:border-box;
    }

    body.home .df75-legacy-swiper.df75-hero .df75-slide > .df75-stage,
    body.front-page .df75-legacy-swiper.df75-hero .df75-slide > .df75-stage {
        grid-column:1;
        grid-row:2;
        display:block !important;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        width:100% !important;
        height:auto !important;
        aspect-ratio:1440 / 665;
        min-height:0 !important;
        margin:0 !important;
        overflow:hidden;
    }

    body.home .df75-legacy-swiper.df75-hero .df75-stage > .df75-hero__image,
    body.front-page .df75-legacy-swiper.df75-hero .df75-stage > .df75-hero__image {
        display:block !important;
        position:absolute !important;
        inset:0 !important;
        width:100% !important;
        height:100% !important;
        object-fit:cover;
    }

    body.home .df75-legacy-swiper.df75-hero .df75-hero__content,
    body.front-page .df75-legacy-swiper.df75-hero .df75-hero__content {
        display:contents !important;
    }

    body.home .df75-legacy-swiper.df75-hero .moviTitle,
    body.front-page .df75-legacy-swiper.df75-hero .moviTitle {
        grid-column:1;
        grid-row:1;
        display:flex !important;
        align-items:center;
        justify-content:flex-start;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        box-sizing:border-box;
        width:100% !important;
        height:auto !important;
        min-height:64px;
        margin:0 !important;
        padding:12px 16px !important;
        background:#191c23;
        border:1px solid rgba(230,190,129,.24);
        border-bottom:0;
        text-align:right;
        z-index:1;
    }

    body.home .df75-legacy-swiper.df75-hero .df75-hero__title,
    body.front-page .df75-legacy-swiper.df75-hero .df75-hero__title {
        display:block !important;
        position:static !important;
        inset:auto !important;
        transform:none !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        font-size:clamp(16px,4.3vw,21px) !important;
        line-height:1.6 !important;
        text-align:right !important;
        color:#f5e9d7 !important;
        text-shadow:none !important;
        white-space:normal !important;
        overflow-wrap:anywhere;
    }

    body.home .df75-legacy-swiper.df75-hero .df75-hero__button,
    body.front-page .df75-legacy-swiper.df75-hero .df75-hero__button {
        grid-column:1;
        grid-row:3;
        display:flex !important;
        align-items:center;
        justify-content:center;
        position:relative !important;
        inset:auto !important;
        transform:none !important;
        box-sizing:border-box;
        width:calc(100% - 28px) !important;
        min-height:48px;
        height:auto !important;
        margin:10px 14px 12px !important;
        padding:10px 14px !important;
    }

    body.home .df75-legacy-swiper.df75-hero .df75-hero__badge,
    body.home .df75-legacy-swiper.df75-hero .df75-hero__line,
    body.home .df75-legacy-swiper.df75-hero .df75-hero__description,
    body.front-page .df75-legacy-swiper.df75-hero .df75-hero__badge,
    body.front-page .df75-legacy-swiper.df75-hero .df75-hero__line,
    body.front-page .df75-legacy-swiper.df75-hero .df75-hero__description {
        display:none !important;
    }

    /* Hide only DF75 mobile side previews and old arrows. */
    body.home .df75-legacy-swiper.df75-hero > .df75-peek,
    body.front-page .df75-legacy-swiper.df75-hero > .df75-peek,
    body.home .df75-legacy-swiper.df75-hero > .df75-old-next,
    body.home .df75-legacy-swiper.df75-hero > .df75-old-prev,
    body.front-page .df75-legacy-swiper.df75-hero > .df75-old-next,
    body.front-page .df75-legacy-swiper.df75-hero > .df75-old-prev {
        display:none !important;
    }

    /* Existing v2.8 two-image backdrop rows */
    body.home .dlf-v28-feature .rowimg.dlf-v28-backdrop,
    body.front-page .dlf-v28-feature .rowimg.dlf-v28-backdrop {
        display:block !important;
        width:100% !important;
        height:auto !important;
        aspect-ratio:1440 / 665;
        position:relative !important;
        overflow:hidden;
    }

    body.home .dlf-v28-feature .rowimg.dlf-v28-backdrop > img,
    body.front-page .dlf-v28-feature .rowimg.dlf-v28-backdrop > img {
        position:absolute !important;
        inset:0 !important;
        width:100% !important;
        height:100% !important;
        object-fit:cover;
    }
}
