.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.fair-main-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 40px;
}
.fair-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
}
.fair-date {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;


}

.fair-booth {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #444;
}


.fair-description {
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: center;
    line-height: 1.6;
}
.fair-artists {
    text-align: center;
    margin-bottom: 50px;
}

.fair-artists .artist-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1rem;
}

.fair-artists .artist-list {
    font-size: 0.95rem;
    color: #444;
}
.fair-works {
    border-top: 1px solid #d6d6d6;
}
.fair-works h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.work-card img {
    width: 100%;
    height: auto;
    max-height: 250px; /* 예: 기존이 약 300px이라면 1/3 줄인 값 */
    border-radius: 4px;
    display: block;
}
.work-info {
    margin-top: 10px;
    text-align: left;
}
.work-title {
    font-weight: bold;
    margin-bottom: 4px;
}
.work-desc {
    font-size: 0.9rem;
    color: #555;
}


.no-works {
    text-align: center;
    padding: 100px 20px;
    color: #999;
    font-size: 1.1rem;
}

.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;
    max-height: 80vh;
    border-radius: 4px;
}
.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


@media (max-width: 1033px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    .fair-description {
        text-align: left;
    }
}
@media (max-width: 768px) {
    .work-card img {
        max-height: 180px;
    }
}
