.story-page {
  background-color: #1fb001;
}

.theory-page {
  background-color: #b41800;
}

.works-page {
  background-color: #a16bd0;
}

.trade-page {
  background-color: #39cfc3;
}

.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 {
  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-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 6vh, 4rem);
  padding-top: clamp(0.5rem, 1.5vh, 1rem);
  border-top: 2px solid rgba(16, 16, 15, 0.35);
}

.post-text-more:focus-visible,
.photo-carousel-arrow:focus-visible {
  outline: 3px solid #ffb700;
  outline-offset: 5px;
}

.catalogue-heading {
  margin: 0 0 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;
}

.photo-carousel {
  width: 100%;
  max-width: 680px;
}

.photo-carousel-stage {
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.photo-carousel-slides {
  overflow: hidden;
  overflow: clip;
}

.photo-carousel-track {
  position: relative;
}

.photo-carousel-before,
.photo-carousel-after {
  position: absolute;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.photo-carousel-before { left: -100%; }
.photo-carousel-after { left: 100%; }

.photo-carousel-slide {
  overflow: hidden;
}

.photo-carousel-slide .content-image {
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #10100f;
  user-select: none;
  -webkit-user-select: none;
}

.photo-carousel-slide img[role="button"]:focus-visible {
  outline-offset: -5px;
}

.photo-carousel-arrow,
.photo-carousel-count {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(16, 16, 15, 0.86);
  color: #fff;
}

.photo-carousel-arrow {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border-radius: 50%;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.photo-carousel-previous { left: 12px; }
.photo-carousel-next { right: 12px; }
.photo-carousel-arrow[aria-disabled="true"]:not(:focus) { visibility: hidden; }
.photo-carousel-arrow[aria-disabled="true"] { cursor: default; }

.photo-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.photo-carousel-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid #5b5043;
  border-radius: 50%;
}

.photo-carousel-dots .is-current {
  border-color: #8f1e25;
  background: #8f1e25;
}

.photo-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.photo-carousel-count {
  display: none;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  font: 700 0.85rem/1.2 system-ui, sans-serif;
}

@media (pointer: coarse) {
  .photo-carousel-count { display: block; }
  .photo-carousel-count.is-visible { opacity: 1; }
  .photo-carousel-arrow:not(:focus-visible) {
    opacity: 0;
    pointer-events: none;
  }
  .photo-carousel-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-carousel-count { transition: none; }
}

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

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

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

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

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

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

.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;
  }
}

.section-stage {
  --page-title-top: clamp(4.5rem, 12vh, 8rem);
  --page-title-size: calc(clamp(2.5rem, min(4vw, 6.5vh), 4.25rem) * 0.9);
}

.section-stage > :is(.story-content, .theory-content, .catalogue-content, .contact-content) {
  padding-top: var(--page-title-top);
}

.section-stage .page-title {
  font-family: inherit;
  font-size: var(--page-title-size);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-stage .theory-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.25em;
  row-gap: 0.12em;
  white-space: normal;
  margin-bottom: clamp(1.9rem, 4.6vh, 3.75rem);
}

.theory-title .streetpop-word { margin-left: 0; font-size: 1.55em; }
.theory-accent {
  font-family: "Stereofidelic", Impact, sans-serif;
  font-weight: normal;
  transform: translateY(0.055em);
  white-space: nowrap;
}
.theory-accent sup a { color: inherit; margin-left: 0.12em; }
.theory-page .theory-content {
  --theory-prose-size: clamp(1.2rem, min(1.95vw, 3.2vh), 1.75rem);
  color: #000;
}

.theory-content :is(.theory-intro, .theory-notes, .theory-extra, .theory-footnote) {
  max-width: none;
  font-size: var(--theory-prose-size);
  font-weight: 500;
  line-height: 1.28;
  text-align: justify;
}

.theory-content :is(.theory-notes, .theory-extra) { margin-top: 1em; }
.theory-intro > blockquote { margin: 0 0 1em; text-align: center; font-style: italic; }
.theory-content .theory-footnote { margin-top: 1.5em; font-size: calc(var(--theory-prose-size) * 0.75); }
.theory-footnote-mark { float: left; margin-right: 0.12em; }
.theory-page .theory-content a { color: inherit; text-decoration: underline; }
.theory-page .theory-slogan {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

@media (max-width: 767.98px) {
  .theory-title .streetpop-word { font-size: 1.25em; }
}

.content-entry:not(.content-layout-responsive) {
  width: 100%;
  max-width: 824px;
  margin-inline: auto;
}

.content-entry:not(.content-layout-responsive) > :is(.photo-carousel, .content-figure) {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.content-entry .catalogue-heading {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

.content-entry .content-image-caption { text-align: center; text-wrap: pretty; overflow-wrap: anywhere; }
.post-text { min-width: 0; overflow-wrap: anywhere; }
.post-text .content-body { text-align: justify; }
.post-text-left .post-text .content-body { text-align: left; }
.catalogue-responsive-intro .post-text .content-body { margin-top: 0; }

.post-text-more {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #343137;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.post-text-more[hidden] { display: none; }
.post-text-more:hover { text-decoration: underline; }

@media (max-width: 767.98px), (max-height: 560px) {
  .section-stage {
    --page-title-top: 1.65rem;
    --page-title-size: calc(clamp(2rem, 10vw, 2.75rem) * 0.9);
  }
}

@media (max-width: 991.98px) and (max-height: 550px) and (orientation: landscape) {
  .section-stage { --page-title-size: calc(clamp(1.65rem, 5.5vw, 2.5rem) * 0.9); }
}
