/* Art-first arrangement from the existing staggered Figma direction. */
.gallery-landing .collection-grid:not(.list) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:96px 72px;align-items:start;padding:60px 0 100px}
.gallery-landing .gl-work {min-width:0;display:flex;flex-direction:column;gap:0;align-self:start;text-decoration:none}
.gallery-landing .gl-work figure {display:block;aspect-ratio:auto;background:none;overflow:visible;margin:0 0 18px}
.gallery-landing .gl-work img {display:block;width:100%;height:auto;max-width:100%;object-fit:contain;transform:none;transition:none}
.gallery-landing .gl-work:hover img {transform:none}
.gallery-landing .gl-work h2 {font-size:25px;line-height:1.2;font-weight:500;letter-spacing:-.03em;margin:0}
.gallery-landing .gl-work .gl-title-arrow {display:inline-block;width:.75em;height:.75em;font-size:17px;vertical-align:baseline}
.gallery-landing .gl-work:hover h2 {text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.gallery-landing .gl-work .gl-credit {font-size:12px;line-height:1.5;margin:9px 0 0;color:inherit}
.gallery-landing .collection-grid:not(.list) .gl-work:nth-child(6n+1) {width:100%;margin-top:0;justify-self:start}
.gallery-landing .collection-grid:not(.list) .gl-work:nth-child(6n+2) {width:94%;margin-top:100px;justify-self:end}
.gallery-landing .collection-grid:not(.list) .gl-work:nth-child(6n+3) {width:90%;margin-top:0;justify-self:start}
.gallery-landing .collection-grid:not(.list) .gl-work:nth-child(6n+4) {width:100%;margin-top:64px;justify-self:end}
.gallery-landing .collection-grid:not(.list) .gl-work:nth-child(6n+5) {width:100%;margin-top:40px;justify-self:start}
.gallery-landing .collection-grid:not(.list) .gl-work:nth-child(6n) {width:90%;margin-top:0;justify-self:end}
.gallery-landing .collection-grid:not(.list) .gl-work.gl-work-wide {grid-column:1/-1;width:100%;margin-top:0;justify-self:stretch}
/* Search results form a compact set; hidden works never leave vacant slots. */
body.gallery-landing:has(.collection-tools input:not(:placeholder-shown)) .collection-grid:not(.list) .gl-work:nth-child(n) {width:100%;margin-top:0;justify-self:stretch}
/* The compact list uses the ruled thumbnail / metadata / title Figma option. */
.gallery-landing .collection-grid.list .gl-work {position:relative;display:grid;grid-template-columns:160px 24% minmax(0,1fr) 28px;align-items:center;gap:32px;width:100%;min-height:120px;margin:0;padding:0 24px 0 0;border-bottom:1px solid #BFBFBC;color:#15161A}
.gallery-landing .collection-grid.list .gl-work:first-child {border-top:1px solid #BFBFBC}
.gallery-landing .collection-grid.list .gl-work figure {display:flex;align-items:center;justify-content:center;grid-column:1;grid-row:1;width:160px;height:120px;aspect-ratio:auto;margin:0;background:#F2F2ED}
.gallery-landing .collection-grid.list .gl-work img {width:100%;height:100%;object-fit:contain}
.gallery-landing .collection-grid.list .gl-work h2 {grid-column:3;grid-row:1;font-size:30px;line-height:1.16;margin:0;padding:16px 0;letter-spacing:-.035em}
.gallery-landing .collection-grid.list .gl-work .gl-title-arrow {position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:28px;line-height:1}
.gallery-landing .collection-grid.list .gl-work .gl-credit {grid-column:2;grid-row:1;margin:0;font-size:13px;line-height:1.5}
@media(max-width:1100px){
  .gallery-landing .collection-grid:not(.list) {grid-template-columns:1fr;gap:64px}
  .gallery-landing .collection-grid:not(.list) .gl-work:nth-child(n) {width:100%;margin-top:0;justify-self:stretch}
}
@media(max-width:900px) and (min-width:601px){
  .gallery-landing .collection-grid.list .gl-work {grid-template-columns:112px 140px minmax(0,1fr) 24px;gap:24px;padding-right:16px}
  .gallery-landing .collection-grid.list .gl-work figure {width:112px;height:112px}
  .gallery-landing .collection-grid.list .gl-work h2 {font-size:25px}
  .gallery-landing .collection-grid.list .gl-work .gl-title-arrow {right:16px;font-size:25px}
}
@media(max-width:600px){
  .gallery-landing .collection-grid:not(.list) {grid-template-columns:1fr;gap:48px;padding:38px 0 68px}
  .gallery-landing .collection-grid:not(.list) .gl-work:nth-child(n) {width:100%;margin-top:0;justify-self:stretch}
  .gallery-landing .gl-work h2 {font-size:27px}
  .gallery-landing .collection-grid:not(.list) .gl-title-tail {white-space:nowrap}
  .gallery-landing .gl-work figure {margin-bottom:16px}
  .gallery-landing .collection-grid.list .gl-work {grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto;gap:8px 16px;padding:16px 32px 16px 0;min-height:128px}
  .gallery-landing .collection-grid.list .gl-work figure {grid-column:1;grid-row:1/span 2;width:72px;height:96px}
  .gallery-landing .collection-grid.list .gl-work h2 {grid-column:2;grid-row:1;align-self:end;padding:0;font-size:22px}
  .gallery-landing .collection-grid.list .gl-work .gl-title-arrow {right:8px;font-size:24px}
  .gallery-landing .collection-grid.list .gl-work .gl-credit {grid-column:2;grid-row:2;align-self:start;font-size:12px}
}
