.dhm24-home-hero {
    --hero-content-left: max(72px, calc((100% - 1320px) / 2));
    --hero-content-top: 132px;
    --hero-title-size: clamp(42px, 4.2vw, 67px);
    --hero-lead-size: clamp(17px, 1.35vw, 21px);
    --hero-copy-width: min(500px, 49%);
    --hero-title-width: min(625px, 55%);
}

.hm-hero-wrap.dhm24-home-hero {
    width: 100% !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero > .hm-slide-content {
    position: absolute !important;
    inset: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0;
    padding: var(--hero-content-top) var(--hero-content-left) 70px !important;
    text-align: left !important;
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero > .hm-slide-content > :is(h1, h2) {
    max-width: var(--hero-title-width) !important;
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: var(--hero-title-size) !important;
    font-weight: 850 !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: break-word !important;
    hyphens: none;
    text-wrap: balance;
    text-shadow: 0 4px 24px #130b08b3 !important;
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero > .hm-slide-content > p {
    display: block !important;
    max-width: var(--hero-copy-width) !important;
    margin: 0 0 23px !important;
    color: #fff !important;
    font-size: var(--hero-lead-size) !important;
    font-weight: 500 !important;
    line-height: 1.52 !important;
    text-shadow: 0 2px 12px #130b08e6 !important;
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero > .hm-slide-content > .hm-video-badge {
    position: absolute !important;
    right: var(--hero-content-left);
    bottom: 45px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border-radius: 4px !important;
    background: #201812e6 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: .015em !important;
    text-transform: none !important;
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero .hm-video-buttons {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: var(--hero-copy-width) !important;
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero .hm-video-button {
    min-height: 44px !important;
    width: auto !important;
    padding: 10px 18px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
}

.dhm24-home-hero .hm-video-hero:not(:has(> .dhm24-ikea-hero.is-active)) .hm-video-overlay {
    background: linear-gradient(90deg, #120b08e0 0%, #120b08ba 26%, #120b087d 47%, #120b081a 66%, transparent 81%) !important;
    mask-image: linear-gradient(#000 43%, #0000 99%);
}

.dhm24-home-hero .hm-video-hero:has(> [data-content-index="2"].is-active) .hm-video-overlay {
    background: radial-gradient(ellipse 86% 58% at 4% 8%, #120b08a0 16%, #120b0850 51%, transparent 100%) !important;
}

.dhm24-home-hero .hm-image-slide[data-slide-index="4"] img,
.dhm24-home-hero .hm-image-slide[data-slide-index="5"] img {
    transform: none !important;
    object-position: 54% 56% !important;
}

.dhm24-home-hero .dhm24-ikea-hero .dhm24-ikea-hero-views {
    position: absolute;
    right: var(--hero-content-left);
    top: 121px;
    width: min(47%, 850px);
}

.dhm24-home-hero[data-hm-image-hero] .hm-video-hero > .dhm24-ikea-hero > h2 {
    max-width: var(--hero-copy-width) !important;
}

.dhm24-home-hero .dhm24-ikea-hero > .dhm24-ikea-hero-disclosure {
    position: absolute;
    right: var(--hero-content-left);
    bottom: 72px;
}

.dhm24-window-toggle:not([hidden]) {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.dhm24-window-toggle button {
    min-height: 44px;
    padding: 8px 14px;
    margin: 0;
    border: 1px solid #e7d7c6;
    border-radius: 5px;
    background: #251b16;
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.dhm24-window-toggle button[aria-pressed="true"] {
    background: #f4e7d7;
    color: #241710;
}

.dhm24-home-hero :is(button, a):focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}

@media (max-width: 1024px) {
    .dhm24-home-hero {
        --hero-content-left: 54px;
        --hero-title-size: clamp(38px, 5vw, 53px);
    }
}

@media (max-width: 767px) {
    .dhm24-home-hero {
        --hero-content-left: 20px;
        --hero-content-top: 54px;
        --hero-title-size: clamp(32px, 9.5vw, 50px);
        --hero-lead-size: 16px;
        --hero-copy-width: min(100%, 520px);
        --hero-title-width: var(--hero-copy-width);
    }

    .dhm24-home-hero .hm-video-hero:not(:has(> .dhm24-ikea-hero.is-active)) .hm-video-overlay {
        background: linear-gradient(180deg, #120b08e6 0%, #120b08bd 25%, #120b0861 47%, transparent 71%) !important;
    }

    .dhm24-home-hero[data-hm-image-hero] .hm-video-hero .hm-slider-arrow {
        top: auto !important;
        bottom: 35px !important;
        width: 44px !important;
        height: 44px !important;
        transform: none !important;
    }

    .dhm24-home-hero .hm-image-slide[data-slide-index="2"] img {
        object-position: 22% 64% !important;
    }

    .dhm24-home-hero .hm-image-slide[data-slide-index="4"] img {
        object-position: 69% 54% !important;
    }

    .dhm24-home-hero .hm-image-slide[data-slide-index="5"] img {
        object-position: 50% 55% !important;
    }

    .dhm24-home-hero .hm-image-slide[data-dhm24-room-photo] img {
        object-position: 90% 58% !important;
    }

    .dhm24-home-hero[data-hm-image-hero] [data-content-index="5"] > .hm-video-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dhm24-home-hero[data-hm-image-hero] .hm-video-hero > .hm-slide-content > .hm-video-badge {
        bottom: 85px;
    }

    .dhm24-home-hero .dhm24-ikea-hero > .dhm24-ikea-hero-controls:not([hidden]) {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .dhm24-home-hero .dhm24-ikea-hero .dhm24-ikea-hero-views {
        position: static;
        width: 100%;
        max-width: 370px;
    }

    .dhm24-home-hero .dhm24-ikea-hero-views img {
        max-height: 224px;
        object-position: left;
    }

    .dhm24-home-hero .dhm24-ikea-hero > .dhm24-ikea-hero-disclosure {
        position: static;
        margin: 6px 0 10px;
    }
}
