/* 작가 목록 → 공개 프로필 → 내 프로필 → 반응형 순서입니다. */
.artist-main {
    padding-top: 45px;
    padding-bottom: 75px;
    min-height: 65vh;
}

.artist-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.artist-page-heading h1 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -1px;
}

.artist-page-heading p:not(.eyebrow) {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 26px;
    margin-top: 30px;
}

.artist-card-image {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: var(--paper);
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.artist-card:hover img {
    transform: scale(1.04);
}

.artist-card-arrow {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 5px #333;
}

.artist-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.artist-card-meta h2 {
    font-weight: 500;
    font-size: 21px;
    overflow-wrap: anywhere;
}

.artist-card-meta > span {
    flex-shrink: 0;
    color: var(--olive);
    font-size: 11px;
}

.artist-english {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
    margin-top: 7px;
}

.artist-card-biography {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.artist-introduction {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 60px;
    padding: 30px 0 45px;
}

.artist-portrait img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    background: var(--paper);
}

.artist-introduction-copy {
    align-self: center;
}

.artist-introduction-copy h1 {
    font-weight: 500;
    font-size: 38px;
    overflow-wrap: anywhere;
}

.artist-biography {
    max-width: 750px;
    margin-top: 25px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #666e5c;
    font-size: 13px;
    line-height: 2;
}

.artist-work-count {
    font-size: 12px;
    color: var(--olive);
    margin-top: 24px;
    margin-bottom: 18px;
}

.artist-tabs {
    display: flex;
    gap: 35px;
    border-bottom: 1px solid var(--line);
    margin: 5px 0 35px;
}

.artist-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    padding: 15px 10px;
    font-size: 15px;
    color: var(--muted);
}

.artist-tabs button[aria-selected="true"] {
    color: var(--olive);
    border-bottom-color: var(--olive);
}

.artist-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.artist-section-heading h2 {
    font-weight: 500;
    font-size: 22px;
}

.artist-section-heading > p {
    font-size: 11px;
}

.history-group {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.history-group h3 {
    color: var(--olive);
    font-size: 16px;
    font-weight: 500;
}

.history-rows {
    display: grid;
    gap: 18px;
}

.history-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 20px;
    font-size: 13px;
}

.history-row .history-period {
    color: #939a87;
    overflow-wrap: anywhere;
}

.history-row .history-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.history-row .history-venue {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.profile-main {
    max-width: 1100px;
}

.profile-section {
    padding: 30px 0 45px;
    border-bottom: 1px solid var(--line);
}

.profile-form {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 55px;
}

.profile-photo-field > img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    background: var(--paper);
    margin-bottom: 18px;
}

.profile-photo-field > label.button {
    font-size: 11px;
    cursor: pointer;
    margin-bottom: 10px;
}

.profile-photo-field input[type="file"] {
    font-size: 11px;
    max-width: 100%;
}

.remove-photo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 11px;
    color: var(--muted);
}

.profile-form .remove-photo-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
}

.profile-status {
    color: var(--olive);
    font-size: 12px;
    margin: 15px 0;
    white-space: pre-wrap;
}

.history-editor-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
}

.history-form {
    background: var(--paper);
    padding: 25px;
}

.history-form h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 15px;
}

.history-form label {
    display: block;
    font-size: 12px;
    margin-top: 16px;
    margin-bottom: 6px;
}

.history-form .button {
    padding: 10px 14px;
    font-size: 11px;
}

.managed-history-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.managed-history-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--olive);
    margin-bottom: 8px;
}

.managed-history-card p {
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.history-actions {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.history-actions button {
    font-size: 11px;
    border: 0;
    background: none;
    padding: 4px 0;
    color: var(--olive);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.owned-artwork-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.owned-artwork-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--line);
    padding: 15px;
}

.owned-artwork-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--paper);
}

.owned-artwork-card h3 {
    font-weight: 500;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.owned-artwork-card p {
    font-size: 10px;
    color: var(--muted);
    margin: 7px 0;
}

.owned-artwork-card .button {
    min-height: 30px;
    font-size: 10px;
    padding: 5px 10px;
}

.artist-main .pagination button {
    width: 35px;
    height: 35px;
    border: 0;
    background: none;
    font-size: 12px;
}

.artist-main .pagination button.current {
    background: var(--olive);
    color: white;
}

.artist-name-link {
    color: var(--olive);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 1000px) {
    .artist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .artist-introduction {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 35px;
    }

    .history-editor-grid {
        grid-template-columns: 310px minmax(0, 1fr);
        gap: 25px;
    }
}

@media (max-width: 700px) {
    .artist-main {
        padding-top: 30px;
        padding-bottom: 45px;
    }

    .artist-page-heading {
        gap: 12px;
        margin-bottom: 30px;
    }

    .artist-page-heading h1 {
        font-size: 25px;
    }

    .artist-page-heading .button {
        font-size: 10px;
        padding: 8px 10px;
    }

    .artist-page-heading p:not(.eyebrow) {
        font-size: 10px;
    }

    .artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .artist-card-meta {
        display: block;
    }

    .artist-card-meta h2 {
        font-size: 19px;
    }

    .artist-card-meta > span {
        font-size: 10px;
    }

    .artist-introduction {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
        padding-top: 15px;
    }

    .artist-introduction-copy h1 {
        font-size: 27px;
    }

    .artist-biography {
        font-size: 11px;
        margin-top: 14px;
    }

    .artist-introduction-copy .button {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .artist-section-heading {
        flex-wrap: wrap;
        gap: 12px;
    }

    .artist-section-heading h2 {
        font-size: 20px;
    }

    .history-group {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .history-row {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 12px;
        font-size: 12px;
    }

    .profile-form, .history-editor-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .profile-photo-field {
        max-width: 240px;
    }

    .owned-artwork-grid {
        grid-template-columns: 1fr;
    }

    .history-form {
        padding: 20px;
    }
}
