/* User controls load after component CSS and before a child theme. */
html body.wpc-movie-shell .wpc-brand-text,
html body.wpc-movie-shell #movie-drawer .wpc-brand-text {
    font-family: var(--design-brand-font, Manrope, system-ui, sans-serif) !important;
    font-size: var(--design-brand-size, 24px) !important;
    font-weight: var(--design-brand-weight, 700) !important;
    font-style: var(--design-brand-style, normal) !important;
    font-synthesis: style;
    letter-spacing: -.035em !important;
}
html body.wpc-movie-shell.wpc-brand-decoration-plain .wpc-brand-text::after,
html body.wpc-movie-shell.wpc-brand-decoration-plain #movie-drawer .wpc-brand-text::after {
    display: none !important;
    content: none;
}
html body.wpc-movie-shell.wpc-brand-decoration-underline .wpc-brand-text::after,
html body.wpc-movie-shell.wpc-brand-decoration-underline #movie-drawer .wpc-brand-text::after {
    content: "";
    display: block !important;
    width: 1.8em;
    height: .12em;
    margin: .2em auto 0;
    border-radius: 1em;
    background: currentColor;
    transform: none;
}
html body.wpc-movie-shell :is(.movie-header, .wpc-floating-header, .wpc-kacang-header) .custom-logo {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-width: min(var(--design-logo-width, 200px), 100%) !important;
    max-height: var(--design-logo-height, 36px) !important;
    object-fit: contain;
}
html body.wpc-movie-shell :is(.movie-header, .wpc-floating-header, .wpc-kacang-header) .custom-logo-link {
    min-width: 0;
    max-width: min(var(--design-logo-width, 200px), 100%);
}
@media (max-width: 1023px) {
    html body.wpc-movie-shell .wpc-brand-text,
    html body.wpc-movie-shell #movie-drawer .wpc-brand-text {
        font-size: var(--design-brand-mobile, 18px) !important;
    }
    html body.wpc-movie-shell :is(.movie-header, .wpc-floating-header, .wpc-kacang-header) .custom-logo {
        max-width: min(var(--design-logo-mobile-width, 200px), 100%) !important;
        max-height: var(--design-logo-mobile-height, 36px) !important;
    }
    html body.wpc-movie-shell :is(.movie-header, .wpc-floating-header, .wpc-kacang-header) .custom-logo-link {
        max-width: min(var(--design-logo-mobile-width, 200px), 100%);
    }
}

/* Only explicitly configured image wrappers get these rules. Videos keep their own ratio.
   Important declarations override fixed dimensions in legacy theme layouts. */
html body.wpc-movie-shell .wpc-image-frame[class] {
    display: block !important;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: var(--wpc-image-ratio) !important;
    overflow: hidden;
}
html body.wpc-movie-shell .wpc-image-frame:not(.wpc-coverflow__card) {
    position: relative;
}
html body.wpc-movie-shell .wpc-image-frame[class] > :is(img, svg) {
    position: absolute !important;
    inset: 0;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    object-position: center;
}
html body.wpc-movie-shell .wpc-image-frame.wpc-image-ratio-auto > :is(img, svg) {
    position: static !important;
    height: auto !important;
    object-fit: contain;
    transform: none !important;
}
/* Stretched rows must yield to the chosen image ratio, including mobile overrides. */
body.wpc-custom-loop-ratio .wpc-loop-grid .wpc-loop-trigger {
    height: auto;
    align-self: start;
}
body.wpc-custom-loop-ratio .wpc-loop-grid.wpc-loop-spotlight .wpc-loop-card {
    height: auto !important;
    align-self: start;
}
