.art-page { --header-height: 132px; }
.art-page .site-header { height:var(--header-height); box-shadow:0 12px 30px rgba(0,0,0,.48); }
.art-page .header-inner { grid-template-rows:40px 1fr; }
.art-page .brand { width:min(450px,54vw); transform:translateY(-10px); }
.art-main { min-height:calc(100svh - 90px); padding-top:var(--header-height); background:#10161c url('assets/brushed-black-steel-baked.jpg') center top / cover; }
.gallery-wall {
  position:relative; padding:clamp(1.35rem,2.4vw,2.4rem) clamp(1.5rem,4vw,5rem) clamp(2rem,4vw,3rem);
  color:#22201d;
  background-color:#ddc5a5;
  background-image:linear-gradient(#ebd8bd88,#e4ceb088),url('assets/art-limestone-wall.png');
  background-position:center top;
  background-size:auto,560px auto;
  background-repeat:no-repeat,repeat;
  box-shadow:inset 0 11px 18px #241b1380,inset 0 -10px 20px #2f241774,0 12px 30px #0009;
}
.gallery-inner { position:relative; max-width:1660px; margin:auto; }
.gallery-heading { display:flex; align-items:center; gap:1.2rem; margin-bottom:clamp(.9rem,1.6vw,1.6rem); }
.gallery-heading h1 { margin:0; font:400 clamp(1.1rem,1.5vw,1.55rem)/1.2 Palatino,'Palatino Linotype',Georgia,serif; letter-spacing:.42em; text-transform:uppercase; white-space:nowrap; }
.gallery-heading span { flex:1; height:1px; background:#453c32; }
.collection-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(1.5rem,4vw,5rem); }
.collection { position:relative; min-width:0; margin:0; padding-top:.65rem; text-align:center; isolation:isolate; }
.collection::before { content:''; position:absolute; z-index:-1; top:.1rem; left:-10%; width:120%; height:calc(100% + 1.2rem); pointer-events:none; background:radial-gradient(ellipse 48% 80% at 50% 0%,#fff9e9d8 0%,#fff3d484 30%,#f9ecc738 62%,transparent 100%); opacity:0; transition:opacity .68s ease-in-out; }
.collection::after { content:''; position:absolute; top:-.2rem; left:0; width:100%; height:3px; background:linear-gradient(90deg,transparent 0%,#fff8e060 20%,#fff 46%,#fff 54%,#fff8e060 80%,transparent 100%); filter:drop-shadow(0 3px 3px #fff) drop-shadow(0 7px 7px #ffe8ba); transform:scaleX(0); transform-origin:center; opacity:0; pointer-events:none; transition:transform 1.65s cubic-bezier(.22,.61,.36,1),opacity .4s ease; }
.collection:is(:hover,:focus-within,.is-lit)::before { opacity:1; }
.collection:is(:hover,:focus-within,.is-lit)::after { transform:scaleX(1); opacity:1; }
.collection figcaption { position:relative; z-index:1; margin-bottom:.65rem; font:400 clamp(1rem,1.4vw,1.4rem)/1.3 Palatino,'Palatino Linotype',Georgia,serif; letter-spacing:.29em; text-transform:uppercase; }
.artwork-trigger { display:block; width:100%; padding:0; border:0; background:none; color:inherit; cursor:pointer; }
.artwork-trigger:focus-visible { outline:2px solid #413a31; outline-offset:7px; }
.frame { display:block; box-shadow:2px 6px 13px #21180f8c,5px 32px 24px #21180f00,0 0 24px #ffe4a100,inset 2px 2px 2px #fff6df00; filter:brightness(.76); transition:filter .68s ease-in-out,box-shadow .68s ease-in-out; }
.collection:is(:hover,:focus-within,.is-lit) .frame { filter:none; box-shadow:3px 16px 17px #21180fa6,5px 32px 24px #21180f70,0 0 24px #ffe4a15e,inset 2px 2px 2px #fff6df; }
.collection:nth-child(2):is(:hover,:focus-within,.is-lit) .frame,
.collection:nth-child(3):is(:hover,:focus-within,.is-lit) .frame { filter:none; }
.sample-crop { display:block; width:100%; aspect-ratio:340/434; overflow:hidden; background:#eee4d2; }
.sample-crop img { width:100%; height:100%; object-fit:contain; }
.art-page .site-footer { background:transparent; }
@media (min-width:901px) { .artwork-trigger { width:min(100%,max(130px,calc(78.3svh - 244px))); margin-inline:auto; } }
@media (max-width:900px) { .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:710px; margin:auto; gap:3rem 2rem; } .gallery-wall { padding-bottom:5rem; } }
@media (max-width:760px) {
  .art-page { --header-height:88px; }
  .art-page .header-inner { grid-template-rows:1fr; }
  .art-page .brand { width:min(280px,68vw); transform:translateY(5px); }
  .art-page .primary-menu { top:var(--header-height); }
  .gallery-wall { padding:2.2rem 1.1rem 4rem; }
  .gallery-heading { gap:.7rem; margin-bottom:2.5rem; }
  .gallery-heading h1 { font-size:1rem; letter-spacing:.27em; }
  .collection-grid { width:min(100%,350px); grid-template-columns:1fr; gap:3rem; }
  .collection { padding-top:1.2rem; }
  .collection figcaption { margin-bottom:1rem; font-size:1.1rem; }
}
@media (hover:none) {
  .collection:not(.is-lit)::before { opacity:0; }
  .collection:not(.is-lit)::after { opacity:0; transform:scaleX(0); }
  .collection:not(.is-lit) .frame { filter:brightness(.76); box-shadow:2px 6px 13px #21180f8c,5px 32px 24px #21180f00,0 0 24px #ffe4a100,inset 2px 2px 2px #fff6df00; }
}
@media (prefers-reduced-motion:reduce) { .collection::before,.collection::after,.frame { transition-duration:.01ms; } }

/* Use the same gray chrome moulding as the Inspire gallery. */
.art-page .frame { position:relative; border:16px solid transparent; padding:4%; background:linear-gradient(#fff,#fff) padding-box,#15181b border-box; }
.art-page .collection-moulding { position:absolute; inset:-16px; border:16px solid transparent; border-image:url('assets/requisite-chrome-moulding.png') 70 / 16px stretch; filter:grayscale(1) brightness(.64) contrast(1.05); pointer-events:none; }
.art-page .sample-crop { background:#fff; }
/* End at source row 1860: one lettering-height below the War Belt caption. */
.art-page .collection:first-child .sample-crop img { height:110.1075%; object-fit:contain; object-position:center top; }
@media(max-width:760px) {
 .art-page .frame { border-width:14px; }
 .art-page .collection-moulding { inset:-14px; border-width:14px; border-image-width:14px; }
}

/* Give every white mat the same depth beneath the gray frame. */
.art-page .frame::before { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; box-shadow:inset 2px 5px 7px #211b164d,inset -1px -1px 2px #fff8; }
.art-page .sample-crop { position:relative; box-shadow:1px 2px 4px #211b163d; }
.art-page .sample-crop::after { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; box-shadow:inset 1px 2px 4px #211b1640; }

/* Requisites uses a plain mat around its dark artwork. */
.art-page .collection:first-child .frame::before,
.art-page .collection:first-child .sample-crop::after { display:none; }
.art-page .collection:first-child .sample-crop { box-shadow:none; }

/* Center the visible Missions frame despite the uneven margins in its source. */
.art-page .collection:nth-child(4) .sample-crop img { transform:translate(.7631%,-.1221%); }
