/* Art gallery and project pages; scoped independently of Writing and Scholarship. */
.page-content:has(.art-gallery-page), .page-content:has(.art-detail) { max-width: 880px; padding: 0; margin: 10px auto; }
.art-gallery-page, .art-detail { margin-top: 24px; }
.art-introduction, .art-detail p, .art-detail li { font-size: 15px; line-height: 1.7; }
.art-introduction { max-width: 72ch; margin: 0 0 32px; }
.art-section-heading { font-size: 30px; color: YellowGreen; text-shadow: 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black; margin: 36px 0 20px; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art-card { display: block; position: relative; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; background: #08090b; color: #fff; text-decoration: none; }
.art-card img { display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .25s ease; }
.art-card-label { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.92)); opacity: 0; transition: opacity .2s ease; box-sizing: border-box; }
.art-card-label strong { color: #fff; font-size: 18px; line-height: 1.3; }
.art-card-label > span { color: #dbeabf; font-size: 12px; line-height: 1.4; }
.art-card:hover .art-card-label, .art-card:focus-visible .art-card-label { opacity: 1; }
.art-card:hover img { transform: scale(1.035); }
.art-card:focus-visible { outline: 3px solid YellowGreen; outline-offset: 4px; }
.art-back { display: inline-block; margin-bottom: 16px; font-size: 15px; }
.art-meta { color: #555; margin: 0 0 24px; }
.art-detail-figure { margin: 24px 0; }
.art-detail-figure img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
.art-detail-figure figcaption, .art-detail .art-credit { font-size: 12px; line-height: 1.6; color: #555; margin-top: 10px; }
.art-description { max-width: 72ch; margin: 28px 0; }
.art-description p { margin: 0 0 20px; }
.art-project-links { padding-left: 20px; margin: 20px 0; }
.art-project-links li { margin-bottom: 8px; }
.art-video { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; background: #08090b; }
.art-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-audio { display: block; width: 100%; height: 300px; border: 0; margin: 20px 0; }
.art-detail-navigation { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #ddd; padding-top: 20px; margin-top: 40px; font-size: 14px; line-height: 1.6; }
.art-detail-navigation a { max-width: 48%; }
@media (hover: none), (pointer: coarse) { .art-card-label { opacity: 1; } }
@media (max-width: 600px) {
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .art-card-label { opacity: 1; padding: 10px; gap: 4px; }
  .art-card-label strong { font-size: 14px; }
  .art-card-label > span { font-size: 10px; }
  .art-detail-navigation { flex-direction: column; gap: 12px; }
  .art-detail-navigation a { max-width: 100%; }
}
@media (max-width: 380px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .art-card-label strong { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .art-card img, .art-card-label { transition: none; } .art-card:hover img { transform: none; } }
