/* 메인 히어로 이미지 슬라이더 */
.hero-slider {
    position: relative;
    width: min(1320px, calc(100% - 48px));
    aspect-ratio: 16 / 9;
    margin: 72px auto 0;
    overflow: hidden;
    border-radius: var(--radius);
    isolation: isolate;
    background: #e8ecea;
}

.hero-slider__track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    margin: 0;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
}

.hero-slide .hero-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.hero-slider__controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-slider__arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(22, 22, 22, .34);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, border-color .2s ease;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
    border-color: #fff;
    background: rgba(22, 22, 22, .72);
}

.hero-slider__arrow:focus-visible,
.hero-slider__dot:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .8);
    outline-offset: 3px;
}

.hero-slider__dots {
    position: absolute;
    z-index: 3;
    bottom: 42px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}

.hero-slider__dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}

.hero-slider__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 슬라이더가 실제 이미지를 담당하므로 기존 장식용 플레이스홀더는 숨김 */
.hero:has(.hero-slider):after {
    display: none;
}

@media (max-width: 760px) {
    .hero-slider {
        width: calc(100% - 36px);
        margin-top: 55px;
    }

    .hero-slider__controls {
        padding: 0 14px;
    }

    .hero-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .hero-slider__dots {
        bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}
