



.sm27-media-page,
.sm27-media-page * {
    box-sizing:
        border-box;
}


.sm27-media-page {

    --media-red:
        #5A1725;

    --media-red-dark:
        #5A1725;

    --media-text:
        #111318;

    --media-muted:
        #6d7178;

    --media-line:
        rgba(17,19,24,.09);

    --media-glass:
        rgba(255,255,255,.73);

    --media-glass-strong:
        rgba(255,255,255,.88);

    --media-shadow:
        0 24px 80px
        rgba(15,18,24,.10);

    --media-shadow-soft:
        0 12px 35px
        rgba(15,18,24,.07);

    --media-ease:
        cubic-bezier(.22,1,.36,1);

    position:
        relative;

    isolation:
        isolate;

    overflow:
        clip;

    color:
        var(--media-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(134,31,42,.07),
            transparent 28%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(134,31,42,.05),
            transparent 25%
        ),

        linear-gradient(
            180deg,
            #f5f5f7 0%,
            #f1f1f3 100%
        );
}


.sm27-media-page a {

    text-decoration:
        none;
}






.sm27-media-hero {

    position:
        relative;

    isolation:
        isolate;

    overflow:
        hidden;

    min-height:
        clamp(
            380px,
            45vw,
            540px
        );

    display:
        flex;

    align-items:
        flex-end;

    background:
        #170607;

    border-radius:
        0 0 42px 42px;
}


.sm27-media-hero::before {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    z-index:
        -2;

    background:

        radial-gradient(
            circle at 72% 20%,
            rgba(255,255,255,.18),
            transparent 23%
        ),

        linear-gradient(
            180deg,
            rgba(7,0,0,.06) 0%,
            rgba(7,0,0,.12) 28%,
            rgba(7,0,0,.48) 63%,
            rgba(7,0,0,.94) 100%
        ),

        linear-gradient(
            90deg,
            rgba(84,4,13,.28),
            transparent 54%,
            rgba(0,0,0,.16)
        );
}


.sm27-media-hero-inner {

    position:
        relative;

    z-index:
        2;

    width:
        min(
            1200px,
            calc(100% - 56px)
        );

    margin:
        0 auto;

    padding:
        130px 0 54px;
}


.sm27-media-hero-glass {

    width:
        min(
            880px,
            100%
        );

    padding:
        32px 34px;

    border:
        1px solid
        rgba(255,255,255,.23);

    border-radius:
        28px;

    background:
        rgba(30,8,8,.32);

    box-shadow:
        0 24px 66px
        rgba(0,0,0,.25);

    backdrop-filter:
        blur(24px)
        saturate(145%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(145%);
}


.sm27-media-hero-kicker {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    min-height:
        33px;

    padding:
        0 13px;

    border:
        1px solid
        rgba(255,255,255,.25);

    border-radius:
        999px;

    background:
        rgba(255,255,255,.11);

    color:
        rgba(255,255,255,.94);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .11em;

    text-transform:
        uppercase;
}


.sm27-media-hero-title {

    margin:
        16px 0 0;

    color:
        #fff;

    font-size:
        clamp(
            2.5rem,
            5.2vw,
            4.8rem
        );

    font-weight:
        820;

    line-height:
        .95;

    letter-spacing:
        -.065em;
}


.sm27-media-hero-description {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.72;
}

.sm27-media-breadcrumbs {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        18px;

    color:
        rgba(255,255,255,.64);

    font-size:
        11px;

    font-weight:
        700;
}


.sm27-media-breadcrumbs a {

    color:
        #fff !important;
}






.sm27-filter-wrapper {

    padding:
        40px 0 20px;

    text-align:
        center;
}


.sm27-filter-container {

    display:
        inline-flex;

    padding:
        6px;

    border:
        1px solid
        rgba(255,255,255,.84);

    border-radius:
        999px;

    background:
        var(--media-glass);

    box-shadow:
        var(--media-shadow-soft),
        inset 0 1px 0
        rgba(255,255,255,.94);

    backdrop-filter:
        blur(20px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(135%);
}


.sm27-filter-container button {

    min-height:
        40px;

    padding:
        0 24px;

    border:
        none;

    border-radius:
        999px;

    background:
        transparent;

    color:
        var(--media-text);

    font-size:
        13px;

    font-weight:
        750;

    cursor:
        pointer;

    transition:
        all .3s
        var(--media-ease);
}


.sm27-filter-container button:hover,
.sm27-filter-container button.active {

    background:
        var(--media-red);

    color:
        #fff;

    box-shadow:
        0 6px 20px
        rgba(134,31,42,.25);
}






.sm27-media-section {

    position:
        relative;

    padding:
        30px 0 60px;
}


.sm27-media-container {

    width:
        min(
            1200px,
            calc(100% - 56px)
        );

    margin:
        0 auto;
}


.sm27-media-heading {

    text-align:
        center;

    margin-bottom:
        36px;
}


.sm27-media-heading h2 {

    margin:
        0;

    color:
        var(--media-text);

    font-size:
        clamp(
            1.8rem,
            3.2vw,
            2.6rem
        );

    font-weight:
        820;

    letter-spacing:
        -.04em;
}






.sm27-media-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap:
        20px;
}






.sm27-media-card {

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    overflow:
        hidden;

    border:
        1px solid
        rgba(255,255,255,.84);

    border-radius:
        26px;

    background:
        var(--media-glass);

    box-shadow:
        var(--media-shadow-soft),
        inset 0 1px 0
        rgba(255,255,255,.94);

    backdrop-filter:
        blur(22px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(135%);

    transition:

        transform .45s
        var(--media-ease),

        box-shadow .45s
        var(--media-ease),

        border-color .45s
        var(--media-ease),

        background .45s
        var(--media-ease);
}


.sm27-media-card::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    left:
        24px;

    right:
        24px;

    height:
        4px;

    background:

        linear-gradient(
            90deg,
            var(--media-red),
            var(--media-red-dark)
        );

    border-radius:
        0 0 4px 4px;

    z-index:
        15;
}


.sm27-media-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(255,255,255,.98);

    background:
        var(--media-glass-strong);

    box-shadow:
        var(--media-shadow),
        inset 0 1px 0
        rgba(255,255,255,.98);
}






.sm27-media-media-wrapper {

    position:
        relative;

    width:
        100%;

    height:
        220px;

    overflow:
        hidden;

    background:
        #e5e5ea;
}






.sm27-media-photo-link {

    position:
        relative;

    display:
        block;

    width:
        100%;

    height:
        100%;

    overflow:
        hidden;

    cursor:
        zoom-in;
}






.sm27-media-photo-link > img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

    border:
        none;

    transition:
        transform .65s
        var(--media-ease),

        filter .45s
        var(--media-ease);
}


.sm27-media-card:hover
.sm27-media-photo-link > img {

    transform:
        scale(1.07);
}






.sm27-media-photo-overlay {

    position:
        absolute;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0),
            rgba(0,0,0,.34)
        );

    opacity:
        0;

    transition:
        opacity .35s
        var(--media-ease);
}


.sm27-media-photo-link:hover
.sm27-media-photo-overlay {

    opacity:
        1;
}


.sm27-photo-glass-button {

    width:
        52px;

    height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,.50);

    border-radius:
        50%;

    background:
        rgba(255,255,255,.20);

    color:
        #fff;

    box-shadow:

        0 12px 30px
        rgba(0,0,0,.24),

        inset 0 1px 0
        rgba(255,255,255,.30);

    backdrop-filter:
        blur(16px)
        saturate(170%);

    -webkit-backdrop-filter:
        blur(16px)
        saturate(170%);

    font-size:
        16px;
}






.sm27-youtube-wrapper {

    position:
        relative;

    width:
        100%;

    height:
        220px;

    overflow:
        hidden;

    background:
        #0f0f0f;
}






.sm27-youtube-embed {

    position:
        absolute;

    inset:
        0;

    width:
        100%;

    height:
        100%;

    display:
        block;

    border:
        0;

    margin:
        0;

    padding:
        0;

    background:
        #111;

    z-index:
        1;

    pointer-events:
        none;
}


/*
 * Setelah user klik, iframe menjadi interaktif.
 */
.sm27-youtube-wrapper.is-playing
.sm27-youtube-embed {

    pointer-events:
        auto;
}






.sm27-youtube-cover {

    position:
        absolute;

    inset:
        0;

    z-index:
        5;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    cursor:
        pointer;

    background:

        linear-gradient(
            180deg,
            rgba(0,0,0,.02) 0%,
            rgba(0,0,0,.12) 45%,
            rgba(0,0,0,.42) 100%
        );

    transition:
        opacity .35s
        var(--media-ease),

        visibility .35s
        var(--media-ease);
}


.sm27-youtube-wrapper.is-playing
.sm27-youtube-cover {

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;
}






.sm27-youtube-play {

    position:
        absolute;

    left:
        50%;

    top:
        50%;

    width:
        68px;

    height:
        68px;

    transform:
        translate(
            -50%,
            -50%
        );

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,.48);

    border-radius:
        22px;

    background:
        rgba(255,255,255,.18);

    box-shadow:

        0 18px 50px
        rgba(0,0,0,.36),

        inset
        0 1px 0
        rgba(255,255,255,.28);

    backdrop-filter:
        blur(20px)
        saturate(175%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(175%);

    transition:
        transform .35s
        var(--media-ease),

        background .25s ease,

        border-color .25s ease,

        box-shadow .25s ease;
}


.sm27-youtube-cover:hover
.sm27-youtube-play {

    transform:
        translate(
            -50%,
            -50%
        )
        scale(
            1.08
        );

    background:
        rgba(255,255,255,.25);

    border-color:
        rgba(255,255,255,.68);

    box-shadow:

        0 22px 55px
        rgba(0,0,0,.42),

        inset
        0 1px 0
        rgba(255,255,255,.34);
}


.sm27-youtube-play::before {

    content:
        "";

    width:
        0;

    height:
        0;

    margin-left:
        5px;

    border-top:
        11px solid
        transparent;

    border-bottom:
        11px solid
        transparent;

    border-left:
        17px solid
        #fff;
}






.sm27-youtube-badge {

    position:
        absolute;

    left:
        14px;

    bottom:
        14px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    min-height:
        31px;

    padding:
        0 10px;

    border:
        1px solid
        rgba(255,255,255,.25);

    border-radius:
        999px;

    background:
        rgba(0,0,0,.38);

    color:
        #fff;

    font-size:
        10px;

    font-weight:
        800;

    box-shadow:
        inset
        0 1px 0
        rgba(255,255,255,.12);

    backdrop-filter:
        blur(15px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(15px)
        saturate(160%);
}


.sm27-youtube-svg {

    width:
        18px;

    height:
        18px;

    display:
        block;

    flex:
        0 0 auto;
}






.sm27-youtube-status {

    position:
        absolute;

    top:
        13px;

    left:
        13px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    min-height:
        28px;

    padding:
        0 9px;

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius:
        999px;

    background:
        rgba(0,0,0,.28);

    color:
        rgba(255,255,255,.9);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        .04em;

    backdrop-filter:
        blur(14px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(14px)
        saturate(160%);
}


.sm27-youtube-status-dot {

    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        #fff;

    opacity:
        .9;
}






.sm27-youtube-error {

    position:
        absolute;

    inset:
        0;

    z-index:
        8;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    text-align:
        center;

    background:
        #111;

    color:
        rgba(255,255,255,.72);

    font-size:
        12px;

    font-weight:
        650;
}


.sm27-youtube-error strong {

    display:
        block;

    margin-bottom:
        5px;

    color:
        #fff;

    font-size:
        13px;

    font-weight:
        800;
}






.sm27-media-content {

    padding:
        22px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    flex-grow:
        1;
}


.sm27-media-title {

    margin:
        0 0 12px;

    color:
        var(--media-text);

    font-size:
        15px;

    font-weight:
        800;

    line-height:
        1.4;
}


.sm27-media-date {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    color:
        var(--media-muted);

    font-size:
        12px;

    font-weight:
        700;
}


.sm27-media-date-icon {

    width:
        20px;

    height:
        20px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        7px;

    background:
        rgba(134,31,42,.07);

    color:
        var(--media-red);
}






.sm27-media-state {

    grid-column:
        1 / -1;

    padding:
        56px 24px;

    border:
        1px solid
        rgba(255,255,255,.82);

    border-radius:
        26px;

    background:
        var(--media-glass);

    box-shadow:
        var(--media-shadow-soft),
        inset 0 1px 0
        rgba(255,255,255,.94);

    color:
        var(--media-muted);

    text-align:
        center;

    backdrop-filter:
        blur(20px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(135%);
}


.sm27-media-state strong {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--media-text);

    font-size:
        16px;

    font-weight:
        800;
}






.sm27-photo-viewer {

    position:
        fixed;

    inset:
        0;

    z-index:
        999999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        24px;

    background:
        rgba(10,10,12,.84);

    backdrop-filter:
        blur(28px)
        saturate(150%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(150%);

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity .32s
        var(--media-ease),

        visibility .32s
        var(--media-ease);
}


.sm27-photo-viewer.open {

    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}


.sm27-photo-viewer::before {

    content:
        "";

    position:
        absolute;

    width:
        55vw;

    height:
        55vw;

    max-width:
        800px;

    max-height:
        800px;

    border-radius:
        50%;

    background:
        radial-gradient(
            circle,
            rgba(134,31,42,.18),
            transparent 68%
        );

    filter:
        blur(70px);

    opacity:
        .75;

    pointer-events:
        none;
}


.sm27-photo-viewer-top {

    position:
        absolute;

    top:
        calc(
            18px +
            env(safe-area-inset-top)
        );

    left:
        18px;

    right:
        18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-start;

    z-index:
        20;

    pointer-events:
        none;
}


.sm27-photo-viewer-top-left {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    pointer-events:
        auto;
}


.sm27-photo-glass-control {

    width:
        44px;

    height:
        44px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,.24);

    border-radius:
        15px;

    background:
        rgba(255,255,255,.12);

    color:
        rgba(255,255,255,.92);

    box-shadow:

        inset
        0 1px 0
        rgba(255,255,255,.16),

        0 10px 30px
        rgba(0,0,0,.20);

    backdrop-filter:
        blur(20px)
        saturate(170%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(170%);

    cursor:
        pointer;
}


.sm27-photo-glass-control:active {

    transform:
        scale(.94);
}


.sm27-photo-counter {

    min-height:
        40px;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        0 14px;

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius:
        999px;

    background:
        rgba(255,255,255,.10);

    color:
        rgba(255,255,255,.85);

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.14),

        0 10px 30px
        rgba(0,0,0,.18);

    backdrop-filter:
        blur(20px)
        saturate(170%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(170%);

    font-size:
        11px;

    font-weight:
        800;
}


.sm27-photo-stage {

    position:
        relative;

    z-index:
        10;

    width:
        100%;

    height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    touch-action:
        pan-y;

    padding:
        70px 70px 145px;
}


.sm27-photo-viewer-image {

    max-width:
        min(
            calc(100vw - 150px),
            1500px
        );

    max-height:
        calc(
            100vh - 190px
        );

    width:
        auto;

    height:
        auto;

    display:
        block;

    object-fit:
        contain;

    border-radius:
        18px;

    box-shadow:

        0 35px 100px
        rgba(0,0,0,.45),

        0 0 0 1px
        rgba(255,255,255,.10);

    transform:
        scale(.96);

    opacity:
        0;

    transition:
        transform .38s
        var(--media-ease),

        opacity .25s;
}


.sm27-photo-viewer.open
.sm27-photo-viewer-image {

    transform:
        scale(1);

    opacity:
        1;
}


.sm27-photo-loading {

    position:
        absolute;

    top:
        50%;

    left:
        50%;

    transform:
        translate(-50%,-50%);

    z-index:
        8;

    width:
        46px;

    height:
        46px;

    border-radius:
        50%;

    border:
        3px solid
        rgba(255,255,255,.18);

    border-top-color:
        rgba(255,255,255,.92);

    animation:
        sm27PhotoSpin
        .8s
        linear
        infinite;
}


@keyframes sm27PhotoSpin {

    to {

        transform:
            translate(-50%,-50%)
            rotate(360deg);
    }
}


.sm27-photo-nav {

    position:
        absolute;

    top:
        50%;

    transform:
        translateY(-50%);

    z-index:
        20;

    width:
        52px;

    height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,.24);

    border-radius:
        50%;

    background:
        rgba(255,255,255,.11);

    color:
        #fff;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.17),

        0 15px 40px
        rgba(0,0,0,.25);

    backdrop-filter:
        blur(20px)
        saturate(170%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(170%);

    cursor:
        pointer;
}


.sm27-photo-nav:hover {

    background:
        rgba(255,255,255,.20);

    transform:
        translateY(-50%)
        scale(1.05);
}


.sm27-photo-nav:disabled {

    opacity:
        .25;

    cursor:
        default;

    pointer-events:
        none;
}


.sm27-photo-prev {
    left:
        20px;
}


.sm27-photo-next {
    right:
        20px;
}


.sm27-photo-viewer-bottom {

    position:
        absolute;

    left:
        50%;

    bottom:
        calc(
            22px +
            env(safe-area-inset-bottom)
        );

    transform:
        translateX(-50%);

    z-index:
        30;

    width:
        min(
            720px,
            calc(100% - 30px)
        );

    padding:
        13px 15px;

    border:
        1px solid
        rgba(255,255,255,.22);

    border-radius:
        19px;

    background:
        rgba(255,255,255,.11);

    box-shadow:

        inset 0 1px 0
        rgba(255,255,255,.16),

        0 25px 70px
        rgba(0,0,0,.28);

    backdrop-filter:
        blur(26px)
        saturate(175%);

    -webkit-backdrop-filter:
        blur(26px)
        saturate(175%);
}


.sm27-photo-viewer-caption {

    min-width:
        0;

    width:
        100%;
}


.sm27-photo-viewer-caption strong {

    display:
        block;

    color:
        #fff;

    font-size:
        13px;

    line-height:
        1.3;

    font-weight:
        800;

    white-space:
        nowrap;

    overflow:
        hidden;

    text-overflow:
        ellipsis;
}


.sm27-photo-viewer-caption span {

    display:
        block;

    margin-top:
        3px;

    color:
        rgba(255,255,255,.56);

    font-size:
        10px;

    font-weight:
        650;
}






@media (max-width: 1200px) {

    .sm27-media-grid {

        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            );
    }
}


@media (max-width: 992px) {

    .sm27-media-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }


    .sm27-photo-stage {

        padding:
            70px 55px 140px;
    }


    .sm27-photo-viewer-image {

        max-width:
            calc(
                100vw - 120px
            );

        max-height:
            calc(
                100vh - 190px
            );
    }
}


@media (max-width: 768px) {

    .sm27-media-grid {

        grid-template-columns:
            1fr;
    }


    .sm27-media-hero {

        min-height:
            360px;

        border-radius:
            0 0 28px 28px;
    }


    .sm27-media-hero-inner,
    .sm27-media-container {

        width:
            min(
                calc(100% - 30px),
                760px
            );
    }


    .sm27-media-hero-glass {

        padding:
            24px 20px;

        border-radius:
            22px;
    }


    .sm27-media-media-wrapper,
    .sm27-youtube-wrapper {

        height:
            235px;
    }


    .sm27-youtube-play {

        width:
            62px;

        height:
            62px;

        border-radius:
            20px;
    }


    .sm27-youtube-play::before {

        border-top-width:
            10px;

        border-bottom-width:
            10px;

        border-left-width:
            16px;
    }


    /* MOBILE PHOTO VIEWER */

    .sm27-photo-viewer {

        padding:
            0;

        background:
            rgba(8,8,10,.94);

        backdrop-filter:
            blur(22px)
            saturate(145%);

        -webkit-backdrop-filter:
            blur(22px)
            saturate(145%);
    }


    .sm27-photo-viewer-top {

        top:
            calc(
                10px +
                env(safe-area-inset-top)
            );

        left:
            10px;

        right:
            10px;
    }


    .sm27-photo-glass-control {

        width:
            42px;

        height:
            42px;

        border-radius:
            14px;
    }


    .sm27-photo-stage {

        padding:
            62px 8px 122px;
    }


    .sm27-photo-viewer-image {

        max-width:
            calc(
                100vw - 20px
            );

        max-height:
            calc(
                100dvh - 165px
            );

        border-radius:
            12px;
    }


    .sm27-photo-nav {

        width:
            42px;

        height:
            42px;
    }


    .sm27-photo-prev {

        left:
            8px;
    }


    .sm27-photo-next {

        right:
            8px;
    }


    .sm27-photo-viewer-bottom {

        width:
            calc(
                100% - 18px
            );

        bottom:
            calc(
                9px +
                env(safe-area-inset-bottom)
            );

        padding:
            11px 12px;

        border-radius:
            17px;
    }
}


@media (max-width: 575px) {

    .sm27-media-hero-inner,
    .sm27-media-container {

        width:
            calc(
                100% - 22px
            );
    }


    .sm27-media-hero-title {

        font-size:
            2.2rem;
    }


    .sm27-filter-container {

        max-width:
            calc(
                100% - 20px
            );

        overflow:
            auto;

        scrollbar-width:
            none;
    }


    .sm27-filter-container::-webkit-scrollbar {

        display:
            none;
    }


    .sm27-filter-container button {

        flex:
            0 0 auto;

        padding:
            0 17px;

        font-size:
            12px;
    }


    .sm27-media-card {

        border-radius:
            22px;
    }


    .sm27-youtube-wrapper {

        height:
            220px;
    }


    .sm27-youtube-badge {

        left:
            10px;

        bottom:
            10px;
    }


    .sm27-youtube-status {

        top:
            10px;

        left:
            10px;
    }


    .sm27-youtube-play {

        width:
            58px;

        height:
            58px;

        border-radius:
            18px;
    }
}


@media (
    max-width: 900px
) and (
    orientation: landscape
) {

    .sm27-photo-stage {

        padding:
            50px 55px 85px;
    }


    .sm27-photo-viewer-image {

        max-height:
            calc(
                100dvh - 110px
            );
    }


    .sm27-photo-viewer-bottom {

        bottom:
            7px;

        padding:
            8px 12px;
    }


    .sm27-photo-nav {

        width:
            40px;

        height:
            40px;
    }
}






@media (
    prefers-reduced-motion: reduce
) {

    .sm27-media-page *,
    .sm27-media-page *::before,
    .sm27-media-page *::after,
    .sm27-photo-viewer,
    .sm27-photo-viewer * {

        animation-duration:
            .01ms !important;

        transition-duration:
            .01ms !important;
    }
}

/* PageSpeed: lite YouTube preview. Iframe is network-idle until the user presses Play. */
.sm27-youtube-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: opacity .25s ease, visibility .25s ease;
}
.sm27-youtube-embed {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 2;
}
.sm27-youtube-wrapper.is-playing .sm27-youtube-thumbnail {
    opacity: 0;
    visibility: hidden;
}
.sm27-youtube-wrapper.is-playing .sm27-youtube-embed {
    opacity: 1;
    visibility: visible;
}
