:root {
    --pink: #f894c6;
    --rose: #d67ca9;
    --dark: #242424;
    --panel: #303030;
    --panel-2: #1f1f1f;
    --text: #efefef;
    --muted: #b9b9b9;
    --line: #4d4d4d;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; color: var(--text); background: var(--dark) url('background.jpg') repeat; font: 14px/1.55 Arial, Helvetica, sans-serif; }
a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
.site-shell { width: min(1240px, calc(100% - 28px)); margin-inline: auto; }
.top-strip { padding: 5px 0; color: #ddd; background: #111; border-bottom: 1px solid #3d3d3d; font-size: 12px; }
.site-header { background: #1b1b1b url('header.jpg') repeat-x bottom; border-bottom: 4px solid var(--rose); }
.header-inner { min-height: 102px; display: flex; align-items: center; gap: 42px; }
.brand { flex: 0 0 203px; display: block; }
.brand img { display: block; }
.header-copy { flex: 1; min-width: 0; }
.header-kicker { margin: 0 0 13px; color: #ddd; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 5px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 13px; color: #fff; background: #4d4d4d; border-bottom: 3px solid #111; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: #242424; background: var(--pink); border-color: var(--rose); }
main.site-shell { padding-block: 18px 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--pink); font-size: 28px; line-height: 1.15; }
h2 { color: #fff; font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.25; }
.intro-band { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; padding: 18px 20px; background: rgba(31,31,31,.96); border: 1px solid var(--line); border-top: 5px solid var(--pink); }
.intro-band p { max-width: 900px; margin-bottom: 0; color: #ddd; }
.primary-link, .more-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; color: #242424; background: var(--pink); font-weight: 700; text-decoration: none; }
.primary-link:hover, .more-link:hover { color: #fff; background: #4d4d4d; }
.content-section { padding-block: 20px 4px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 7px; color: var(--pink); }
.section-heading p { max-width: 650px; margin-bottom: 7px; color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.featured-item { display: grid; grid-template-columns: 112px 1fr; min-height: 122px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.featured-image { display: block; background: #111; }
.featured-image img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; object-position: top; display: block; filter: saturate(.88); }
.featured-copy { padding: 10px; }
.featured-copy h3 { margin-bottom: 5px; }
.featured-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-panel { padding: 14px; background: rgba(31,31,31,.96); border-top: 5px solid var(--pink); }
.category-panel:nth-child(even) { border-color: #fff; }
.category-panel h3 { margin-bottom: 5px; }
.category-panel > p { color: var(--muted); }
.directory-links { list-style: none; margin: 0 0 12px; padding: 0; }
.directory-links li { display: grid; grid-template-columns: minmax(160px,.65fr) 1fr; gap: 12px; padding: 7px 4px; border-top: 1px dotted #555; }
.directory-links a { font-weight: 700; }
.directory-links span { color: var(--muted); font-size: 13px; }
.more-link { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.archive-note, .category-page, .content-page, .not-found { margin-top: 20px; padding: 20px; background: rgba(31,31,31,.97); border: 1px solid var(--line); }
.archive-note h2, .category-page h1, .content-page h1 { color: var(--pink); }
.breadcrumbs { gap: 8px; margin: 2px 0 12px; color: var(--muted); font-size: 12px; }
.category-page > header, .content-page > header { max-width: 900px; }
.category-page .directory-links { max-width: 980px; margin-top: 18px; }
.category-copy, .content-page section { max-width: 920px; margin-top: 20px; padding-top: 16px; border-top: 3px solid var(--rose); }
.content-page section .directory-links { margin-top: 12px; }
.error-code { margin: 0; color: var(--pink); font-size: 54px; font-weight: 700; line-height: 1; }
.site-footer { color: #ddd; background: #111 url('footer.jpg') repeat-x top; border-top: 4px solid var(--rose); }
.footer-inner { min-height: 110px; display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: center; gap: 24px; padding-block: 16px; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--pink); }

@media (max-width: 880px) {
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-inner { gap: 22px; }
    .category-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .site-shell { width: min(100% - 18px, 1240px); }
    .header-inner { display: block; padding-block: 13px; }
    .brand { width: 190px; margin-bottom: 10px; }
    .header-kicker { margin-bottom: 8px; }
    .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .site-header nav a { justify-content: center; text-align: center; }
    .intro-band { grid-template-columns: 1fr; gap: 14px; padding: 15px; }
    h1 { font-size: 24px; }
    .section-heading { display: block; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-item { grid-template-columns: 98px 1fr; }
    .directory-links li { grid-template-columns: 1fr; gap: 2px; }
    .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

/* Editorial gallery layout */
.gallery-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.gallery-age { padding: 5px 0; color: #c8c8c8; background: #101010; font: 11px/1.4 Georgia, serif; text-align: right; }
.gallery-masthead { background: #181818 url('header.jpg') repeat-x bottom; border-bottom: 1px solid #5a4650; }
.gallery-brand-row { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.gallery-brand img { display: block; }
.gallery-brand-row p { max-width: 480px; margin: 0; color: #d7cbd1; font: italic 17px/1.4 Georgia, serif; text-align: right; }
.gallery-nav { display: flex; gap: 0; border-top: 1px solid #493d43; }
.gallery-nav a { padding: 10px 16px; color: #eee; border-right: 1px solid #493d43; font: 700 12px/1.2 Arial, sans-serif; text-decoration: none; text-transform: uppercase; }
.gallery-nav a:hover { color: #242424; background: var(--pink); }
.gallery-main { padding-block: 24px 36px; }
.gallery-main h1, .gallery-main h2, .gallery-main h3 { font-family: Georgia, serif; font-weight: 400; }
.gallery-intro { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 40px; padding: 28px 30px; background: rgba(27,27,27,.97); border-left: 2px solid var(--pink); }
.gallery-intro-copy { max-width: 820px; }
.gallery-intro-copy p { color: #ddd; font: 16px/1.65 Georgia, serif; }
.gallery-button { display: inline-block; margin-top: 5px; padding: 9px 16px; color: #222; background: var(--pink); font-weight: 700; text-decoration: none; }
.gallery-button:hover { color: #fff; background: #555; }
.gallery-intro-label { align-self: center; margin: 0; padding-left: 25px; color: #aaa; border-left: 1px solid #5a4c53; font: italic 20px/1.75 Georgia, serif; }
.gallery-collections, .gallery-featured { margin-top: 28px; }
.gallery-collections > header, .gallery-featured > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; border-bottom: 1px solid #5a4c53; }
.gallery-collections > header h2, .gallery-featured > header h2 { margin-bottom: 7px; color: var(--pink); }
.gallery-collections > header p, .gallery-featured > header p { margin-bottom: 7px; color: var(--muted); }
.gallery-collection-list { border-top: 1px solid #484848; }
.gallery-collection-list article { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 15px 4px; border-bottom: 1px solid #484848; }
.gallery-collection-list article > span { color: #85747c; font: 20px/1 Georgia, serif; }
.gallery-collection-list h3, .gallery-collection-list p { margin: 0; }
.gallery-collection-list p { margin-top: 3px; color: var(--muted); }
.gallery-collection-list article > a { color: #222; background: var(--pink); padding: 6px 10px; font-size: 12px; font-weight: 700; text-decoration: none; }
.gallery-showcase { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.gallery-piece { min-width: 0; margin: 0; background: #171717; border-bottom: 3px solid #63515a; }
.gallery-preview { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gallery-piece figcaption { padding: 11px; }
.gallery-piece h3 { margin-bottom: 5px; font-size: 16px; }
.gallery-piece p { margin: 0; color: var(--muted); font-size: 12px; }
.gallery-note { margin-top: 28px; padding: 18px 22px; background: rgba(31,31,31,.97); border-left: 2px solid var(--rose); }
.gallery-note h2 { margin-bottom: 6px; color: var(--pink); }
.gallery-note p { margin: 0; }
.gallery-trail { display: flex; gap: 8px; margin-bottom: 15px; color: #aaa; font-size: 12px; }
.gallery-category, .gallery-essay, .gallery-missing { padding: 25px 28px; background: rgba(27,27,27,.97); border-top: 2px solid var(--rose); }
.gallery-page-heading { max-width: 860px; padding-bottom: 16px; }
.gallery-page-heading p { color: #d0d0d0; font: 16px/1.6 Georgia, serif; }
.gallery-links { list-style: none; margin: 4px 0 0; padding: 0; columns: 2; column-gap: 38px; }
.gallery-links li { break-inside: avoid; display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 10px; padding: 11px 0; border-top: 1px solid #494949; }
.gallery-link-mark { width: 6px; height: 6px; margin-top: 7px; background: var(--pink); transform: rotate(45deg); }
.gallery-links p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.gallery-curator-note, .gallery-essay-section { max-width: 900px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #5a4c53; }
.gallery-curator-note h2, .gallery-essay-section h2 { color: var(--pink); }
.gallery-essay-section .gallery-links { margin-top: 12px; }
.gallery-information { max-width: 820px; }
.gallery-missing > p:first-child { margin: 0; color: var(--pink); font: 56px/1 Georgia, serif; }
.gallery-footer { padding: 24px 0; color: #bbb; background: #101010 url('footer.jpg') repeat-x top; border-top: 1px solid #5a4650; text-align: center; }
.gallery-footer-inner img { display: block; margin: 0 auto 10px; }
.gallery-footer-inner p { max-width: 760px; margin: 5px auto; color: #aaa; font-size: 12px; }
.gallery-footer-inner small { display: block; margin-top: 9px; color: #777; }

@media (max-width: 900px) {
    .gallery-showcase { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .gallery-shell { width: min(100% - 18px, 1180px); }
    .gallery-age { text-align: left; }
    .gallery-brand-row { min-height: 0; display: block; padding-block: 14px; }
    .gallery-brand { display: block; width: 190px; }
    .gallery-brand-row p { margin-top: 9px; text-align: left; font-size: 14px; }
    .gallery-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-nav a { border-bottom: 1px solid #493d43; text-align: center; }
    .gallery-main { padding-block: 16px 26px; }
    .gallery-intro { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
    .gallery-intro-label { display: none; }
    .gallery-collections > header, .gallery-featured > header { display: block; }
    .gallery-collection-list article { grid-template-columns: 34px minmax(0,1fr); }
    .gallery-collection-list article > a { grid-column: 2; justify-self: start; }
    .gallery-showcase { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-links { columns: 1; }
    .gallery-category, .gallery-essay, .gallery-missing { padding: 19px; }
}
@media (max-width: 420px) {
    .gallery-showcase { grid-template-columns: 1fr; }
}
