/**
 * Wonder Theme Editorial Bento Banner Grid Styles
 * Exact replica of Nook / Wonder Shopify Theme Bento Section
 */

.wonder-bento-section {
    padding: 32px 0 72px 0;
    position: relative;
    background-color: transparent;
    scroll-margin-top: 130px;
}

/* =============================================================
   EDITORIAL BENTO GRID LAYOUT SYSTEM
   ============================================================= */

/* Default Grid Wrapper */
.bento-grid-wrapper {
    display: grid;
    grid-template-columns: 1.42fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

/* 1. Left Featured Layout (1 Large Left [spans 2 rows] + 2 Stacked Right) */
.bento-grid-wrapper.layout-left-featured {
    grid-template-columns: 1.42fr 1fr;
    grid-template-rows: repeat(2, minmax(270px, 1fr));
}
.bento-grid-wrapper.layout-left-featured .bento-card-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 560px;
}
.bento-grid-wrapper.layout-left-featured .bento-card-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    min-height: 270px;
}
.bento-grid-wrapper.layout-left-featured .bento-card-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 270px;
}
.bento-grid-wrapper.layout-left-featured.ratio-equal {
    grid-template-columns: 1fr 1fr;
}
.bento-grid-wrapper.layout-left-featured.ratio-wide-left {
    grid-template-columns: 1.85fr 1fr;
}

/* 2. Right Featured Layout (Inverted Bento: 2 Stacked Left + 1 Large Right) */
.bento-grid-wrapper.layout-right-featured {
    grid-template-columns: 1fr 1.42fr;
    grid-template-rows: repeat(2, minmax(270px, 1fr));
}
.bento-grid-wrapper.layout-right-featured .bento-card-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    min-height: 270px;
}
.bento-grid-wrapper.layout-right-featured .bento-card-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    min-height: 270px;
}
.bento-grid-wrapper.layout-right-featured .bento-card-3 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    min-height: 560px;
}
.bento-grid-wrapper.layout-right-featured.ratio-equal {
    grid-template-columns: 1fr 1fr;
}
.bento-grid-wrapper.layout-right-featured.ratio-wide-left {
    grid-template-columns: 1fr 1.85fr;
}

/* 3. Three Equal Columns (Side-by-Side Vertical Cards) */
.bento-grid-wrapper.layout-three-columns {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
}
.bento-grid-wrapper.layout-three-columns .bento-card {
    min-height: 480px;
    height: 100%;
}

/* 4. Top Featured (1 Panoramic Hero Top + 2 Columns Below) */
.bento-grid-wrapper.layout-top-featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}
.bento-grid-wrapper.layout-top-featured .bento-card-1 {
    grid-column: 1 / -1;
    min-height: 380px;
}
.bento-grid-wrapper.layout-top-featured .bento-card-2,
.bento-grid-wrapper.layout-top-featured .bento-card-3 {
    min-height: 280px;
}

/* 5. Bottom Featured (2 Columns Above + 1 Panoramic Hero Bottom) */
.bento-grid-wrapper.layout-bottom-featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
}
.bento-grid-wrapper.layout-bottom-featured .bento-card-1,
.bento-grid-wrapper.layout-bottom-featured .bento-card-2 {
    min-height: 280px;
}
.bento-grid-wrapper.layout-bottom-featured .bento-card-3 {
    grid-column: 1 / -1;
    min-height: 380px;
}

/* 6. 4-Card 2x2 Balanced Grid (2 Rows x 2 Columns) */
.bento-grid-wrapper.layout-grid-2x2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(280px, 1fr));
}
.bento-grid-wrapper.layout-grid-2x2 .bento-card {
    min-height: 280px;
}

/* 7. Asymmetric 4-Card (1 Large Left + 3 Cards Right) */
.bento-grid-wrapper.layout-asymmetric-4 {
    grid-template-columns: 1.42fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(270px, 1fr));
}
.bento-grid-wrapper.layout-asymmetric-4 .bento-card-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 560px;
}
.bento-grid-wrapper.layout-asymmetric-4 .bento-card-2 {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    min-height: 270px;
}
.bento-grid-wrapper.layout-asymmetric-4 .bento-card-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 270px;
}
.bento-grid-wrapper.layout-asymmetric-4 .bento-card-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    min-height: 270px;
}

/* =============================================================
   IMAGE FIT & POSITION ADJUSTMENT OPTIONS
   ============================================================= */
.bento-card .bento-img,
.elementor-widget-oralyze-editorial-bento .bento-img,
.bento-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    display: block !important;
    transform: scale(1.001);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    will-change: transform;
}

/* Fit Options */
.fit-cover .bento-img,
.bento-card.fit-cover .bento-img {
    object-fit: cover !important;
}
.fit-contain .bento-img,
.bento-card.fit-contain .bento-img {
    object-fit: contain !important;
}
.fit-fill .bento-img,
.bento-card.fit-fill .bento-img {
    object-fit: fill !important;
}
.fit-scale-down .bento-img,
.bento-card.fit-scale-down .bento-img {
    object-fit: scale-down !important;
}
.fit-none .bento-img,
.bento-card.fit-none .bento-img {
    object-fit: none !important;
}

/* Position Options */
.pos-center .bento-img,
.bento-card.pos-center .bento-img {
    object-position: center center !important;
}
.pos-top .bento-img,
.bento-card.pos-top .bento-img {
    object-position: top center !important;
}
.pos-bottom .bento-img,
.bento-card.pos-bottom .bento-img {
    object-position: bottom center !important;
}
.pos-left .bento-img,
.bento-card.pos-left .bento-img {
    object-position: center left !important;
}
.pos-right .bento-img,
.bento-card.pos-right .bento-img {
    object-position: center right !important;
}
.pos-top-left .bento-img,
.bento-card.pos-top-left .bento-img {
    object-position: top left !important;
}
.pos-top-right .bento-img,
.bento-card.pos-top-right .bento-img {
    object-position: top right !important;
}
.pos-bottom-left .bento-img,
.bento-card.pos-bottom-left .bento-img {
    object-position: bottom left !important;
}
.pos-bottom-right .bento-img,
.bento-card.pos-bottom-right .bento-img {
    object-position: bottom right !important;
}

/* =============================================================
   CONTENT ALIGNMENT HELPERS
   ============================================================= */
.valign-top .bento-content-box {
    justify-content: flex-start !important;
}
.valign-center .bento-content-box {
    justify-content: center !important;
}
.valign-bottom .bento-content-box {
    justify-content: flex-end !important;
}

.align-left .bento-content-box {
    align-items: flex-start !important;
    text-align: left !important;
}
.align-center .bento-content-box {
    align-items: center !important;
    text-align: center !important;
}
.align-right .bento-content-box {
    align-items: flex-end !important;
    text-align: right !important;
}

/* Scrim Overlays */
.scrim-disabled .bento-scrim-overlay {
    display: none !important;
}

/* Individual Card Container */
.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a1a;
    isolation: isolate;
}

.bento-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Media Background & Smooth Zoom */
.bento-media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bento-card .bento-img,
.elementor-widget-oralyze-editorial-bento .bento-img,
.bento-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    display: block !important;
    transform: scale(1.001);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    will-change: transform;
}

.bento-card:hover .bento-img {
    transform: scale(1.055);
}

/* Scrim Overlays for High Legibility */
.bento-scrim-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    transition: background 0.4s ease, opacity 0.4s ease;
}

.scrim-top-left {
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.65) 0%,
        rgba(15, 15, 15, 0.35) 45%,
        rgba(15, 15, 15, 0.25) 100%
    );
}

.scrim-center {
    background: rgba(15, 15, 15, 0.35);
}

.bento-card:hover .scrim-center {
    background: rgba(15, 15, 15, 0.24);
}

.bento-card:hover .scrim-top-left {
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.58) 0%,
        rgba(15, 15, 15, 0.28) 45%,
        rgba(15, 15, 15, 0.20) 100%
    );
}

/* Content Layouts */
.bento-content-box {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
}

.bento-card-large .bento-content-box,
.bento-card-1 .bento-content-box {
    padding: 48px 44px;
}

.bento-card-small .bento-content-box,
.bento-card-2 .bento-content-box,
.bento-card-3 .bento-content-box,
.bento-card-4 .bento-content-box {
    padding: 36px 32px;
}

/* Left Card: Large & Aligned Top-Left */
.bento-card-large {
    min-height: 560px;
    height: 100%;
}

.content-top-left {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px 44px;
    text-align: left;
}

/* Right Column: 2 Stacked Cards */
.bento-column-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.bento-card-small {
    flex: 1;
    min-height: 270px;
    position: relative;
}

.content-center {
    align-items: center;
    justify-content: center;
    padding: 36px 32px;
    text-align: center;
}

/* Typography */
.bento-title {
    color: #ffffff;
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin: 0 0 14px 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.bento-title-large {
    font-size: clamp(1.85rem, 2.5vw, 2.35rem);
    line-height: 1.15;
    max-width: 420px;
}

.bento-title-small {
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.25;
    max-width: 360px;
}

/* CTA Link & Underline Effect */
.bento-cta-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.bento-cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s ease, opacity 0.35s ease;
    transform-origin: left;
}

.bento-card:hover .bento-cta-link::after {
    transform: scaleX(1.06);
    height: 2px;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 991px) {
    .bento-grid-wrapper,
    .bento-grid-wrapper.layout-left-featured,
    .bento-grid-wrapper.layout-right-featured,
    .bento-grid-wrapper.layout-three-columns,
    .bento-grid-wrapper.layout-top-featured,
    .bento-grid-wrapper.layout-bottom-featured,
    .bento-grid-wrapper.layout-grid-2x2,
    .bento-grid-wrapper.layout-asymmetric-4 {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 16px !important;
    }

    .bento-grid-wrapper .bento-card,
    .bento-grid-wrapper .bento-card-1,
    .bento-grid-wrapper .bento-card-2,
    .bento-grid-wrapper .bento-card-3,
    .bento-grid-wrapper .bento-card-4 {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 280px !important;
    }

    .bento-grid-wrapper .bento-card-large,
    .bento-grid-wrapper.layout-left-featured .bento-card-1,
    .bento-grid-wrapper.layout-right-featured .bento-card-3,
    .bento-grid-wrapper.layout-top-featured .bento-card-1,
    .bento-grid-wrapper.layout-bottom-featured .bento-card-3,
    .bento-grid-wrapper.layout-asymmetric-4 .bento-card-1 {
        min-height: 420px !important;
    }

    .content-top-left,
    .bento-card-large .bento-content-box,
    .bento-card-1 .bento-content-box {
        padding: 36px 28px;
    }

    .content-center,
    .bento-card-small .bento-content-box,
    .bento-card-2 .bento-content-box,
    .bento-card-3 .bento-content-box,
    .bento-card-4 .bento-content-box {
        padding: 28px 24px;
    }

    .bento-column-stacked {
        gap: 16px;
    }

    .bento-card-small {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .wonder-bento-section {
        padding: 24px 0 48px 0;
    }

    .bento-grid-wrapper .bento-card,
    .bento-grid-wrapper .bento-card-1,
    .bento-grid-wrapper .bento-card-2,
    .bento-grid-wrapper .bento-card-3,
    .bento-grid-wrapper .bento-card-4 {
        min-height: 240px !important;
    }

    .bento-grid-wrapper .bento-card-large,
    .bento-grid-wrapper.layout-left-featured .bento-card-1,
    .bento-grid-wrapper.layout-right-featured .bento-card-3 {
        min-height: 340px !important;
    }

    .content-top-left,
    .bento-card-large .bento-content-box,
    .bento-card-1 .bento-content-box {
        padding: 28px 20px;
    }

    .bento-title-large {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .bento-card-small {
        min-height: 220px;
    }

    .content-center,
    .bento-card-small .bento-content-box,
    .bento-card-2 .bento-content-box,
    .bento-card-3 .bento-content-box,
    .bento-card-4 .bento-content-box {
        padding: 24px 18px;
    }

    .bento-title-small {
        font-size: 1.3rem;
    }
}
