.mhs3d-experience {
    width: 100%;
    background: #f6f4ef;
    color: #161616;
}

.mhs3d-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 40px) clamp(18px, 3vw, 34px);
}

.mhs3d-kicker,
.mhs3d-eyebrow {
    margin: 0 0 10px;
    color: #6a6259;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mhs3d-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: 0;
}

.mhs3d-hero p:not(.mhs3d-kicker) {
    max-width: 620px;
    margin: 18px 0 0;
    color: #4a4742;
    font-size: 17px;
    line-height: 1.6;
}

.mhs3d-viewer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
    max-width: 1180px;
    min-height: min(720px, 82vh);
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.mhs3d-stage {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    background: #dedbd4;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.mhs3d-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 540px;
    background: radial-gradient(circle at 50% 24%, #f7f4ed 0, #ddd9cf 50%, #aaa59c 100%);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.mhs3d-canvas:active {
    cursor: grabbing;
}

.mhs3d-stage::before,
.mhs3d-stage::after {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    padding: 10px 12px;
    border-radius: 4px;
    background: rgba(23, 23, 23, 0.86);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    pointer-events: none;
}

.mhs3d-experience.is-loading .mhs3d-stage::before {
    content: "Loading 3D model...";
}

.mhs3d-experience.has-viewer-error .mhs3d-stage::after {
    content: "The 3D viewer could not load. Please refresh the page or try another browser.";
}

.mhs3d-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #dedbd4;
}

.mhs3d-stage:fullscreen .mhs3d-canvas {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
}

.mhs3d-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(22px, 4vw, 44px);
    border-left: 1px solid rgba(0, 0, 0, 0.14);
    background: #f6f4ef;
    user-select: text;
}

.mhs3d-panel h2,
.mhs3d-locked-intro h2,
.mhs3d-empty h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1;
    letter-spacing: 0;
}

.mhs3d-panel p[data-mhs3d-description],
.mhs3d-locked-intro p {
    margin: 18px 0 0;
    color: #4a4742;
    font-size: 15px;
    line-height: 1.7;
}

.mhs3d-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mhs3d-actions button,
.mhs3d-empty a,
.mhs3d-card {
    border: 1px solid #171717;
    border-radius: 6px;
    background: transparent;
    color: #171717;
    font: inherit;
}

.mhs3d-actions button,
.mhs3d-empty a {
    min-height: 42px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
}

.mhs3d-actions button[aria-pressed="true"],
.mhs3d-actions button:hover,
.mhs3d-empty a:hover {
    background: #171717;
    color: #ffffff;
}

.mhs3d-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 40px);
}

.mhs3d-card {
    display: grid;
    grid-template-rows: 170px auto;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.mhs3d-card.is-active,
.mhs3d-card:not(.is-locked):hover {
    border-color: #171717;
    box-shadow: 0 0 0 2px #171717 inset;
}

.mhs3d-card.is-locked {
    cursor: default;
    background: rgba(255, 255, 255, 0.48);
}

.mhs3d-card-preview {
    display: grid;
    place-items: center;
    min-width: 0;
    background: #ddd8cf;
    color: #6a6259;
    font-size: 13px;
    text-transform: uppercase;
}

.mhs3d-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mhs3d-card-body {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
}

.mhs3d-card-body strong,
.mhs3d-card-body h3 {
    margin: 0;
    color: #171717;
    font-size: 17px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mhs3d-card-body span,
.mhs3d-card-body p {
    margin: 0;
    color: #56514a;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mhs3d-password-form {
    margin-top: 6px;
}

.mhs3d-password-form p {
    display: grid;
    gap: 8px;
}

.mhs3d-password-form input[type="password"] {
    width: 100%;
    min-height: 38px;
    border: 1px solid #9b958d;
    border-radius: 4px;
    background: #ffffff;
}

.mhs3d-password-form input[type="submit"] {
    min-height: 38px;
    border: 1px solid #171717;
    border-radius: 4px;
    background: #171717;
    color: #ffffff;
    cursor: pointer;
}

.mhs3d-locked-intro,
.mhs3d-empty {
    display: grid;
    align-content: center;
    gap: 16px;
    max-width: 1180px;
    min-height: 320px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 40px);
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.mhs3d-empty p {
    margin: 0;
    color: #4a4742;
}

.mhs3d-viewer-menu-item > a {
    border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
    .mhs3d-viewer {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mhs3d-stage,
    .mhs3d-canvas {
        min-height: 440px;
    }

    .mhs3d-panel {
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.14);
    }
}

@media (max-width: 560px) {
    .mhs3d-stage,
    .mhs3d-canvas {
        min-height: 360px;
    }

    .mhs3d-actions {
        display: grid;
    }

    .mhs3d-gallery {
        grid-template-columns: 1fr;
    }
}
.mhs3d-experience.is-walk-mode .mhs3d-canvas {
    cursor: crosshair;
}
