/*
Theme Name: Richard Schlang 2030
Theme URI: https://www.richardschlang.com/
Author: Richard Schlang + OpenAI
Description: Minimal block theme for immersive digital exhibitions, photography, video and text.
Version: 0.20.6
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: richard-schlang-2030
*/

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: #0b0b0b;
}

a {
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
}

.rs-site-header { position: relative; z-index: 20; }

.rs-exhibition { overflow: clip; }

.rs-exhibition .wp-block-post-content { overflow: visible; }

.rs-full-bleed,
.wp-block-image.is-style-rs-full-bleed,
.wp-block-video.is-style-rs-cinema {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.rs-full-bleed img,
.wp-block-image.is-style-rs-full-bleed img,
.wp-block-video.is-style-rs-cinema video {
  display: block;
  width: 100%;
  height: auto;
}

.wp-block-video.is-style-rs-cinema video {
  max-height: 100svh;
  object-fit: cover;
  background: #000;
}

.wp-block-image.is-style-rs-monumental img {
  display: block;
  width: min(100%, 1400px);
  height: auto;
  margin-inline: auto;
}

.wp-block-group.is-style-rs-silence {
  padding-block: clamp(5rem, 14vw, 14rem);
}

.wp-block-group.is-style-rs-dark-room {
  background: #050505;
  color: #f7f7f7;
  padding-block: clamp(4rem, 10vw, 10rem);
}

.rs-title-translation {
  opacity: .65;
  font-style: italic;
}

.rs-artwork-meta {
  font-size: .78rem;
  line-height: 1.45;
  letter-spacing: .02em;
  opacity: .72;
}

.rs-home-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px);
}

.rs-home-card {
  min-height: 68svh;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.rs-home-card .wp-block-post-featured-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.rs-home-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,0) 58%);
  pointer-events: none;
}

.rs-home-card .rs-home-card-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: clamp(1.25rem, 3vw, 3rem);
}

@media (max-width: 782px) {
  .wp-block-image.is-style-rs-monumental {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .wp-block-image.is-style-rs-monumental img { width: 100%; }
  .rs-home-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .rs-home-card {
    min-height: 48svh;
  }

  .rs-home-card .rs-home-card-text {
    padding: 12px 10px 14px;
  }

  .rs-home-card .wp-block-post-title {
    font-size: clamp(16px, 4.8vw, 24px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
  }
}


/* v0.4 — Gutenberg adds vertical block spacing between Query items.
   In our CSS grid that margin survives and pushes item 2 downward.
   Reset it so every exhibition starts on the same horizontal line. */
.rs-home-grid .wp-block-post-template > li,
.rs-home-grid .wp-block-post-template > li + li {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}


/* v0.5 — exhibition titles on the home cards are always white. */
.rs-home-card .wp-block-post-title,
.rs-home-card .wp-block-post-title a,
.rs-home-card .wp-block-post-title a:visited,
.rs-home-card .wp-block-post-title a:hover,
.rs-home-card .wp-block-post-title a:focus {
  color: #fff !important;
}

.rs-exhibition .wp-block-post-featured-image img,.rs-exhibition .wp-block-post-content .wp-block-image:not(.rs-no-viewer) img{cursor:zoom-in}
.rs-artwork-viewer{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:clamp(12px,2vw,28px);box-sizing:border-box;background:rgba(0,0,0,.97);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease}
.rs-artwork-viewer.is-open{opacity:1;visibility:visible}
.rs-artwork-viewer img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-out;transform:scale(.985);transition:transform .22s ease;user-select:none}
.rs-artwork-viewer.is-open img{transform:scale(1)}
.rs-artwork-viewer__close{position:fixed;top:14px;right:16px;z-index:2;width:44px;height:44px;border:0;padding:0;background:transparent;color:#fff;font:300 30px/1 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;cursor:pointer;opacity:.72}
.rs-artwork-viewer__close:hover,.rs-artwork-viewer__close:focus-visible{opacity:1}
body.rs-viewer-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.rs-artwork-viewer,.rs-artwork-viewer img{transition:none}}


/* v0.8 — publication date as part of the exhibition-cover typography. */
.rs-home-card .rs-publication-date {
  margin: 0 0 .55em;
  color: rgba(255,255,255,.72);
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: lowercase;
}

@media (max-width: 782px) {
  .rs-home-card .rs-publication-date {
    margin-bottom: .45em;
    font-size: 10px;
    line-height: 1.15;
  }
}


/* v0.9 — the publication date becomes a major editorial element:
   day / month / year, like a visual diary rather than blog metadata. */
.rs-home-card .rs-publication-date {
  display: none !important;
}

.rs-home-card .rs-date-journal {
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  color: #fff;
  line-height: .9;
  text-transform: uppercase;
}

.rs-date-journal__weekday {
  display: block;
  margin-bottom: .2em;
  font-size: clamp(11px, 1.15vw, 18px);
  font-weight: 500;
  letter-spacing: .22em;
}

.rs-date-journal__day {
  display: block;
  margin-left: -.03em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 9vw, 144px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.055em;
}

.rs-date-journal__month {
  display: block;
  margin-top: .24em;
  font-size: clamp(14px, 1.65vw, 26px);
  font-weight: 500;
  letter-spacing: .18em;
}

.rs-date-journal__year {
  display: block;
  margin-top: .08em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5.8vw, 92px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}

.rs-date-journal::after {
  content: "";
  display: block;
  width: clamp(48px, 6vw, 92px);
  height: 1px;
  margin-top: clamp(14px, 1.5vw, 22px);
  background: rgba(255,255,255,.88);
}

@media (max-width: 782px) {
  .rs-home-card .rs-date-journal {
    margin-bottom: 12px;
  }

  .rs-date-journal__weekday {
    font-size: 9px;
    letter-spacing: .16em;
  }

  .rs-date-journal__day {
    font-size: clamp(54px, 18vw, 78px);
  }

  .rs-date-journal__month {
    margin-top: .22em;
    font-size: clamp(11px, 3.3vw, 15px);
    letter-spacing: .11em;
  }

  .rs-date-journal__year {
    font-size: clamp(34px, 11vw, 50px);
  }

  .rs-date-journal::after {
    width: 44px;
    margin-top: 10px;
  }
}


/* v0.10 — date as a typographic signature:
   1 | MARDI
   SEPTEMBRE
   2026 */
.rs-home-card .rs-date-journal {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas:
    "day divider weekday"
    "month month month"
    "year year year";
  align-items: center;
  justify-content: start;
  column-gap: clamp(10px, 1vw, 18px);
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  color: #fff;
  line-height: .9;
  text-transform: uppercase;
}

.rs-date-journal__day {
  grid-area: day;
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: clamp(58px, 6.5vw, 108px);
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.055em;
}

.rs-date-journal::before {
  content: "";
  grid-area: divider;
  display: block;
  width: 1px;
  height: .72em;
  min-height: 46px;
  background: rgba(255,255,255,.9);
  align-self: stretch;
  margin-block: 2px;
}

.rs-date-journal__weekday {
  grid-area: weekday;
  display: block;
  margin: 0;
  font-size: clamp(30px, 3.7vw, 62px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.035em;
}

.rs-date-journal__month {
  grid-area: month;
  display: block;
  margin-top: .28em;
  font-size: clamp(22px, 2.65vw, 44px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: .015em;
}

.rs-date-journal__year {
  grid-area: year;
  display: block;
  margin-top: .12em;
  font-family: inherit;
  font-size: clamp(32px, 3.7vw, 62px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.025em;
}

.rs-date-journal::after {
  grid-column: 1 / -1;
  content: "";
  display: block;
  width: clamp(48px, 6vw, 92px);
  height: 1px;
  margin-top: clamp(14px, 1.5vw, 22px);
  background: rgba(255,255,255,.88);
}

@media (max-width: 782px) {
  .rs-home-card .rs-date-journal {
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 6px;
    margin-bottom: 11px;
  }

  .rs-date-journal__day {
    font-size: clamp(42px, 13vw, 58px);
  }

  .rs-date-journal::before {
    min-height: 34px;
  }

  .rs-date-journal__weekday {
    font-size: clamp(19px, 5.9vw, 27px);
    letter-spacing: -.045em;
  }

  .rs-date-journal__month {
    margin-top: .3em;
    font-size: clamp(13px, 4vw, 18px);
    letter-spacing: 0;
  }

  .rs-date-journal__year {
    margin-top: .12em;
    font-size: clamp(20px, 6.2vw, 28px);
  }

  .rs-date-journal::after {
    width: 42px;
    margin-top: 9px;
  }
}


/* v0.10.1 — the entire exhibition cover card is clickable on the home page. */
.rs-home-card {
  cursor: pointer;
}

.rs-home-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}


/* v0.13 — Gutenberg stores the exhibition; the public site stages it. */
.rs-exhibition .rs-editorial-exhibition {
  width: 100%;
  max-width: none;
}

/* Editorial scaffolding is useful in Gutenberg, never in the exhibition. */
.rs-exhibition .rs-editorial-exhibition > .wp-block-heading,
.rs-exhibition .rs-editorial-exhibition > .wp-block-spacer {
  display: none !important;
}

/* An unused image slot disappears completely on the public site. */
.rs-exhibition .rs-editorial-exhibition > .wp-block-image:has(img:not([src])),
.rs-exhibition .rs-editorial-exhibition > .wp-block-image:has(img[src=""]) {
  display: none !important;
}

/* Intro: compact, editorial, then the exhibition starts. */
.rs-exhibition .rs-editorial-exhibition > p {
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}
.rs-exhibition .rs-editorial-exhibition > p + p { margin-top: 1.35rem; }

/* The artworks make the rhythm — no fake rooms, no giant spacer blocks. */
.rs-exhibition .rs-editorial-exhibition > .wp-block-image {
  width: min(100%, 1180px);
  margin: clamp(72px, 10vw, 150px) auto 0 !important;
}
.rs-exhibition .rs-editorial-exhibition > p + .wp-block-image,
.rs-exhibition .rs-editorial-exhibition > .wp-block-spacer + .wp-block-heading + .wp-block-image {
  margin-top: clamp(90px, 12vw, 180px) !important;
}
.rs-exhibition .rs-editorial-exhibition > .wp-block-image img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 86vh;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 782px) {
  .rs-exhibition .rs-editorial-exhibition > p,
  .rs-exhibition .rs-editorial-exhibition > .wp-block-image {
    width: 100%;
  }
  .rs-exhibition .rs-editorial-exhibition > .wp-block-image {
    margin-top: clamp(58px, 18vw, 92px) !important;
  }
  .rs-exhibition .rs-editorial-exhibition > .wp-block-image img {
    max-height: none;
  }
}


/* v0.13.1 — keep one Gutenberg exhibition, hide duplicated scaffolding. */
.rs-exhibition .rs-editorial-exhibition ~ .rs-editorial-exhibition {
  display: none !important;
}

/* v0.14 — UN MONDE ATROPHIÉ. Same classes are used in Gutenberg and front end. */
.rs-atrophied-world { width: 100%; max-width: none; }
.rs-atrophied-world .rs-aw-intro { width: min(100%, 980px); margin: 0 auto clamp(110px, 16vw, 240px); }
.rs-atrophied-world .rs-aw-kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.rs-atrophied-world .rs-aw-note { margin: 0; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.2; }
.rs-atrophied-world .rs-aw-room { width: 100%; max-width: none; }
.rs-atrophied-world .rs-aw-room figure { margin: 0; }
.rs-atrophied-world .rs-aw-room img { display: block; width: 100%; height: auto; }

/* 1 — the world appears isolated, almost clinical. */
.rs-atrophied-world .rs-aw-room-earth { width: min(76vw, 1120px); margin: 0 auto clamp(180px, 24vw, 360px); }

/* 2 — identity fractures into two unequal presences. */
.rs-atrophied-world .rs-aw-room-fracture {
  width: min(88vw, 1320px);
  margin: 0 auto clamp(210px, 27vw, 410px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(22px, 4vw, 72px);
  align-items: end;
}
.rs-atrophied-world .rs-aw-room-fracture .rs-aw-face { transform: translateY(clamp(70px, 9vw, 130px)); }

/* 3 — saturation: a vertical red image takes the room. */
.rs-atrophied-world .rs-aw-room-red { width: min(70vw, 880px); margin: 0 auto clamp(170px, 22vw, 330px); }
.rs-atrophied-world .rs-aw-room-red img { max-height: 92vh; object-fit: contain; }
.rs-atrophied-world .rs-aw-end { width: min(88vw, 1320px); margin: 0 auto; padding-bottom: clamp(80px, 12vw, 180px); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

@media (max-width: 782px) {
  .rs-atrophied-world .rs-aw-intro { width: calc(100% - 68px); margin-bottom: 120px; }
  .rs-atrophied-world .rs-aw-room-earth { width: calc(100% - 68px); margin-bottom: 180px; }
  .rs-atrophied-world .rs-aw-room-fracture {
    width: calc(100% - 68px);
    margin-bottom: 190px;
    grid-template-columns: 1fr;
    gap: 110px;
  }
  .rs-atrophied-world .rs-aw-room-fracture .rs-aw-face { width: 82%; margin-left: auto; transform: none; }
  .rs-atrophied-world .rs-aw-room-red { width: calc(100% - 68px); margin-bottom: 160px; }
  .rs-atrophied-world .rs-aw-end { width: calc(100% - 68px); }
}


/* v0.15 — artwork integrity first.
   No image in UN MONDE ATROPHIÉ may be cropped by the scenography. */

/* v0.14 inherited overflow:clip from the exhibition shell.
   The right-hand portrait was therefore visually cut by the viewport. */
.rs-exhibition:has(.rs-atrophied-world) {
  overflow: visible;
}

.rs-atrophied-world,
.rs-atrophied-world .rs-aw-room,
.rs-atrophied-world .rs-aw-room figure {
  box-sizing: border-box;
  overflow: visible !important;
  min-width: 0;
}

.rs-atrophied-world .rs-aw-room figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-atrophied-world .rs-aw-room img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Fracture remains asymmetric, but both complete works stay inside the stage. */
.rs-atrophied-world .rs-aw-room-fracture {
  width: min(84vw, 1260px);
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, .58fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}

.rs-atrophied-world .rs-aw-room-fracture .rs-aw-tongue,
.rs-atrophied-world .rs-aw-room-fracture .rs-aw-face {
  width: 100%;
  max-width: 100%;
}

.rs-atrophied-world .rs-aw-room-fracture .rs-aw-face {
  transform: translateY(clamp(52px, 6vw, 90px));
}

/* Vertical red work: monumental, never cropped. */
.rs-atrophied-world .rs-aw-room-red img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 92vh !important;
  object-fit: contain !important;
}

/* Mobile keeps the same rule: the complete image is always visible. */
@media (max-width: 782px) {
  .rs-exhibition:has(.rs-atrophied-world) {
    overflow: visible;
  }

  .rs-atrophied-world .rs-aw-room-fracture {
    width: calc(100% - 68px);
    grid-template-columns: 1fr;
    gap: 110px;
  }

  .rs-atrophied-world .rs-aw-room-fracture .rs-aw-face {
    width: 82%;
    max-width: 82%;
    margin-left: auto;
    transform: none;
  }

  .rs-atrophied-world .rs-aw-room img,
  .rs-atrophied-world .rs-aw-room-red img {
    max-height: none !important;
  }
}


/* v0.15.1 — FIX: the desktop fracture stage was sized in vw but positioned
   inside Gutenberg's constrained content column, so it overflowed to the right.
   Center the stage on the viewport axis instead. */
@media (min-width: 783px) {
  .rs-atrophied-world .rs-aw-room-fracture {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 96px), 1260px) !important;
    max-width: min(calc(100vw - 96px), 1260px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .58fr) !important;
  }

  .rs-atrophied-world .rs-aw-room-fracture > figure {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .rs-atrophied-world .rs-aw-room-fracture > figure > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* v0.16 — Featured image full-bleed on single posts.
   The artwork spans the viewport width while preserving its original ratio. */
.rs-exhibition > .wp-block-post-featured-image.rs-featured-full,
.rs-exhibition > .wp-block-post-featured-image.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: 42px;
}

.rs-exhibition > .wp-block-post-featured-image.rs-featured-full img,
.rs-exhibition > .wp-block-post-featured-image.alignfull img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}


/* v0.16.2 — Homepage date alignment, robust version.
   Do not absolutely position date/title.
   Reserve a consistent two-line title zone so the date stays aligned. */

.rs-home-card .rs-home-card-text {
  width: 100%;
  box-sizing: border-box;
}

.rs-home-card .wp-block-post-title {
  min-height: 2.08em;
  display: flex;
  align-items: flex-end;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rs-home-card .wp-block-post-title a {
  display: block;
  width: 100%;
}

@media (max-width: 782px) {
  .rs-home-card .rs-home-card-text {
    width: 100%;
    box-sizing: border-box;
  }

  .rs-home-card .wp-block-post-title {
    min-height: 2.08em;
    display: flex;
    align-items: flex-end;
  }
}


/* v0.17 — Home manifesto */
.rs-home-manifesto {
  box-sizing: border-box;
  padding: clamp(64px, 9vw, 132px) clamp(20px, 4vw, 64px) clamp(58px, 8vw, 112px);
}

.rs-home-manifesto > * {
  max-width: 980px;
  margin-left: 0 !important;
}

.rs-home-manifesto__quote {
  margin: 0 !important;
  max-width: 18em !important;
  font-size: clamp(30px, 4.25vw, 68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.rs-home-manifesto__signature {
  margin: clamp(24px, 3vw, 42px) 0 0 !important;
  font-size: clamp(18px, 1.65vw, 28px);
  line-height: 1;
  letter-spacing: .04em;
}

@media (max-width: 782px) {
  .rs-home-manifesto {
    padding: 54px 20px 58px;
  }

  .rs-home-manifesto__quote {
    max-width: 12em !important;
    font-size: clamp(30px, 9.4vw, 43px);
    line-height: 1.01;
  }

  .rs-home-manifesto__signature {
    margin-top: 22px !important;
    font-size: 19px;
  }
}


/* v0.17.1 — Home manifesto: tighter, quieter */
.rs-home-manifesto {
  padding-top: clamp(44px, 6vw, 86px);
  padding-bottom: clamp(38px, 5vw, 72px);
}

.rs-home-manifesto__quote {
  font-size: clamp(27px, 3.7vw, 59px);
}

.rs-home-manifesto__signature {
  margin-top: clamp(18px, 2.2vw, 30px) !important;
}

@media (max-width: 782px) {
  .rs-home-manifesto {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .rs-home-manifesto__quote {
    font-size: clamp(27px, 8.2vw, 37px);
    line-height: 1.02;
  }

  .rs-home-manifesto__signature {
    margin-top: 17px !important;
    font-size: 18px;
  }
}


/* v0.17.2 — Manifesto connects to the header.
   The whole block moves upward; this is not another type-size change. */
body.home .wp-site-blocks > main,
body.blog .wp-site-blocks > main {
  margin-block-start: 0 !important;
}

.rs-home-manifesto {
  margin-top: 0 !important;
  padding-top: clamp(18px, 2.2vw, 30px);
  padding-bottom: clamp(30px, 4vw, 54px);
}

@media (max-width: 782px) {
  body.home .wp-site-blocks > main,
  body.blog .wp-site-blocks > main {
    margin-block-start: 0 !important;
    padding-top: 0 !important;
  }

  .rs-home-manifesto {
    margin-top: 0 !important;
    padding-top: 8px;
    padding-bottom: 24px;
  }
}


/* v0.19.1 — TRUE full-bleed Gutenberg video / GIF.
   Same proven geometry as the featured image.
   No left:50% offset: the margin calculation itself escapes the constrained column. */
.rs-exhibition .wp-block-post-content .wp-block-video.alignfull {
  display: block;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.rs-exhibition .wp-block-post-content .wp-block-video.alignfull video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
}

/* Gutenberg may wrap layout alignment with its constrained-content rules.
   Explicitly allow the full-width video to escape those max-width rules. */
.rs-exhibition .wp-block-post-content > .alignfull.wp-block-video {
  max-width: 100vw !important;
}

@media (max-width: 782px) {
  .rs-exhibition .wp-block-post-content .wp-block-video.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}


/* v0.19.3 — Articles: tighter entry under the header */
@media (max-width: 782px) {
  .rs-exhibition {
    padding-top: 14px !important;
  }
}


/* v0.19.5 — Article entry: remove the ACTUAL sources of the top gap.
   WordPress adds block spacing between header/main and a top margin on the post title.
   The previous padding-only adjustment therefore had almost no visible effect. */

body.single-post .wp-site-blocks > main.rs-exhibition {
  margin-block-start: 0 !important;
}

body.single-post .rs-exhibition > .wp-block-post-title {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

@media (max-width: 782px) {
  body.single-post .wp-site-blocks > main.rs-exhibition {
    margin-block-start: 0 !important;
    padding-top: 0 !important;
  }

  body.single-post .rs-exhibition > .wp-block-post-title {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
  }
}


/* v0.20 — Manifesto: a single restrained entrance.
   The phrase is revealed as a gesture, then remains completely still. */
.rs-home-manifesto .rs-manifesto-line,
.rs-home-manifesto .rs-manifesto-signature {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-line,
html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-signature {
  animation: rs-manifesto-reveal .58s cubic-bezier(.22,.61,.36,1) forwards;
}

html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-line:nth-child(1) { animation-delay: .12s; }
html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-line:nth-child(2) { animation-delay: .34s; }
html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-line:nth-child(3) { animation-delay: .56s; }
html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-line:nth-child(4) { animation-delay: .78s; }
html.rs-manifesto-ready .rs-home-manifesto .rs-manifesto-signature { animation-delay: 1.16s; }

@keyframes rs-manifesto-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-home-manifesto .rs-manifesto-line,
  .rs-home-manifesto .rs-manifesto-signature {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* v0.20.5 — Date composition reversed:
   WEEKDAY | DAY
   More robust because the long word gets the flexible column. */

.rs-home-card .rs-date-journal {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas:
    "weekday divider day"
    "month month month"
    "year year year" !important;
  column-gap: clamp(8px, 1vw, 14px) !important;
  align-items: center !important;
}

.rs-home-card .rs-date-journal__weekday {
  grid-area: weekday !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.rs-home-card .rs-date-journal::before {
  grid-area: divider !important;
  width: 1px !important;
  min-width: 1px !important;
  margin: 0 !important;
  align-self: center !important;
}

.rs-home-card .rs-date-journal__day {
  grid-area: day !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@media (max-width: 782px) {
  .rs-home-card .rs-date-journal {
    grid-template-columns: minmax(0, 1fr) 1px auto !important;
    column-gap: 6px !important;
  }

  .rs-home-card .rs-date-journal__weekday {
    font-size: clamp(16px, 4.8vw, 22px) !important;
    line-height: .9 !important;
    letter-spacing: -.035em !important;
  }

  .rs-home-card .rs-date-journal__day {
    font-size: clamp(40px, 11.5vw, 52px) !important;
    line-height: .82 !important;
  }

  .rs-home-card .rs-date-journal::before {
    height: 40px !important;
    min-height: 40px !important;
  }
}


/* v0.20.6 — Reverse date, justified left.
   WEEKDAY | DAY, but the whole date block is anchored to the left edge
   of the card's text area rather than floating toward the center/right. */

.rs-home-card .rs-date-journal {
  justify-content: start !important;
  justify-items: start !important;
  grid-template-columns: auto 1px auto !important;
  grid-template-areas:
    "weekday divider day"
    "month month month"
    "year year year" !important;
}

.rs-home-card .rs-date-journal__weekday {
  text-align: left !important;
  justify-self: start !important;
  white-space: nowrap !important;
}

.rs-home-card .rs-date-journal::before {
  grid-area: divider !important;
  justify-self: start !important;
  margin: 0 !important;
}

.rs-home-card .rs-date-journal__day {
  text-align: left !important;
  justify-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@media (max-width: 782px) {
  .rs-home-card .rs-date-journal {
    grid-template-columns: auto 1px auto !important;
    column-gap: 6px !important;
    justify-content: start !important;
    justify-items: start !important;
  }

  .rs-home-card .rs-date-journal__weekday {
    font-size: clamp(16px, 4.8vw, 22px) !important;
    line-height: .9 !important;
    letter-spacing: -.035em !important;
  }

  .rs-home-card .rs-date-journal__day {
    font-size: clamp(40px, 11.5vw, 52px) !important;
    line-height: .82 !important;
  }

  .rs-home-card .rs-date-journal::before {
    height: 40px !important;
    min-height: 40px !important;
  }
}
