/* YeosuNet Panorama Slider v2.2 */
.yps-slider,
.yps-slider * { box-sizing: border-box; }

.yps-slider {
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: #fff;
    padding: 14px 0 0;
}

.yps-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.yps-track {
    display: flex;
    gap: 16px;
    align-items: stretch;
    will-change: transform;
    transition: transform 760ms cubic-bezier(.22,.61,.36,1);
}

.yps-slide {
    position: relative;
    flex: 0 0 min(49vw, 940px);
    height: var(--yps-height, 620px);
    overflow: hidden;
    border-radius: 14px;
    background: #111;
}

.yps-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 6s ease;
}

.yps-slide.is-active img { transform: scale(1.04); }

.yps-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.02) 24%,
        rgba(0,0,0,.13) 50%,
        rgba(0,0,0,.82) 100%
    );
    pointer-events: none;
}

.yps-copy {
    position: absolute;
    left: 5.2%;
    right: 5.2%;
    bottom: 7%;
    z-index: 3;
    color: #fff;
    overflow: hidden;
}

.yps-copy h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px,2.1vw,43px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.035em;
    text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

.yps-copy p {
    margin: 0 0 25px;
    color: rgba(255,255,255,.9);
    font-size: clamp(15px,1.05vw,20px);
    font-weight: 500;
}

/* -------------------------------------------------
   v2.2 텍스트 애니메이션
   더 긴 이동거리 + 부드러운 감속
------------------------------------------------- */
.yps-animate {
    opacity: 0;
    transform: translate3d(190px, 0, 0);
    filter: blur(3px);
    will-change: transform, opacity, filter;
}

.yps-slide.is-active .yps-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.yps-slide.is-active .yps-animate-title {
    transition:
        transform 1.15s cubic-bezier(.16,1,.3,1) .08s,
        opacity .85s ease-out .08s,
        filter .8s ease-out .08s;
}

.yps-slide.is-active .yps-animate-subtitle {
    transition:
        transform 1.2s cubic-bezier(.16,1,.3,1) .22s,
        opacity .9s ease-out .22s,
        filter .85s ease-out .22s;
}

.yps-slide.is-active .yps-animate-button {
    transition:
        transform 1.25s cubic-bezier(.16,1,.3,1) .36s,
        opacity .95s ease-out .36s,
        filter .9s ease-out .36s;
}

.yps-slide:not(.is-active) .yps-animate {
    transition: none !important;
}

/*
 마지막 → 첫 번째 무한루프 순간 이동 시:
 복제 슬라이드에서 실제 첫 슬라이드로 텔레포트하는 1프레임 동안
 텍스트를 강제로 완성 상태에 고정하여 깜빡임/재등장 방지.
*/
.yps-slider.is-normalizing .yps-animate {
    transition: none !important;
}

.yps-slider.is-normalizing .yps-slide.is-active .yps-animate {
    opacity: 1 !important;
    transform: translate3d(0,0,0) !important;
    filter: none !important;
}

.yps-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 116px;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid rgba(255,255,255,.78);
    color: #fff !important;
    background: rgba(0,0,0,.13);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.yps-more span {
    font-size: 20px;
    line-height: 0;
    transform: translateY(-1px);
}

.yps-more:hover {
    color: #111 !important;
    background: #fff;
    border-color: #fff;
    transform: translateX(-3px);
}

.yps-more-disabled { cursor: default; }

.yps-more-disabled:hover {
    color: #fff !important;
    background: rgba(0,0,0,.13);
    border-color: rgba(255,255,255,.78);
    transform: none;
}

.yps-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(25,25,25,.72);
    font-size: 27px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.yps-prev { left: calc(25.5vw - 28px); }
.yps-next { right: calc(25.5vw - 28px); }

.yps-controls {
    position: absolute;
    right: calc(25.5vw + 30px);
    bottom: 7.5%;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 17px;
    color: #fff;
}

.yps-counter {
    display: flex;
    gap: 6px;
    color: rgba(255,255,255,.75);
}

.yps-counter strong { color: #fff; }

.yps-pause {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.yps-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.yps-no-slides {
    padding: 30px;
    text-align: center;
    background: #f6f7f7;
}

@media (prefers-reduced-motion: reduce) {
    .yps-animate {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

@media(max-width:1200px) {
    .yps-slide { flex-basis:66vw; }
    .yps-prev { left:calc(17vw - 27px); }
    .yps-next { right:calc(17vw - 27px); }
    .yps-controls { right:calc(17vw + 28px); }
}

@media(max-width:767px) {
    .yps-track { gap:8px; }

    .yps-slide {
        flex-basis:86vw;
        height:min(var(--yps-height,620px),520px);
        border-radius:10px;
    }

    .yps-copy {
        left:6%;
        right:6%;
        bottom:8%;
    }

    .yps-copy h2 { font-size:27px; }

    .yps-copy p {
        margin-bottom:18px;
        font-size:14px;
    }

    .yps-animate {
        transform: translate3d(120px,0,0);
    }

    .yps-more {
        min-width:108px;
        min-height:39px;
        padding:8px 14px;
        font-size:13px;
    }

    .yps-arrow {
        width:42px;
        height:42px;
        font-size:21px;
    }

    .yps-prev { left:calc(7vw - 19px); }
    .yps-next { right:calc(7vw - 19px); }

    .yps-controls {
        right:calc(7vw + 18px);
        bottom:8%;
    }
}
