.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.poster {
    text-align: center;
}

.poster img {
    max-width: 900px; /* 기존 100% → 500px로 제한 */
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.poster h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.poster p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.view-button {
    display: inline-block;
    text-decoration: none;
    color: #222;
    border: 1px solid #888;
    background: none;
    padding: 4px 12px;        /* ✅ 사이즈 살짝 줄임 */
    border-radius: 20px;
    font-size: 0.85rem;       /* ✅ 폰트도 약간 작게 */
    cursor: pointer;
    margin-top: 20px;         /* ✅ 위 요소와의 간격 */
    transition: background 0.3s;
}
.view-button:hover {
    background: #f5f5f5;
}

.exhibition-view {
    margin-top: 60px;
    text-align: center;
}

.exhibition-view h4 {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #aaa;
}


.exhibitionSwiper .swiper-slide {
    height: 240px; /* 원하는 고정 높이 */
}

.exhibitionSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


.exhibition-view img {
    max-width: 100%;
    border-radius: 8px;
}

.exhibition-slider {
    margin-top: 80px;
}

.slider-title {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #666;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 0; /* ✅ padding 제거 */
    overflow: auto; /* ✅ 내부 넘칠 때 스크롤 허용 */
}

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

.popup-content {
    position: relative;

    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;

    /* ✅ 아래 추가 또는 수정 */
    max-height: none;
    min-height: 200px;
}

.popup-content img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.popup-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px; /* ✅ 우측으로 이동 */
    width: 36px;
    height: 36px;
    font-size: 24px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
    cursor: pointer;
}

/* 반응형 */
@media (max-width: 1033px) {
    .popup-content {
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
        height: auto;          /* ✅ auto height */

    }

    .popup-content img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}
