/* Loaded last on Studio pages. Match the header's boxed frame and gutters. */
.site-main {
    --studio-frame: var(--site-content-inline-size, min(100%, 1440px));
    --studio-gutter: clamp(24px, 4vw, 80px);
    --studio-edge: max(var(--studio-gutter), calc((100% - var(--studio-frame)) / 2 + var(--studio-gutter)));
    --studio-banner: radial-gradient(circle at 76% 40%, rgba(72, 242, 251, .12), transparent 27%),
        radial-gradient(circle at 91% 27%, rgba(232, 103, 234, .11), transparent 24%),
        linear-gradient(180deg, #070c13, #060a10);
}

.studio-shell,
.electronics-shell,
.studio-category-shell,
.maps-final-cta .electronics-guide-card,
.citymap-shell,
.elementor-3d-citymap .citymap-designer-wrap > .studio-container,
.elementor-3d-gear > .e-con-boxed > .e-con-inner,
.elementor-3d-citymap > .e-con-boxed > .e-con-inner,
.elementor-3d-schilder > .e-con-boxed > .e-con-inner,
.elementor-3d-chromalayer > .e-con-boxed > .e-con-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--studio-frame);
    margin-inline: auto;
    padding-inline: var(--studio-gutter);
}

/* Full-width atmosphere; artwork stays sharp within the central frame. */
.electronics-hero,
.studio-category-hero {
    width: 100%;
    max-width: none;
    background: var(--studio-banner);
}

.electronics-hero > img,
.studio-category-hero > img,
.maps-hero > picture {
    inset-inline: 0;
    width: 100%;
    max-width: var(--studio-frame);
    margin-inline: auto;
}

.electronics-hero > img,
.studio-category-hero > img {
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.electronics-hero-shade,
.studio-category-hero-shade {
    inset-inline: 0;
}

.electronics-hero-content,
.studio-category-hero-content {
    margin-left: var(--studio-edge);
    width: min(690px, calc(100% - 2 * var(--studio-gutter)));
}

/* Catalog and product heroes keep the complete model visible beside the copy. */
.maps-place-hero.electronics-shell {
    max-width: none;
    padding-inline: var(--studio-edge);
    background: var(--studio-banner);
}

.maps-hero-caption {
    right: var(--studio-edge);
}

/* Generator heroes retain shared-hero.css's rounded frame and grid.
   Keep their outer background plain; catalog heroes use --studio-banner. */
.elementor-3d-gear > .hero-outer,
.elementor-3d-citymap > .hero-outer,
.elementor-3d-schilder > .hero-outer,
.elementor-3d-chromalayer > .hero-outer {
    background: #060a10;
}

@media (max-width: 1024px) {
    .site-main { --studio-gutter: 32px; }
}

@media (max-width: 767px) {
    .site-main { --studio-gutter: 16px; }

    .electronics-hero-content,
    .studio-category-hero-content {
        width: 100%;
        margin-left: 0;
        padding-inline: var(--studio-edge);
    }

    .electronics-hero-content { padding-top: 66.6667%; }
    .maps-hero .electronics-hero-content { padding-top: 75%; }
    .maps-hero-caption { margin-inline: var(--studio-gutter); }
}
