/* Fonts */

@font-face {
    font-family: 'Spinwerad';
    src: url('../assets/fonts/spinwerad.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-4Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}



.contact-wrapper {
    min-height: 300px;
}

.content-wrapper {
    margin-top: 75px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding-bottom: 0px;
    }
}


.contact-title {
    font-family: 'Spinwerad', sans-serif;
    font-size: 52px;
    font-weight: 700;
    padding: 65px 0 10px 0;
    text-align: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.contact-title::after {
    content: '';
    width: 120px;
    height: 6px;
    background: black;
    display: block;
    margin: 3px auto 30px auto;
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 42px;
        padding: 50px 0 20px 0;
    }

    .contact-title::after {
        width: 80px;
        height: 5px;
        margin-bottom: 20px;
    }
}


#imageCarousel {
    margin-top: -20px;
}

.overlay-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-padding-wrapper {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.overlay-slider {
    position: relative;
    width: 100%;
    max-width: 750px;
    aspect-ratio: 3/2;
    margin: 23px auto 0;
}


.overlay-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}

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


.image-overlay {
    position: absolute;
    top: -20px;
    left: -20px;
    width: fit-content;
    background-color: black;
    padding: 25px 35px;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
}

.ENGLISH {
    font-family: 'neurimboGothicRegular';
    font-size: min(24px, 2.4vw);
    font-weight: 600;
    vertical-align: middle;
    color: #f8f8f8;
    margin-bottom: 5%;
}

.ENGLISH2 {
    font-family: 'neurimboGothicRegular';
    font-size: min(24px, 2.4vw);
    font-weight: 500;
    vertical-align: middle;
    color: #f8f8f8;
    margin-bottom: 5%;
}

.call-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    margin-top: 2px;
}

.call-row .ENGLISH {
    margin-right: 0;
}


.sns-icons {
    display: flex;
    justify-content: center;
    gap: 4%;
    align-items: center;
    margin-bottom: 2px;
}

.sns-icons img {
    width: min(32px, 3.5vw);
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    vertical-align: middle;
    margin-bottom: 3px;
}

.sns-icons a:nth-of-type(1) {
    margin-right: -1%;
}

/* 호버 가능한 디바이스에서만 호버 효과 적용 (데스크톱) */
@media (hover: hover) and (pointer: fine) {
    .sns-icons img:hover {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 모바일에서 터치 후 active/focus 상태 제거 */
@media (hover: none) and (pointer: coarse) {
    .sns-icons a:active,
    .sns-icons a:focus,
    .sns-icons img:active,
    .sns-icons img:focus {
        transform: none;
        opacity: 1;
        outline: none;
    }
}


.image-overlay-mobile {
    display: none;
}


@media (max-width: 768px) {
    .slider-padding-wrapper {
        padding: 0 30px;
        display: flex;
        flex-direction: column;
    }


    .overlay-slider {
        aspect-ratio: 4/3;
        margin-bottom: 0;
        margin-top: 30px;
        position: relative;
        display: flex;
        flex-direction: column;
    }


    .image-overlay {
        position: relative !important;
        width: 100% !important;
        padding: 13px 0 8px 0 !important;
        margin: -20px 0 0 0 !important;
        left: 0 !important;
        top: 0 !important;
        text-align: center;
        background-color: black;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: none !important;
        order: 2;
    }

    .overlay-slide {
        order: 1;
    }


    .ENGLISH,
    .ENGLISH2 {
        font-size: min(19px, 4vw);
        margin-bottom: 0;
    }

    .ENGLISH {
        margin-top: 3px;
    }

    .ENGLISH {
        margin-top: 6px;
    }

    .call-row {
        gap: 0.7em;
        margin-top: 0;
        margin-bottom: 0;
        align-items: center;
    }

    .call-row img {
        width: min(24px, 5vw);
    }

    .sns-icons {
        gap: 3%;
        margin-top: 0;
        margin-bottom: 0;
        align-items: center;
    }
    
    .call-row .ENGLISH,
    .call-row .ENGLISH2,
    .sns-icons .ENGLISH {
        margin: 0;
    }

    .sns-icons img {
        width: min(32px, 7vw);
    }

    body,
    * {
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
        -webkit-touch-callout: default !important;
    }
}