/* Artist shelves and a larger viewer, in the site's existing window palette. */
#page-art { color: #534063; text-align: left; padding-top: 0.5rem; }
.art-heading { text-align: center; margin-bottom: 1.5rem; }
.art-flourish { font: 1.2rem/1.6 "Segoe UI", sans-serif; color: #806096; }
.art-heading h2 { font-size: 1.65rem; margin: 0.65rem 0; letter-spacing: 2px; }
.art-heading p { color: #5d4a7a; font-size: 1.1rem; line-height: 1.45; }
.art-note { color: #665175; font-size: 1rem; line-height: 1.4; }
#art-load-status:empty { display: none; }

.art-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; padding: 0.8rem; margin-bottom: 1.5rem; border: 1px solid #b6a5c9; border-top-color: #fffaff; border-left-color: #fffaff; background: rgba(248, 241, 255, 0.55); }
.art-controls[hidden] { display: none; }
.art-controls label { font-size: 1.1rem; }
.art-controls select { flex: 1; min-width: 120px; padding: 0.5rem; border: 1px solid #a58db9; border-right-color: #fffaff; border-bottom-color: #fffaff; border-radius: 0; background: #fbf6ff; color: #534063; font: inherit; font-size: 1rem; }
.art-controls .art-note { flex-basis: 100%; }
.art-button { padding: 0.45rem 0.65rem; border: 1px solid #a58db9; border-top-color: #fffaff; border-left-color: #fffaff; border-radius: 0; background: #eee4f7; color: #534063; box-shadow: 1px 1px #a899bd; font: inherit; font-size: 1rem; cursor: pointer; }
.art-button:hover { background: #faf4ff; }
.art-button:active { box-shadow: none; transform: translate(1px, 1px); }
.art-button:disabled { opacity: 0.5; cursor: default; }
.art-artist-section + .art-artist-section { margin-top: 1.8rem; }
.art-artist-heading { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px dotted #a58db9; overflow-wrap: anywhere; }
.art-artist-heading h3 { font-size: 1.25rem; font-weight: normal; }
.art-artist-heading span { margin-left: auto; color: #725d83; font-size: 0.9rem; white-space: nowrap; }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.art-card { min-width: 0; padding: 6px; border: 1px solid #ac95bf; border-top-color: #fffaff; border-left-color: #fffaff; background: rgba(246, 236, 253, 0.87); box-shadow: 2px 2px rgba(140, 115, 160, 0.4); }
.art-open { display: block; overflow: hidden; border: 1px solid #c4afd4; color: #69418b; text-decoration: none; }
.art-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: repeating-conic-gradient(#f8f1fc 0% 25%, #eee3f4 0% 50%) 50% / 16px 16px; }
.art-open:hover .art-image { background-color: #fbf6ff; }
.art-card figcaption { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.15rem 0.15rem; color: #725d83; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
.art-format { flex: 0 0 auto; color: #69418b; font-size: 0.85rem; }

.art-viewer { width: min(1000px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 7px; border: 1px solid #8c7b9f; background: #e6d6ef; color: #534063; box-shadow: inset 1px 1px #fff, inset -1px -1px #b6a5c9, 3px 3px #a899bd; }
.art-viewer::backdrop { background: rgba(31, 19, 43, 0.76); }
.art-viewer-bar { display: flex; gap: 0.7rem; align-items: center; justify-content: space-between; padding: 3px 5px; margin-bottom: 7px; border: 1px solid #ad9abc; border-top-color: #fff; border-left-color: #fff; background: linear-gradient(90deg, #a68abd, #e9daf5); }
.art-viewer-bar p { min-width: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
#art-viewer-close { padding: 0 0.4rem; font-size: 1.4rem; }
.art-viewer-media { display: flex; align-items: center; justify-content: center; min-height: 100px; background: repeating-conic-gradient(#f8f1fc 0% 25%, #eee3f4 0% 50%) 50% / 20px 20px; }
.art-viewer-media :is(img, video) { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 11rem); object-fit: contain; }
.art-viewer-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.65rem; }
.art-viewer-hint { margin-top: 0.6rem; text-align: center; color: #725d83; font-size: 0.9rem; }
#page-art :is(a, button, select):focus-visible,
.art-viewer button:focus-visible { outline: 2px dotted #69418b; outline-offset: 3px; }

@media (max-width: 500px) {
    .art-grid { gap: 0.6rem; }
    .art-card { padding: 4px; }
    .art-card figcaption { flex-wrap: wrap; font-size: 0.9rem; }
    .art-viewer { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
    .art-viewer-bar p { font-size: 1rem; }
    .art-viewer-footer .art-button { padding: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    #page-art { animation: none; }
}
