header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    padding: 10px 40px;
}

.ci-text {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.header-left{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-left a{
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

header nav{
    margin-left: auto;
}

nav a{
    color: black;
    text-decoration: none;
    font-weight: 500;
}

body{
    overflow: hidden;
    overflow-x: hidden;
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
}

.split{
    display: flex;
    height: calc(100vh - 50px - 35px);
    margin-top: 50px;
}

.left, .right{
    width: 50%;
    padding: 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.left img:not(#infoText) {
    display: block;
    max-width: 100%;
    height: auto;
    width: 70%;
    padding-left: 40px;
}

#infoText {
    display: none;
    max-width: 100%;
    height: auto;
    width: 70%;
    padding-left: 40px;
}

#infoText.active {
    display: block;
}

.info-btn {
    background: none;
    border: 1.2px solid black;
    border-radius: 0%;
    background-color: rgb(255, 255, 190);
    width: 17px;
    height: 17px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.left{
    width: 65%;
    padding-left: 20px;
    overflow-x: hidden;
    padding-top: 30px;
}


.right{
    width: 35%;
    justify-content: flex-start;
    overflow-y: auto;
}

.left::-webkit-scrollbar,
.right::-webkit-scrollbar{
    display: none;
}

.slideshow {
    position: relative;
    width: 100%;
    margin-top: 300px;
    margin-left: 100px;
}

.slide {
    display: none;
    width: 60%;
    height: auto;
}

.slide.active {
    display: block;
}

footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 20px;
    background: white;
    font-size: 15px;
    text-align: left;
    box-sizing: border-box;
    line-height: normal;
    display: flex;
    align-items: center;
}

footer p{
    margin: 0;
    padding: 0;
}

.footer-insta {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
}

/* about 모달 창 */
.modal-overlay{
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    z-index: 100;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding-top: 17%;
}

.modal-overlay.active{
    display: flex;
}

.modal-box {
    background: white;
    border: 1px solid black;
    padding: 40px;
    width: 360px;
    position: relative;
}

.modal-close {
    position: fixed;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.floating-img {
    position: fixed;
    width: 300px;
    height: auto;
    z-index: 101;
}

/* contact 모달 창 */
.modal-input {
    width: 100%;
    margin-bottom: 8px;
    padding: 6px;
    border: none;
    outline: none;
    background: transparent;
}

.modal-textarea {
    width: 100%;
    height: 80px;
    padding: 6px;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
}

.modal-send {
    margin-top: 8px;
    margin-left: auto;
    background: none;
    border: 0.5px solid black;
    padding: 4px 12px;
    cursor: pointer;
}

.modal-box.modal-message{
    width: 500px;
    height: 300px;
    background: gainsboro;
}

.modal-box.modal-contact-info {
    background: yellow; 
}

.br-web{
    display: inline;
}

form {
    display: flex;
    flex-direction: column;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        z-index: 200;
    }

    header nav {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        gap: 8px;
    }

    .header-top {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .split {
        flex-direction: column;
        margin-top: 200px;
        height: auto;
    }

    body {
        overflow: auto;
    }

    .left {
        width: 100%;
        overflow: auto;
    }

    .right {
        display: none;
    }


    .intro-box {
        display: none;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        overflow-y: auto;
        padding: 200px 20px 20px 20px; /* header 높이만큼 */
        flex-direction: column;
        gap: 20px;
        box-sizing: border-box;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 50; /* header의 z-index(10)보다 낮게 */
    }

     .modal-overlay.active {
        display: flex;
    }

    .modal-box,
    .modal-box.modal-message,
    .modal-box.modal-contact-info {
        width: 80%;
        max-width: 80%;
        box-sizing: border-box;
        margin: 0 auto;
        height: auto;
        padding: 20px;
    }

    .modal-box p {
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.8;
    }

    .floating-img {
        position: static;
        width: 60%;
        max-width: 200px;
        height: auto;
    }

    .br-web {
        display: none;
    }
}