/* Layout is enhanced only after the original artwork and captions are connected. */
[data-qoq-gallery="artworks"][data-qoq-gallery-ready="1"] {
 margin: 24px 0 36px;
 width: 100%;
 max-width: 100%;
 min-width: 0;
}
.qoq-article-gallery-track {
 width: 100%;
 max-width: 100%;
 min-width: 0;
}
.qoq-article-gallery-track > .qoq-article-gallery-slide[hidden] {
 display: none !important;
}
.qoq-article-gallery-slide {
 min-width: 0;
 min-height: 520px;
}
.qoq-article-gallery-slide > p {
 margin: 0 0 10px;
}
.qoq-article-gallery-image {
 display: flex;
 align-items: center;
 justify-content: center;
 box-sizing: border-box;
 width: 100%;
 height: 420px;
 max-height: 420px;
 background: #f6f3ee;
 cursor: zoom-in;
 touch-action: pan-y;
}
.qoq-article-gallery-image img {
 display: block;
 width: 100% !important;
 height: 100% !important;
 max-width: 100% !important;
 max-height: 100% !important;
 margin: 0 !important;
 object-fit: contain;
 float: none !important;
}
.qoq-article-gallery-image:focus-visible {
 outline: 2px solid #84642e;
 outline-offset: 3px;
}
.qoq-article-gallery-controls {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 18px;
 margin: 14px 0 0;
}
.qoq-article-gallery-controls button {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 box-sizing: border-box;
 min-width: 44px;
 min-height: 44px;
 padding: 8px 12px;
 border: 1px solid #a78342;
 background: #fff;
 color: #6b502a;
 font: 22px/1 Arial, sans-serif;
 cursor: pointer;
}
.qoq-article-gallery-controls button:hover {
 background: #f6f0e5;
}
.qoq-article-gallery-controls button:focus-visible {
 outline: 2px solid #84642e;
 outline-offset: 3px;
}
.qoq-article-gallery-counter {
 min-width: 5ch;
 text-align: center;
 color: #51483c;
 font: 14px/1.4 Arial, sans-serif;
}
.qoq-article-gallery-cue {
 display: none;
}
@media (max-width: 660px) {
 .qoq-article-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  column-gap: 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
 }
 .qoq-article-gallery-track::-webkit-scrollbar { display: none; }
 .qoq-article-gallery-slide {
  min-height: 400px;
  scroll-snap-align: start;
 }
 .qoq-article-gallery-image {
  height: 300px;
  touch-action: auto;
 }
 .qoq-article-gallery-controls { margin-top: 10px; }
 .qoq-article-gallery-counter { font-size: 12px; }
 .qoq-article-gallery-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a78342;
  cursor: pointer;
 }
 .qoq-article-gallery-cue .qoq-story-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 38px;
  margin: 0;
  font: 23px/1 Arial, sans-serif;
 }
 .qoq-article-gallery-cue svg {
  width: 25px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
 }
 .qoq-article-gallery-cue:focus-visible,
 .qoq-article-gallery-track:focus-visible {
  outline: 2px solid #84642e;
  outline-offset: 3px;
 }
}
@media (max-width: 660px), (hover: none), (pointer: coarse) {
 .qoq-article-gallery-controls button { display: none; }
}
.photo-lightbox.qoq-artwork-viewer { z-index: 1100; }
.photo-lightbox.qoq-artwork-viewer figure {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-self: center;
 max-width: min(1000px, calc(100vw - 112px));
 max-height: calc(100dvh - 96px);
 overflow: auto;
 margin: 0;
}
.photo-lightbox.qoq-artwork-viewer figure img {
 width: auto;
 max-width: 100%;
 max-height: calc(100dvh - 240px);
 object-fit: contain;
 flex-shrink: 0;
}
.photo-lightbox.qoq-artwork-viewer figcaption {
 white-space: pre-line;
 padding: 16px;
 color: #fff;
 font: 16px/1.5 Arial, sans-serif;
 text-align: center;
}
.photo-lightbox.qoq-artwork-viewer button[hidden] { display: none !important; }
@media (max-width: 480px) {
 .photo-lightbox.qoq-artwork-viewer figure {
  max-width: calc(100vw - 64px);
 }
}

