.content-feed {
  width: 100%;
}

[data-content-source] img[role="button"] {
  cursor: zoom-in;
}

[data-content-source] img[role="button"]:focus-visible {
  outline: 3px solid #ffb700;
  outline-offset: 5px;
}

.photo-viewer {
  box-sizing: border-box;
  width: min(1060px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: clamp(12px, 2vw, 22px);
  overflow: auto;
  border: 4px solid #10100f;
  background: #e6ddc7;
  color: #10100f;
  box-shadow: 7px 7px 0 #a51f2c, -5px -5px 0 #38c7c1;
}

.photo-viewer::backdrop {
  background: rgba(16, 16, 15, 0.88);
}

.photo-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.photo-viewer-toolbar button {
  border: 2px solid #10100f;
  padding: 8px 12px;
  background: #10100f;
  color: #38c7c1;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.photo-viewer button:focus-visible {
  outline: 3px solid #ffb700;
  outline-offset: 3px;
}

.photo-viewer-stage {
  display: flex;
  overflow: auto;
  max-height: calc(100dvh - 200px);
  padding: 6px;
  border-top: 3px solid #a51f2c;
  border-bottom: 3px solid #10100f;
}

.photo-viewer-picture {
  display: block;
  flex: 0 0 auto;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-viewer-picture img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(980px, calc(100vw - 104px));
  max-height: min(760px, calc(100dvh - 220px));
  object-fit: contain;
}

.photo-viewer-caption {
  margin: 14px 0 0;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
}

.photo-viewer-caption:empty { display: none; }
.photo-viewer.is-full-size { width: calc(100vw - 40px); }
.photo-viewer.is-full-size .photo-viewer-picture { cursor: zoom-out; }
.photo-viewer.is-full-size img { max-width: none; max-height: none; }

.content-loading,
.content-error {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
}

.content-entry {
  margin: 0 0 clamp(3rem, 8vh, 5.5rem);
}

.content-image-link {
  display: block;
  margin: 0 0 clamp(1.5rem, 4vh, 2.75rem);
  color: inherit;
  text-decoration: none;
}

.content-image-link:focus {
  outline: 3px solid #ffb700;
  outline-offset: 4px;
}

.content-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--zlxv-black);
  box-shadow: 0 2px 5px rgba(16, 16, 15, 0.32);
}

.content-figure {
  margin: 0;
}

.content-image-caption {
  margin: 0;
  padding: 0.65rem 0.15rem 0;
  font-size: clamp(1rem, min(1.5vw, 2.4vh), 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.content-entry-story .content-image-link {
  max-width: 760px;
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
}

.content-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vh, 4rem);
  margin-top: clamp(2rem, 6vh, 4rem);
}

.content-entry-story > .content-gallery {
  max-width: 760px;
}

.catalogue-details {
  width: 100%;
}

.catalogue-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--zlxv-black);
  cursor: pointer;
  list-style: none;
}

.catalogue-summary::-webkit-details-marker {
  display: none;
}

.catalogue-summary::after {
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 0.42rem 0.7rem 0.35rem;
  border: 2px solid currentColor;
  color: #8f1e25;
  content: "+ View more";
  font-size: clamp(1rem, min(1.45vw, 2.35vh), 1.25rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.catalogue-details[open] > .catalogue-summary::after {
  content: "\2212  Show less";
}

.catalogue-summary:hover::after,
.catalogue-summary:focus::after {
  color: #ffb700;
}

.catalogue-summary:focus {
  outline: none;
}

.catalogue-summary:focus-visible {
  outline: 3px solid #ffb700;
  outline-offset: 5px;
}

.catalogue-summary-heading {
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, min(3vw, 4.4vh), 2.8rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.catalogue-lead-figure {
  width: 100%;
  max-width: 680px;
}

.catalogue-expanded {
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
}

/* Comparison: retain the original feed width while giving the responsive
   example room to use columns. Navigation keeps its reserved right-hand space. */
.works-layout-comparison .catalogue-content {
  max-width: 1600px;
}

.story-page .story-content {
  max-width: 1600px;
}

.works-layout-comparison .content-entry:not(.content-layout-responsive) {
  max-width: 824px;
}

.content-layout-responsive .catalogue-details[open] > .catalogue-summary .catalogue-lead-figure {
  display: none;
}

.catalogue-responsive-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.catalogue-responsive-intro > * {
  flex: 1 1 300px;
  min-width: 0;
}

.catalogue-responsive-intro > .content-body {
  margin-top: 0;
}

.content-layout-responsive .content-gallery {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.content-layout-responsive .content-gallery > .content-figure {
  flex: 1 1 300px;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .catalogue-responsive-intro,
  .content-layout-responsive .content-gallery {
    flex-direction: column;
  }

  .catalogue-responsive-intro > *,
  .content-layout-responsive .content-gallery > .content-figure {
    flex: none;
    width: 100%;
  }
}

.catalogue-expanded .content-gallery {
  padding-top: clamp(0.5rem, 1.5vh, 1rem);
  border-top: 2px solid rgba(16, 16, 15, 0.35);
}

.content-details {
  border: 0;
}

.content-summary {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  max-width: 100%;
  padding: 0.15rem 0;
  color: var(--zlxv-black);
  cursor: pointer;
  list-style: none;
}

.content-summary::-webkit-details-marker {
  display: none;
}

.content-summary::after {
  margin-left: 0.45em;
  color: #a51f2c;
  content: "+";
  font-size: 1.15em;
  font-weight: 900;
  line-height: 0.8;
}

.content-details[open] > .content-summary::after {
  content: "−";
}

.content-summary:hover,
.content-summary:focus {
  color: #84231f;
  outline: none;
}

.content-summary:focus-visible {
  outline: 3px solid #ffb700;
  outline-offset: 4px;
}

.content-summary-heading {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.content-body {
  margin-top: 1.25rem;
  font-size: clamp(1.2rem, min(1.95vw, 3.2vh), 1.75rem);
  font-weight: 500;
  line-height: 1.28;
}

.content-text-small .content-body {
  font-size: clamp(1rem, min(1.55vw, 2.6vh), 1.35rem);
}

.content-text-large .content-body {
  font-size: clamp(1.4rem, min(2.3vw, 3.8vh), 2rem);
}

.content-body > :first-child,
.theory-richtext > :first-child {
  margin-top: 0;
}

.content-body > :last-child,
.theory-richtext > :last-child {
  margin-bottom: 0;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  margin: 1.2em 0 0.45em;
  font-weight: 900;
  line-height: 1;
}

.content-body img,
.theory-richtext img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.theory-richtext p {
  margin-bottom: 1em;
}

@media (max-width: 767.98px) {
  .content-entry {
    margin-bottom: 3.25rem;
  }

  .content-image-link {
    margin-bottom: 1.5rem;
  }
}
