/* ICON BALI DIGITAL
   Phase 3 R2 Corrective v5 — Desktop + Mobile Hero Presentation Frame
   Dedicated last-loaded stylesheet to guarantee fresh browser fetch.
*/

@media (min-width: 992px) {
    .hero-slider .container.hero-wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 430px !important;
        column-gap: 56px !important;
        align-items: center !important;
    }

    .hero-slider .container.hero-wrapper .hero-left {
        width: auto !important;
        max-width: 760px !important;
        min-width: 0 !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right {
        width: 430px !important;
        height: 360px !important;
        min-width: 430px !important;
        min-height: 360px !important;
        max-width: 430px !important;
        max-height: 360px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        margin: 0 !important;
        justify-self: end !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 430px !important;
        max-height: 360px !important;
        object-fit: contain !important;
        object-position: center center !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 1400px) {
    .hero-slider .container.hero-wrapper {
        grid-template-columns: minmax(0, 1fr) 420px !important;
        column-gap: 48px !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right {
        width: 420px !important;
        height: 350px !important;
        min-width: 420px !important;
        min-height: 350px !important;
        max-width: 420px !important;
        max-height: 350px !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right > img {
        max-width: 420px !important;
        max-height: 350px !important;
    }
}


/* ============================================================
   MOBILE HERO PRESENTATION FRAME
   Keep slideshow artwork compact and secondary to content.
   ============================================================ */
@media (max-width: 991px) {
    .hero-slider .container.hero-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 28px !important;
    }

    .hero-slider .container.hero-wrapper .hero-left {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right {
        flex: 0 0 250px !important;
        width: 300px !important;
        height: 250px !important;
        min-width: 0 !important;
        min-height: 250px !important;
        max-width: min(78vw, 300px) !important;
        max-height: 250px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 250px !important;
        object-fit: contain !important;
        object-position: center center !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .hero-slider .container.hero-wrapper {
        gap: 22px !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right {
        flex-basis: 225px !important;
        width: 270px !important;
        height: 225px !important;
        min-height: 225px !important;
        max-width: min(76vw, 270px) !important;
        max-height: 225px !important;
    }

    .hero-slider .slide .container.hero-wrapper .hero-right > img {
        max-height: 225px !important;
    }
}
