.scroll-expand {
    position: relative;

    width: 100%;

    overflow-x: hidden;
}


.scroll-expand__viewport {
    position: relative;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =================================
   BACKGROUND
================================= */

.scroll-expand__background {
    position: absolute;

    inset: 0;

    z-index: 0;

    height: 100%;

    will-change: opacity;
}


.scroll-expand__background img {
    display: block;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: center;
}


.scroll-expand__background-dim {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, .1);
}


/* =================================
   MEDIA
================================= */

.scroll-expand__media {
    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 1;

    /* 원본 시작 크기 */
    width: 300px;
    height: 400px;

    /* 원본 최대 크기 */
    max-width: 95vw;
    max-height: 85vh;

    transform: translate(-50%, -50%);

    will-change: width, height;
}


.scroll-expand__media video,
.scroll-expand__media > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.scroll-expand__overlay {
    position: absolute;

    inset: 0;

    background: #000;

    opacity: .5;

    pointer-events: none;

    border-radius: inherit;
}


/* =================================
   META
================================= */

.scroll-expand__meta {
    position: relative;

    margin-top: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}
.scroll-expand__media-frame {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 0 50px
        rgba(0, 0, 0, .3);

    pointer-events: none;
}

.scroll-expand__video {
    display: block;

    width: 100% !important;
    height: 100% !important;

    min-width: 100%;
    min-height: 100%;

    max-width: none;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;
}



.scroll-expand__meta p {
    margin: 0;

    color: #f8f4e9;

    will-change: transform;
}


.scroll-expand__meta--left {
    font-size: 18px;
    font-weight: 700;
}


.scroll-expand__meta--right {
    margin-top: 5px !important;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;
}


/* =================================
   TITLE
================================= */

.scroll-expand__titles {
    position: relative;

    z-index: 3;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    text-align: center;

    pointer-events: none;

    mix-blend-mode: difference;
}


.scroll-expand__title {
    margin: 0;

    color: #f8f4e9;

    font-size:
        clamp(
            42px,
            6vw,
            88px
        );

    font-weight: 800;
    line-height: 1;

    letter-spacing: -.055em;

    will-change: transform;
}


/* =================================
   CONTENT
================================= */

.scroll-expand__content {
    opacity: 0;

    transition:
        opacity .7s ease;
}


.scroll-expand__content.is-visible {
    opacity: 1;
}