#collection {
  width: min(1040px, 94vw);
  max-height: min(89svh, 940px);
  padding: clamp(18px, 2.8vw, 38px);
  color: #f3eee0;
  background: #10242a;
  border-color: #7f8a7666;
}
#collection :is(.collection-index, .project-sheet, .project-back, .project-related)[hidden] {
  display: none;
}
#collection .dialog-head h2 {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
}
#collection .work-grid {
  gap: clamp(17px, 2.2vw, 30px) clamp(13px, 1.7vw, 23px);
}
#collection .work {
  min-width: 0;
  border-bottom: 1px solid #bbba9952;
  padding-bottom: 4px;
}
#collection .work-inspect {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
}
#collection .work-inspect img {
  aspect-ratio: 20 / 13;
  border: 1px solid #babba143;
  margin-bottom: 10px;
}
#collection .work-name {
  display: block;
  font: 650 clamp(1.05rem, 1.4vw, 1.25rem)/1.15 Barlow, sans-serif;
}
#collection .work-category {
  display: block;
  margin-top: 3px;
  color: #c2cec7;
  font-size: .82rem;
}
#collection .work a.work-visit {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 36px;
  font-size: .8rem;
  color: #e2c693;
}
#collection .work-inspect:hover .work-name,
#collection .work-visit:hover,
#collection .project-related:hover span {
  text-decoration: underline;
  text-underline-offset: .2em;
}
#collection :is(button, a):focus-visible {
  outline: 2px solid #f8dab1;
  outline-offset: 3px;
}
#collection.showing-project {
  width: min(1280px, 95vw);
  padding: 0;
  background: #10242a;
}
.project-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px clamp(15px, 2.5vw, 36px);
  border-bottom: 1px solid #abb29c40;
}
.project-toolbar button {
  color: #e8e3d6;
  background: transparent;
  border: 0;
}
.project-back {
  padding: 10px 0;
  font: 550 .84rem Barlow, sans-serif;
}
.project-back span { margin-right: .35em; }
.project-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  font: 300 1.75rem/1 Barlow, sans-serif;
}
.project-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(275px, .87fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 46px);
  padding: clamp(22px, 3vw, 40px);
}
.project-capture { min-width: 0; margin: 0; }
.project-capture img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #abb29c61;
  box-shadow: 0 14px 35px #0511164a;
}
.project-story { min-width: 0; }
.project-category {
  font: 600 .7rem/1.4 Barlow, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #ddc59d;
}
.project-story h2 {
  font: 400 clamp(2.3rem, 4.3vw, 4.4rem)/.98 Instrument, Georgia, serif;
  margin: .18em 0 .33em;
  text-wrap: balance;
}
.project-story h2:focus { outline: none; }
.project-copy,
.project-feature {
  font: 400 clamp(.92rem, 1.05vw, 1.04rem)/1.55 Arial, sans-serif;
  color: #eeeade;
  margin: .6em 0;
}
.project-feature { color: #c2cdc7; }
.project-visit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1em;
  padding: 11px 15px;
  margin-top: .6rem;
  border-radius: 3px;
  background: #e7cca1;
  color: #10242a;
  font: 650 .94rem/1.25 Barlow, sans-serif;
}
.project-visit:hover { background: #f2d9b1; }
.project-related {
  display: flex;
  align-items: center;
  column-gap: .55em;
  min-height: 42px;
  margin-top: .15rem;
  padding: 0;
  color: #e3cba8;
  font-size: .88rem;
  background: transparent;
  border: 0;
}
@media (max-width: 760px) {
  #collection.showing-project { width: min(94vw, 570px); }
  .project-toolbar { min-height: 44px; padding: 2px 12px; }
  .project-spread { display: grid; grid-template-columns: 1fr; gap: 0; padding: 16px; }
  .project-story { display: contents; }
  .project-story h2 { order: 1; font-size: clamp(2.4rem, 8.5vw, 3.8rem); }
  .project-capture { order: 2; margin: 2px 0 8px; }
  .project-copy { order: 3; }
  .project-feature { order: 4; margin-top: 0; }
  .project-visit { order: 5; justify-self: start; }
  .project-related { order: 6; justify-self: start; }
}
@media (max-width: 450px) {
  #collection .work-grid { gap: 18px 12px; }
  #collection .work a.work-visit { min-height: 42px; }
}
