.artists-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

/* 每個藝術家卡片 */
.artists-info {
    flex: 1 1 calc(25% - 40px); /* 最多一列 4 個 */
    max-width: 300px;
    text-align: center;
}

/* 藝術家圖片處理：中心裁切成圓形並固定大小 */
.coverphoto {
    width: 300px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px;
    cursor: pointer;
}

    /* Popup 模态框样式 */
.modal {
    display: none; /* 預設隱藏 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    /* 彈窗置中 */
    display: none; /* 一開始隱藏 */
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex; /* 顯示時才啟用 flex 置中 */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 1000px;
    max-height: 60vh;
    overflow-y: auto;
}
.close {
    color: #aaa;
    float: right;
    font-size: 0px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* RWD 調整：中等螢幕顯示 3 個 */
@media (max-width: 1200px) {
    .artists-info {
        flex: 1 1 calc(33.333% - 40px);
    }
}

/* 更小的螢幕顯示 2 個 */
@media (max-width: 800px) {
    .artists-info {
        flex: 1 1 calc(50% - 40px);
    }
}

/* 行動裝置顯示 1 個 */
@media (max-width: 500px) {
    .artists-info {
        flex: 1 1 100%;
    }
}