/* A quiet, image-only projects gallery, matching the Videos and Audio galleries. Names and roles remain on accessible links. */
.main.projects-main { max-width: 1152px; width: 100%; min-width: 0; } /* 1080px of content, like /books */
.projects-gallery-page [hidden] { display: none !important; }
.projects-gallery-header h1 { font-family: 'EB Garamond', serif; font-size: 1.6rem; font-weight: 400; margin: 0 0 20px; }
/* The Projects shell styles .sub-tab as sentence links; restore the boxed tabs used on Videos and Audio. */
.projects-gallery-page .sub-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.projects-gallery-page .sub-tab { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--warm-gray); font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 400; text-transform: lowercase; text-decoration: none; transition: all 0.1s; }
.projects-gallery-page .sub-tab:hover { color: var(--ink); border-color: var(--warm-gray); }
.projects-gallery-page .sub-tab.active { color: var(--gold); border-color: var(--gold); background: rgba(201,162,39,0.08); font-weight: 400; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pg-card { min-width: 0; }
.pg-tile { position: relative; display: block; color: #fff; text-decoration: none; }
.pg-frame { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.pg-frame img { display: block; box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; }
.pg-open { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(12,24,33,0.62); color: #fff; opacity: 0; transition: opacity 150ms ease; }
.pg-open svg { width: 15px; height: 15px; fill: currentColor; }
a.pg-tile:hover .pg-open, a.pg-tile:focus-visible .pg-open { opacity: 1; }
.projects-more { margin-top: 28px; color: var(--warm-gray); font-size: 0.68rem; }
.projects-more + .projects-more { margin-top: 4px; }
.projects-more summary { display: list-item; cursor: pointer; width: fit-content; padding: 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; }
.projects-more ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 12px; }
.projects-more li { font-size: 0.72rem; line-height: 1.5; }
.projects-more a { color: inherit; text-decoration: none; }
.projects-more a:hover { color: var(--ink); text-decoration: underline; }
.projects-filter:focus-visible, .projects-more a:focus-visible, .projects-more summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
a.pg-tile:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 8px; }
@media (min-width: 1260px) { .projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 768px) { .projects-gallery-page .sub-tab { min-height: 38px; } .projects-grid { gap: 10px; } }
@media (max-width: 560px) { .projects-more ul { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .pg-open { display: none; } }
@media (prefers-reduced-motion: reduce) { .pg-open, .projects-gallery-page .sub-tab { transition: none; } }
