/* Final mobile viewport contract for the seven homepage entries. */
.world-brand.world-brand-image {
    display: grid;
    width: clamp(148px, 14vw, 206px);
    min-width: 148px;
    gap: 3px;
    padding: 8px 12px 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(18, 61, 73, .78);
    box-shadow: 0 12px 28px rgba(16, 50, 61, .16);
    backdrop-filter: blur(14px);
}

.world-brand.world-brand-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.world-brand.world-brand-image small {
    color: rgba(235, 255, 252, .84) !important;
    font-size: 8px;
    letter-spacing: .16em;
    text-align: center;
}

body.entry-snap-mode .entry-poster {
    height: 100% !important;
}

@media (max-width: 768px) {
    html {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        scroll-padding: 0;
        scroll-snap-type: y mandatory;
        overscroll-behavior-y: none;
    }

    body.entry-snap-mode {
        width: 100%;
        min-height: 100%;
        padding: 0 !important;
        overscroll-behavior-y: none;
    }

    body.entry-snap-mode .scroll-container {
        display: block !important;
        width: 100%;
        min-height: 0 !important;
        overflow: visible !important;
    }

    body.entry-snap-mode .scroll-container > .section,
    body.entry-snap-mode .section,
    body.community-stream.entry-snap-mode #resonance.entry-section,
    body.entry-snap-mode .home-section {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 100vh !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        overflow: hidden !important;
        scroll-margin: 0 !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        contain: layout paint;
    }

    @supports (height: 100dvh) {
        body.entry-snap-mode .scroll-container > .section,
        body.entry-snap-mode .section,
        body.community-stream.entry-snap-mode #resonance.entry-section,
        body.entry-snap-mode .home-section {
            min-height: 100dvh !important;
            height: 100dvh !important;
            max-height: 100dvh !important;
        }
    }

    body.entry-snap-mode .entry-poster,
    body.entry-snap-mode .entry-media,
    body.entry-snap-mode .entry-media picture,
    body.entry-snap-mode .entry-media img {
        inset: 0;
        width: 100%;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
    }

    body.entry-snap-mode .home-section .hero-content {
        min-height: 100vh !important;
        height: 100vh !important;
        max-height: 100vh !important;
        box-sizing: border-box;
    }

    @supports (height: 100dvh) {
        body.entry-snap-mode .home-section .hero-content {
            min-height: 100dvh !important;
            height: 100dvh !important;
            max-height: 100dvh !important;
        }
    }

    .world-brand.world-brand-image {
        width: 132px;
        min-width: 132px;
        padding: 7px 10px 6px;
    }

    .world-brand.world-brand-image small {
        font-size: 7px;
        letter-spacing: .08em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
}
