:root { --work-frame-ratio: 16 / 10; }
.recent-cover { aspect-ratio: var(--work-frame-ratio); overflow: hidden; border-radius: .8rem; background: #f2f2f2; }
.recent-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.type-cover { display: grid; align-content: center; justify-items: center; background: #171717; color: #fff; }
.type-cover span { font-size: .875rem; }
.type-cover b { font-size: clamp(2rem,3.75vw,3.5rem); letter-spacing: -.07em; }
.portfolio-gallery .items { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2.25rem 1rem; }
.portfolio-gallery .items li { padding: 0; border: 0; }
.portfolio-gallery .gallery-preview { display: block; }
.portfolio-gallery .gallery-date { display: block; margin: .75rem 0 .3rem; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.portfolio-gallery .items h3 { letter-spacing: -.035em; }
.portfolio-gallery .items p { font-size: .95rem; line-height: 1.5; }
.portfolio-gallery .items li > a:not(.gallery-preview) { display: inline-block; margin: .25rem .5rem 0 0; }
.portfolio-gallery .type-cover { padding: .65rem; text-align: center; }
.portfolio-gallery .type-cover b { font-size: clamp(1.15rem,2.4vw,2.1rem); }
@media (max-width: 850px) { .portfolio-gallery .items { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.work-page .intro { padding-block: clamp(1.5rem,3vw,2.5rem) 1rem; }
.work-page .intro h1 { margin: 0; }
.work-page .intro p { margin: .6rem 0 0; }
.work-page .portfolio-gallery { margin-top: 1rem; }
.portfolio-gallery .controls { display: grid; gap: .8rem; }
.portfolio-gallery .controls input { width: min(100%,30rem); }
.portfolio-gallery .controls :is(input,select) { min-height: 44px; border-radius: .55rem; font: inherit; }
.portfolio-gallery .controls label { min-width: 0; }
.portfolio-gallery .area-select { display: none; }
.area-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.area-buttons button,.clear-filters { cursor: pointer; color: var(--ink); background: #fff; font: inherit; font-size: .9rem; }
.area-buttons button { border: 1px solid var(--line); border-radius: 2rem; padding: .65rem .85rem; }
.area-buttons button[aria-pressed="true"] { color: #fff; background: #161616; border-color: #161616; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; }
.result-bar .total { margin: 0; }
.clear-filters { border: none; text-decoration: underline; padding: .6rem 0; }
.portfolio-gallery .items { margin-top: 0; }
.portfolio-gallery details summary { display: list-item; font-weight: 550; font-size: .9rem; margin: .45rem 0; }
.work-detail-figure { margin: .85rem 0 0; }
.work-detail-figure img { display: block; max-width: 100%; height: auto; border-radius: .45rem; }
.work-detail-figure figcaption { padding-block: .5rem 0; line-height: 1.55; }
@media (min-width:851px) and (max-width:1050px) {
  .portfolio-gallery .items { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:740px) {
  .portfolio-gallery .controls { grid-template-columns: minmax(0,1fr) minmax(7.25rem,36%); gap: .6rem; }
  .portfolio-gallery .controls :is(input,select) { width: 100%; padding-inline: .5rem; }
  .portfolio-gallery .area-select { display: block; }
  .area-buttons { display: none; }
  .portfolio-gallery .items { gap: 1.75rem .75rem; }
  .portfolio-gallery .items h3 { font-size: 1.03rem; line-height: 1.3; }
}
