@import url('/fonts/nanum-square-round/nanum-square-round.css');

.special-02 {
    --template-image-height-desktop: 237;
    --template-image-height-mobile: 240;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 0 176px 0;
    background: #fff;
    color: #191919;
    font-family: var(--font-nanum-square-round);
    --special-02-unit: min(1px, calc(100vw / 1440));
}

.special-02 *,
.special-02 *::before,
.special-02 *::after {
    box-sizing: border-box;
}

.special-02-heading {
    position: relative;
    width: 78%;
    margin: 0 auto 42px;
    text-align: center;
}

.special-02-heading h2 {
    margin: 0;
    font-size: clamp(26px, 2.083vw, 40px);
    line-height: 1;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.special-02-heading p {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.special-02-stage {
    position: relative;
    margin: 0 auto;
    width: calc(1348 * var(--special-02-unit));
}

.special-02-track {
    position: relative;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 0 14px;
    align-items: flex-start;
    gap: calc(32 * var(--special-02-unit));
}

.special-02-track::-webkit-scrollbar {
    display: none;
}

.special-02-track.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.special-02-card {
    flex: 0 0 calc(313 * var(--special-02-unit));
    position: relative;
    min-width: 0;
    border-radius: 10px;
    scroll-snap-align: start;
    overflow: visible;
    perspective: 1200px;
    background: transparent;
    box-shadow: none;
    height: auto;
    aspect-ratio: 1;
}

.special-02-card > a,
.special-02-image {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.special-02-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.special-02-card a:hover img {
    transform: scale(1.04);
}

.special-02-card h3 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    right: 12px;
    transform: translateY(-50%);
    margin: 0;
    text-align: center;
    font-size: clamp(18px, 1.25vw, 24px);
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.16);
    overflow-wrap: anywhere;
}

.special-02-card a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

.special-02-track:focus-visible {
    outline: 2px solid #e66048;
    outline-offset: 3px;
}

.special-02-arrow {
    position: absolute;
    z-index: 2;
    top: calc(50% - 3px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 56px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #e66048;
    cursor: pointer;
}

.special-02-arrow.prev {
    left: -50px;
}

.special-02-arrow.next {
    right: -50px;
}

.special-02-arrow svg {
    display: block;
    width: 24px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.special-02-arrow.next svg {
    transform: rotate(180deg);
}

.special-02 button:focus-visible {
    outline: 2px solid #d7462c;
    outline-offset: 2px;
}

.special-02 [hidden] {
    display: none;
}

.special-02-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    transition: transform .6s ease-in-out;
    aspect-ratio: 1;
}

.special-02-card.is-flipped .special-02-flipper {
    transform: rotateY(180deg);
}

.special-02-front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 3px 4px 8px #00000029;
    /* Also gate each face at the half-turn for WebKit's nested scroll layers. */
    transition: visibility 0s .3s;
    visibility: visible;
    transform: rotateY(0deg);
}

.special-02-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 3px 4px 8px #00000029;
    /* Also gate each face at the half-turn for WebKit's nested scroll layers. */
    transition: visibility 0s .3s;
    visibility: hidden;
    border: 10px solid #e6e5e5;
    border-radius: 20px;
    transform: rotateY(180deg);
    background: #fff;
    color: #191919;
}

.special-02-card.is-flipped .special-02-front {
    visibility: hidden;
}

.special-02-card.is-flipped .special-02-back {
    visibility: visible;
}

.special-02-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    min-height: 0;
    padding: clamp(24px, 2.96875vw, 57px) 14px clamp(18px, 1.98vw, 38px);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.special-02-back-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    justify-content: safe flex-start;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.special-02-back h3 {
    position: static;
    flex-shrink: 0;
    transform: none;
    text-shadow: none;
    font-weight: 700;
    line-height: 1.3333;
    letter-spacing: -1.15px;
}

.special-02-description {
    flex-shrink: 0;
    margin: 6px 0 0;
    font-size: clamp(13px, .8333vw, 16px);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.special-02-more {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 30px;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 17px;
    background: #f8975e;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.special-02-card .special-02-more:focus-visible {
    outline: 2px solid #191919;
    outline-offset: 3px;
}

.special-02-toggle {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #707070;
    cursor: pointer;
    font: inherit;
}

.special-02-toggle span {
    display: none;
}

.special-02-card.is-flipped .special-02-toggle {
    inset: 8px 8px auto auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.special-02-card.is-flipped .special-02-toggle span {
    display: block;
    opacity: 0;
    font-size: 26px;
    line-height: 1;
}

.special-02-card .special-02-toggle:focus-visible {
    outline: 2px solid #e66048;
    outline-offset: -4px;
}

.special-02-card .special-02-toggle:focus-visible span {
    opacity: 1;
}

@media (max-width: 900px) {
    .special-02 {
        padding: 64px 0 110px;
    }

    .special-02-arrow.prev {
        left: -48px;
    }

    .special-02-arrow.next {
        right: -48px;
    }
}

@media (hover: none), (pointer: coarse) {
    .special-02-card.is-flipped .special-02-toggle span {
        opacity: 1;
    }

    .special-02-more {
        min-height: 44px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .special-02-back-content {
        gap: 6px;
        padding: 6px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .special-02-card img,
    .special-02-flipper,
    .special-02-front,
    .special-02-back {
        transition: none;
    }
}

@media (min-width: 601px) {
    .special-02-heading h2 {
        font-size: clamp(26px, calc(40 * var(--special-02-unit)), 40px);
    }

    .special-02-card h3 {
        font-size: clamp(18px, calc(24 * var(--special-02-unit)), 24px);
    }

    .special-02-description {
        font-size: clamp(13px, calc(16 * var(--special-02-unit)), 16px);
    }

    .special-02-arrow.prev {
        left: calc(-46 * var(--special-02-unit));
    }

    .special-02-arrow.next {
        right: calc(-46 * var(--special-02-unit));
    }

    .special-02-arrow {
        width: calc(44 * var(--special-02-unit));
    }
}

@media (min-width: 901px) {
    .special-02-back-content {
        padding: calc(57 * var(--special-02-unit)) 14px calc(38 * var(--special-02-unit));
    }
}

@media (min-width: 481px) {
    .special-02[data-image-height]:not(:where([data-image-height="natural"])) .special-02-card {
        flex-basis: var(--image-height);
    }
}

@media (max-width: 480px) {
    .special-02:is([data-image-height]:not(:where([data-image-height="natural"])):not([data-mobile-image-height]), [data-mobile-image-height="fixed"], [data-mobile-image-height="responsive"], [data-mobile-image-height="viewport"]) .special-02-card {
        flex-basis: var(--image-height);
    }
}

@media (max-width: 600px) {
    .special-02-card.is-flipped .special-02-toggle {
        display: none;
    }

    .special-02-arrow {
        height: 44px;
        padding: 0 5px;
        display: none;
    }

    .special-02-arrow svg {
        width: 18px;
        height: 30px;
    }

    .special-02-arrow.prev {
        left: -28px;
        justify-items: start;
    }

    .special-02-arrow.next {
        right: -28px;
        justify-items: end;
    }

    .special-02 {
        padding: 50px 0 110px;
    }

    .special-02-heading {
        width: 100%;
        /*margin-bottom: 30px;*/
    }

    .special-02-heading h2 {
        margin-bottom: 4px;
        font-size: 20px;
        line-height: 26px;
    }

    .special-02-heading p {
        margin: 0;
        font-size: 14px;
        line-height: 24px;
        letter-spacing: -.48px;
    }

    .special-02-stage {
        width: 100%;
    }

    .special-02-track {
        gap: 16px;
        padding: 0 15px;
        scroll-padding-inline: 15px;
    }

    .special-02-card {
        flex: 0 0 var(--image-height, calc(160 * var(--template-mobile-unit)));
        width: var(--image-height, calc(160 * var(--template-mobile-unit)));
        height: auto;
        aspect-ratio: 1;
    }

    .special-02-card h3,
    .special-02-back h3 {
        font-size: 16px;
        line-height: 16px;
        letter-spacing: -.48px;
    }

    .special-02-back {
        border-width: 5px;
        border-radius: 10px;
    }

    .special-02-back-content {
        gap: 0;
        /*padding: 0 17px 10px;*/
        padding: 26px 12px 25px;
    }

    .special-02-description {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: -.48px;
    }

    .special-02-more {
        min-width: 70px;
        padding: 7px 8px 6px;
        min-height: 23px;
        font-size: 10px;
    }
}
