@import url('/fonts/nanum-square-round/nanum-square-round.css');
@import url('/fonts/suit/suit.css') (max-width: 600px);

/* XD guide_special_1920: centered 1332×740 galleries. Keep dimensions from 1440px up. */
.section-special-detail-02 {
    --special-detail-02-unit: min(1px, calc(100vw / 1440));
    padding: calc(180 * var(--special-detail-02-unit)) 0 calc(80 * var(--special-detail-02-unit));
    color: #191919;
    font-family: var(--font-nanum-square-round);
    letter-spacing: -.048em;
}

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

.section-special-detail-02[data-facility-count="0"] {
    display: none;
}

.section-special-detail-02-list {
    display: grid;
    gap: calc(80 * var(--special-detail-02-unit));
    width: calc(1332 * var(--special-detail-02-unit));
    max-width: 100%;
    margin: 0 auto;
}

.section-special-detail-02-item {
    min-width: 0;
}

.section-special-detail-02-gallery {
    position: relative;
    height: calc(740 * var(--special-detail-02-unit));
    overflow: hidden;
    border-radius: calc(10 * var(--special-detail-02-unit));
    background: #292a27;
    color: #fff;
    touch-action: pan-y;
}

.section-special-detail-02-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}

.section-special-detail-02-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.section-special-detail-02-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-special-detail-02-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: max(36px, calc(56 * var(--special-detail-02-unit)));
    height: max(36px, calc(56 * var(--special-detail-02-unit)));
    margin: 0;
    padding: 0;
    border: 1px solid #ffffffb3;
    border-radius: 50%;
    background: #00000008;
    color: inherit;
    cursor: pointer;
    transform: translateY(-50%);
}

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

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

.section-special-detail-02-arrow svg {
    width: 18px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px #00000029);
}

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

.section-special-detail-02-counter {
    position: absolute;
    z-index: 2;
    bottom: calc(40 * var(--special-detail-02-unit));
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: max(160px, calc(198 * var(--special-detail-02-unit)));
    padding-bottom: 1px;
    border-bottom: 1px solid #ffffff80;
    font-size: clamp(18px, calc(24 * var(--special-detail-02-unit)), 24px);
    line-height: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 1px #00000029;
    transform: translateX(-50%);
}

.section-special-detail-02-counter > span:last-child {
    opacity: .5;
}

.section-special-detail-02-counter button {
    padding: 0 12px;
    min-height: 32px;
    border: 0;
    background: transparent;
    color: inherit;
    font: 800 12px/1 var(--font-nanum-square-round);
    cursor: pointer;
}

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

.section-special-detail-02-gallery:focus-visible,
.section-special-detail-02-gallery button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.section-special-detail-02-content {
    padding-top: calc(24 * var(--special-detail-02-unit));
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.section-special-detail-02-item:last-child .section-special-detail-02-content {
    /*max-width: calc(902 * var(--special-detail-02-unit));*/
    /*min-height: 175px;*/
}

.section-special-detail-02-content h2 {
    margin: 0 0 calc(24 * var(--special-detail-02-unit));
    font-size: clamp(20px, calc(24 * var(--special-detail-02-unit)), 24px);
    font-weight: 700;
    line-height: 1;
}

.section-special-detail-02-description {
    font-size: clamp(14px, calc(16 * var(--special-detail-02-unit)), 16px);
    line-height: 1.5;
}

.section-special-detail-02-content ul {
    display: grid;
    gap: 4px;
    margin: calc(12 * var(--special-detail-02-unit)) 0 0;
    padding-left: 0;
    list-style: none;
    font-size: clamp(12px, calc(14 * var(--special-detail-02-unit)), 14px);
    line-height: 1.2;
}

.section-special-detail-02-content li {
    position: relative;
    margin-top: var(--section-list-space-before, 0px);
    padding-left: 8px;
}

.section-special-detail-02-content li::before {
    position: absolute;
    top: calc(.5lh - 2px);
    left: 0;
    width: 4px;
    height: 4px;
    background: currentColor;
    content: '';
}

@media (max-width: 600px) {
    .section-special-detail-02 {
        padding: 30px 15px;
    }

    /* Reserve the old band only for the original footer artwork, not arbitrary stickers.
       Match direct images and linked/repeated artwork through its child image. */
    .section-special-detail-02:has(
        > .template-stickers > .template-sticker[src*="/special-footer-decoration.svg"][style*="--sticker-mobile-display: block"],
        > .template-stickers > .template-sticker[style*="--sticker-mobile-display: block"] > img[src*="/special-footer-decoration.svg"]
    ) {
        padding-bottom: 230px;
    }

    /* The preset mobile footer needs a band; unrelated decorations must not change it. */
    .section-special-detail-02:has(
        > .template-stickers > .template-sticker[src*="/special-footer-decoration-m.svg"][data-sticker-mobile-pin-bottom="true"][style*="--sticker-mobile-display: block"],
        > .template-stickers > .template-sticker[data-sticker-mobile-pin-bottom="true"][style*="--sticker-mobile-display: block"] > img[src*="/special-footer-decoration-m.svg"]
    ):not(:has(
        > .template-stickers > .template-sticker[src*="/special-footer-decoration.svg"][style*="--sticker-mobile-display: block"],
        > .template-stickers > .template-sticker[style*="--sticker-mobile-display: block"] > img[src*="/special-footer-decoration.svg"]
    )) {
        padding-bottom: calc(40px + 109.862 * var(--template-mobile-unit, calc(100vw / 390)));
    }

    .section-special-detail-02-list {
        width: 100%;
        gap: 30px;
    }

    .section-special-detail-02-gallery {
        height: auto;
        aspect-ratio: 1332 / 740;
        border-radius: 5px;
    }

    .section-special-detail-02-arrow {
        width: 32px;
        height: 32px;
        border-color: #ffffff80;
        background: transparent;
    }

    /* Keep a 44px tap target around the smaller visible controls. */
    .section-special-detail-02-arrow::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
        content: '';
    }

    .section-special-detail-02-arrow.prev {
        left: 8px;
    }

    .section-special-detail-02-arrow.next {
        right: 8px;
    }

    .section-special-detail-02-arrow svg {
        width: 10.29px;
        height: 8px;
    }

    .section-special-detail-02-counter {
        bottom: 10px;
        width: 108px;
        font-family: var(--font-suit);
        font-size: 16px;
        line-height: 20px;
    }

    .section-special-detail-02-counter button {
        position: relative;
        min-height: 20px;
        font: 800 12px/20px var(--font-suit);
    }

    .section-special-detail-02-counter button::after {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        height: 44px;
        transform: translateY(-50%);
        content: '';
    }

    .section-special-detail-02-content {
        padding-top: 12px;
    }

    .section-special-detail-02-item:last-child .section-special-detail-02-content {
        max-width: none;
        min-height: 0;
    }

    .section-special-detail-02-content h2 {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 18px;
        letter-spacing: -.77px;
    }

    .section-special-detail-02-description,
    .section-special-detail-02-content ul {
        font-family: var(--font-suit);
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: -.67px;
    }

    .section-special-detail-02-content ul {
        gap: 2px;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-special-detail-02-slide {
        transition: none;
    }
}
