/* Product photographic studies. All cropping belongs to thumbnails; the viewer uses the complete source. */
.work-detail .work-gallery-v3 {
  padding:clamp(42px,5.6vw,88px) max(5.5vw,22px);
  display:grid;
  grid-template-columns:minmax(210px, .72fr) minmax(0, 2fr);
  column-gap:clamp(24px,4vw,72px);
  row-gap:20px;
  align-items:start;
}
.work-gallery-v3 .work-photo-heading {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:15px; margin:0; align-self:center;
}
.work-gallery-v3 .work-photo-heading h2 {font:400 clamp(40px,4.1vw,66px)/.99 var(--serif);letter-spacing:-.037em;margin:0}
.work-gallery-v3 .work-photo-heading h2 em {font-weight:400;}
.work-gallery-v3 .work-photo-heading>span {font-size:10px;line-height:1.5;}
.work-gallery-v3 .work-photo-grid {
  --gap:clamp(12px,1.35vw,24px);
  display:grid; width:100%; max-width:calc(1008px + 2 * var(--gap));
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--gap); justify-self:start; align-items:start;
}
.work-gallery-v3 .work-photo-grid>figure {
  grid-row:auto;grid-column:auto; width:100%; max-width:none;margin:0;background:transparent;
}
.work-gallery-v3 .work-gallery-link {
  display:block; position:relative; width:100%; aspect-ratio:3/2;
  overflow:hidden; background:#1a1713; cursor:zoom-in;
}
.work-gallery-v3 .work-gallery-link:focus-visible {outline:2px solid #ebd3af;outline-offset:3px;}
.work-gallery-v3 .work-photo-grid .work-gallery-link img {
  width:100%;height:100%;aspect-ratio:auto;display:block;object-fit:cover;object-position:var(--focal,50% 50%);
}
.work-gallery-v3 .work-photo-grid figcaption {
  margin:0; background:transparent; padding:8px 0 0;color:#d1bda0;
  font:500 11px/1.45 var(--sans);letter-spacing:.105em;
}
.work-gallery-v3 .work-gallery-link:after {
  content:'';position:absolute;height:10px;width:10px;right:10px;bottom:10px;
  background:center/10px 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f4e4cd' stroke-width='1.6'%3E%3Cpath d='M2 6V2h4M10 2h4v4M14 10v4h-4M6 14H2v-4'/%3E%3C/svg%3E");
  box-shadow:0 0 0 5px rgba(21,18,15,.76);background-color:rgba(21,18,15,.76);pointer-events:none;
}
.work-gallery-dialog {
  box-sizing:border-box;margin:auto;padding:clamp(10px,2vw,22px);border:1px solid #6e604e;
  inset:0;min-width:0;width:max-content;max-width:calc(100vw - 24px); height:max-content;
  max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px);
  color:#ecdfca;background:#201b16;overflow:auto;
}
.work-gallery-dialog::backdrop {background:rgba(13,11,9,.87);}
.work-gallery-dialog[open] {display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;}
.work-gallery-toolbar {display:flex;justify-content:space-between;align-items:center;gap:20px;}
.work-gallery-caption {margin:0;font:500 11px/1.45 var(--sans);letter-spacing:.09em;}
.work-gallery-close {display:grid;place-items:center;align-self:flex-start;width:44px;height:44px;flex:none;border:1px solid #8e795c;color:#f4e6d0;background:#271f19;cursor:pointer;font:400 27px/1 var(--sans);}
.work-gallery-close:focus-visible {outline:2px solid #ebd3af;outline-offset:2px;}
.work-gallery-dialog .work-gallery-full {
  display:block;width:auto;height:auto;justify-self:center;align-self:center;
  max-width: min(1400px, calc(100vw - 80px));max-height:calc(100vh - 140px); max-height:calc(100dvh - 140px);
  object-fit:contain;
}
@media(max-width:1080px) {
  .work-detail .work-gallery-v3 {display:block;}
  .work-gallery-v3 .work-photo-heading {margin:0 0 22px;gap:10px;}
  .work-gallery-v3 .work-photo-heading h2 {font-size:clamp(38px,5.2vw,55px);}
  .work-gallery-v3 .work-photo-heading h2 br {display:none;}
  .work-gallery-v3 .work-photo-heading h2 em:before{content:' ';}
}
@media(max-width:690px) {
  .work-gallery-v3 .work-photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));--gap:14px;max-width:686px;}
}
@media(max-width:299px) {
  .work-gallery-v3 .work-photo-grid {grid-template-columns:minmax(0,1fr);--gap:18px;max-width:336px;}
  .work-gallery-v3 .work-photo-grid figcaption {padding-top:7px;}
}
@media(max-width:600px),(max-height:520px){
  .work-gallery-dialog {padding:8px;max-width:calc(100vw - 10px);max-height:calc(100vh - 10px);max-height:calc(100dvh - 10px);}
  .work-gallery-dialog[open]{gap:5px;}
  .work-gallery-dialog .work-gallery-full {max-width:calc(100vw - 30px);max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);}
}
