.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.container h1 {
    text-align: center;
    margin-bottom: 2em;
}
.main-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
}
#mainImage {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    max-height: 500px; /* 너무 커지지 않도록 제한 */
}
.main-caption {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-top: 12px;
    padding: 0 10px;
    word-break: keep-all;
}
.main-image img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.thumbSwiper {
    padding: 0; /* 양옆 여백 제거 */
}
.thumbSwiper .swiper-wrapper {
    gap: 0;
}

.thumbSwiper .swiper-slide {
    width: auto;
}
.thumbSwiper .swiper-slide {
    flex: 1 0 auto; /* 자동 크기 */
    width: auto;
    height: 100px; /* 썸네일 높이 설정 */
    text-align: center;

}


.thumbSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbSwiper img:hover {
    transform: scale(1.05);
}
.bio-section {
    background-color: #b4b4b41a; /* 연한 회색 배경 */
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.bio-section img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.bio-text {
    flex: 1;
}
.tabs-artist-view {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.tabs-artist-view button {
    padding: 8px 16px;
    border: 1px solid #aaa;
    background: white;
    cursor: pointer;
    border-radius: 20px;
}
.tabs-artist-view button.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.description {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd; /* 연한 회색 보더 */
    margin-bottom: 60px;
}


.desc-tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.desc-tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    padding: 10px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.desc-tab-btn.active {
    border-color: #000;
    font-weight: bold;
}
.desc-tab-content {
    display: none;
    color: #555;
    line-height: 1.6;
}
.desc-tab-content.active {
    display: block;
}

.footer-text {
    text-align: right;
    color: #999;
    font-size: 0.9rem;
}

.bio-text,
.description {
    color: #555; /* 기존보다 살짝 연한 회색톤 */
}


.description.with-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    margin-bottom: 60px;
}

.desc-image img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.desc-contents {
    flex: 1;
    color: #555;
}

.popup-overlay {
    display: none; /* 기본 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 90vh;
}

.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* CKEditor 내용 반응형 대응 */
.desc-tab-content img,
.tab-content img,
.desc-tab-content iframe,
.tab-content iframe,
.desc-tab-content table,
.tab-content table,
.desc-tab-content pre,
.tab-content pre {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
    overflow-x: auto;
    word-break: break-word;
}

.desc-tab-content table,
.tab-content table,
.desc-tab-content pre,
.tab-content pre {
    display: block;
    overflow-x: auto;
}

.desc-tab-content *,
.tab-content * {
    box-sizing: border-box;
    word-wrap: break-word;
}



@media (max-width: 1033px) {
    .bio-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-section img {
        width: 180px;
        height: auto;
    }

    .tabs {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tab-content {
        text-align: left;
        margin-top: 20px;
    }

    .main-caption {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .desc-tab-content {
        text-align: left;
    }
    .description.with-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .desc-image img {
        width: 180px;
        height: auto;
    }
}
