/* Original artwork is always displayed at its own aspect ratio. */
.artwork-image { background: transparent; min-height: 0; }
.artwork-image::after { display: none; }
.artwork-image img { display: block; width: 100%; height: auto; transition: filter .3s; }
.artwork-image:hover img { filter: brightness(1.035); }
.art-open { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--ink); opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.artwork-image:hover .art-open, .artwork-image:focus-visible .art-open { opacity: 1; transform: none; }
.feature { align-items: center; grid-template-columns: 1.4fr 1fr; background: #e2cdbb; }
.feature .artwork-image { min-height: 0; }
.feature-note { align-self: stretch; min-height: 400px; }
.work-grid { align-items: start; gap: 40px 34px; }
.work-card .artwork-image, .work-card:nth-child(2) .artwork-image { aspect-ratio: auto; }
.work-card:nth-child(2) { padding-top: 0; }
.home-gallery .work-card:nth-child(even) { margin-top: 75px; }
.work-meta { align-items: start; gap: 15px; }
.work-meta h3 { font-size: 26px; line-height: 1.2; }
.work-meta span { font-size: 8px; line-height: 1.6; text-align: right; max-width: 110px; }
.gallery-end { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.gallery-end > span { font-size: 11px; color: var(--brown); }
.gallery-section { padding-top: 20px; }
.gallery-toolbar { margin-bottom: 35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: transparent; border: 1px solid transparent; border-radius: 24px; padding: 11px 15px; font-size: 11px; }
.filters button[aria-pressed="true"] { background: var(--brown); color: var(--cream); }
.filters button:hover { border-color: var(--brown); }
.filters button span { font-size: 8px; margin-left: 8px; opacity: .7; }
#gallery-count { color: var(--brown); font-size: 10px; white-space: nowrap; }
.full-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-gallery .work-meta h3 { font-size: 23px; }
.viewer-open { overflow: hidden; }
#art-dialog { width: min(1050px, 94vw); }
.viewer-toolbar { position: sticky; top: 0; z-index: 5; background: var(--cream); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.viewer-toolbar > span { font-size: 8px; letter-spacing: 1.5px; }
.viewer-toolbar .close-dialog { position: static; padding: 8px 12px; font-size: 12px; }
#dialog-art { background: #e9dfd3; padding: 20px; }
#dialog-art > img { display: block; max-height: 72vh; width: auto; height: auto; max-width: 100%; object-fit: contain; margin: auto; }
.dialog-copy { padding: 25px 30px; }
.dialog-copy > #dialog-caption { font-size: 12px; line-height: 1.8; max-width: 650px; color: var(--brown); }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.viewer-bottom > a { font-size: 11px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.viewer-navigation { display: flex; align-items: center; gap: 18px; }
.viewer-navigation button { background: transparent; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.viewer-navigation button:hover { background: var(--sand); }
#dialog-position { font-size: 11px; min-width: 48px; text-align: center; }
@media (max-width: 1050px) { .full-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-toolbar { align-items: start; } .filters { gap: 4px; } .filters button { padding: 10px 12px; } }
@media (max-width: 700px) { .feature { grid-template-columns: 1fr; } .feature-note { min-height: 310px; } .home-gallery .work-card:nth-child(even) { margin-top: 0; } .full-gallery { grid-template-columns: 1fr; } .work-grid { gap: 35px; } .work-meta h3, .full-gallery .work-meta h3 { font-size: 27px; } .art-open { opacity: 1; transform: none; width: 30px; height: 30px; } .gallery-end { align-items: start; } .gallery-end > span { max-width: 130px; line-height: 1.8; } .gallery-toolbar { flex-direction: column; gap: 5px; } .filters button { font-size: 10px; padding: 10px 12px; } #gallery-count { margin: 8px 0 0 12px; } .viewer-toolbar { padding: 10px 12px; } #dialog-art { padding: 10px; } .dialog-copy { padding: 20px; } .dialog-copy h2 { font-size: 33px; } .viewer-bottom { gap: 10px; } .viewer-bottom > a { font-size: 10px; } .viewer-navigation { gap: 9px; } .viewer-navigation button { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .artwork-image img, .art-open { transition: none; } }
