:root {
  --text-small: 1rem;
  --text-medium: 1.3rem;
  --text-large: 1.6rem;
  --headline-small: 1.3rem;
  --headline-medium: 2rem;
  --headline-large: 2.4rem;
  --strokewidth: 2px;
  --shadowblur: 1px;
  --shift-taupe: #ca9caf;
  --shift-deepred: #cc0033;
  --shift-salmon: #ffc3a5;
  --shift-magenta: #ff007f;
  --shift-orangered: #ff0000;
  --shift-lightochre: #cb5616;
  --shift-yellow: #ffcc00;
  --shift-olive: #595c36;
  --shift-stoneblue: #005763;
  --shift-darkblue: #1e2143;
  --shift-purple: #7a3e9d;
  --shift-lavender: #aa8cff;
  --shift-darkred: #7c1324;
  --background-color: #1e2143;
  --scrollbar-height: 0.5rem;
  --border-radius: 0.5rem;
  --text-stroke-xtrathin: .05rem;
  --text-stroke-thin: .1rem;
  --text-stroke-normal: .15rem;
  --text-stroke-thick: .2rem;
  --nav-height: 0px;
  --highlight: var(--shift-magenta);
  --basics-text: var(--text-color);
  --button-color: var(--backgrounds);
  --text-color: rgb(0, 0, 0);
  --backgrounds: rgb(231, 231, 231);
  --link-color: rgb(254, 140, 254);
  /* --link-color: rgb(0, 0, 0); */
  --underline-offset: .2rem;
  --archivebutton-width: 29px;
}

/* TYPEFACES */

@font-face {
  font-family: "shifted-authentic-cond";
  src:
    url("../typefaces/shifted-authentic-mediumSans-Condensed150.woff2") format("woff2");
}

@font-face {
  font-family: "shifted-authentic-inuse";
  src:
    url("../typefaces/AUTHENTICSans-150-Shifted.woff") format("woff");
}

@font-face {
  font-family: "shifted-authentic-medium-xx";
  src:
    url("../typefaces/AUTHENTICSans-130.woff") format("woff");
}

@font-face {
  font-family: "adelphe";
  src:
    url("../typefaces/Adelphe-GerminalBoldItalic.woff") format("woff");
}

@font-face {
  font-family: "anthony";
  src:
    url("../typefaces/Anthony.woff") format("woff");
}

@font-face {
  font-family: "banana";
  src:
    url("../typefaces/Banana-Outline-Regular.woff") format("woff");
}

@font-face {
  font-family: "dindong";
  src:
    url("../typefaces/DINdong.woff") format("woff");
}

@font-face {
  font-family: "courgette";
  src:
    url("../typefaces/Courgette-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "cirruscumulus";
  src:
    url("../typefaces/CirrusCumulus.woff") format("woff");
}

@font-face {
  font-family: "nudles";
  src:
    url("../typefaces/Nudles-Bold.woff") format("woff");
}

@font-face {
  font-family: "euripides";
  src:
    url("../typefaces/Euripides-SemiBold_web.woff") format("woff");
}

@font-face {
  font-family: "kottaOne";
  src:
    url("../typefaces/KottaOne-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "fredokaOne";
  src:
    url("../typefaces/FredokaOne-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "astloch";
  src:
    url("../typefaces/Astloch-Bold.ttf") format("truetype");
}

/* RESETS ---------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  margin-block-end: 0;
  margin-block-start: 0;
}

u {
  text-decoration: none;
}

strong {
  -webkit-text-stroke: .05rem;
}

a {
  all: unset;
}

span {
  text-box: trim-both cap alphabetic;
}

button {
  all: unset;
  text-box: trim-both cap alphabetic;
}

ol,
ul {
  list-style: none;
}

details>summary {
  list-style: none;
  cursor: pointer;
}

details>summary::-webkit-details-marker {
  display: none;
}

dialog {
  inset: unset;
}

/* GENERAL STYLING ---------------------------------------- */

html,
body {
  height: 100%;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: 'shifted-authentic-inuse', sans-serif;
  font-feature-settings: "calt" on;
  font-variant-ligatures: discretionary-ligatures;
  padding: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
  background-color: var(--backgrounds);
}

body {
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  width: auto;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text-color);
  line-height: 110%;
  text-box: trim-both cap alphabetic;
}

h3 {
  padding-top: 0;
}

p {
  margin-block-start: .3rem;
  margin-block-end: .3rem;
  color: var(--text-color);
  font-size: var(--text-medium);
  text-box: trim-both cap alphabetic;
}

a {
  color: var(--text-color);
  text-decoration: underline;
  text-decoration-thickness: var(--text-stroke-thick);
  text-decoration-color: var(--link-color);
  text-box: trim-both cap alphabetic;
  cursor: pointer;
}

a:hover {
  -webkit-text-stroke-width: .1rem;
}

main {
  overflow-y: hidden;
  overflow-x: auto;
  height: 100%;
  width: 100%;
}

/* GLOBAL SCROLLBAR STYLE ---------------------------------------- */

.styled-scrollbars {
  --scrollbar-foreground: var(--text-color);
  --scrollbar-background: transparent;
  scrollbar-color: var(--scrollbar-foreground) var(--scrollbar-background);
  scrollbar-width: thin;
  border-radius: 0px;
}

.styled-scrollbars::-webkit-scrollbar {
  width: var(--scrollbar-height);
  height: var(--scrollbar-height);
  scrollbar-width: thin;
}

.styled-scrollbars::-webkit-scrollbar-thumb {
  background: var(--scrollbar-foreground);
  border-radius: 0px;

}

.styled-scrollbars::-webkit-scrollbar-track {
  background: var(--scrollbar-background);
  border-radius: 0px;
  scrollbar-width: thin;

}

/* UTILITY CLASSES ---------------------------------------- */

.non-breaking {
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.pointer {
  cursor: pointer;
}

.underline {
  text-decoration: underline;
}

.underline-thick {
  text-decoration: underline;
  text-decoration-thickness: var(--text-stroke-thick);
  text-decoration-color: var(--link-color);
}

.mail-dialog {
  display: none;
}

.low-opacity {
  opacity: .5;
}

.contain {
  object-fit: contain;
}

.cover {
  object-fit: cover;
}

/* SPECIFIC STYLING ------------------------------------------------------------------------------------------------------------------------ */

/* HEADER / NAVIGATION ---------------------------------------- */

.header {
  width: 100%;
  position: absolute;
}

nav {
  position: relative;
  width: 100%;
}

.navlist {
  padding: 1rem .5rem;
  display: flex;
  flex-direction: row;
  justify-content: left;
  margin: 0;
  z-index: 2;
  font-weight: bold;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  text-box: trim-both cap alphabetic;
  font-size: var(--text-medium);
  line-height: 115%;
  transition: transform 500ms;
  pointer-events: none;
  gap: .3rem .0rem;
}

.navlist>* {
  background-color: var(--button-color);
  color: var(--text-color);
  -webkit-text-stroke-color: var(--text-color);
  transition: all 300ms;
  /* white-space: pre; */
  /* margin: .05rem; */
  padding: .2rem .05rem .2rem 0.05rem; 
  background-color: var(--backgrounds);
}

.navlist>button,
.navlist>a {
  width: fit-content;
  font-family: 'shifted-authentic-inuse', sans-serif;
  cursor: pointer;
  transition: all 500ms;
  height: fit-content;
  flex-shrink: 0;
  pointer-events: all;
  paint-order: stroke fill;
  font-feature-settings: "calt" on !important;
  margin-left: .4rem;
  margin-right: .4rem;
}

.navlist>a:first-of-type
{
  margin-left: .0rem;
}

.navlist>a[hreflang="en"]
{
  margin-right: .0rem;
}

.navlist>button:last-of-type
{
  margin-left: .0rem;
}

.navlist>a:hover,
.navlist>button:hover {
  -webkit-text-stroke-width: .1rem;
}

.nav-bottom {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav_low-opacity {
  opacity: .5;
}

.nav_low-opacity:hover {
  opacity: 1;
}

/* MANIFESTO ---------------------------------------- */

.manifesto-container {
  padding-top: calc(var(--nav-height) + .5rem);
  padding-bottom: calc(var(--nav-height) + .5rem);
}

/* FRONTPAGE ---------------------------------------- */

#frontpage {
  width: 100%;
  height: 100%;
  position: relative;
}

#home h1 {
  position: absolute;
  top: 1rem;
  left: .5rem;
  text-align: center;
  font-size: var(--text-medium);
  color: var(--text-color);
  paint-order: stroke fill;
  background-color: var(--button-color);
  transition: all;
  max-width: calc(100% - 2rem);
}

#home h1:hover {
  -webkit-text-stroke-width: var(--text-stroke-normal);
  translate: rotateY(180deg);
}

#home h1 a {
  color: var(--text-color);
}

#home .hero-image {
  width: 100%;
  height: 100%;
}

#home .poster {
  width: auto;
  height: calc(100% - 1rem - 1rem);
  right: 1rem;
  position: absolute;
  top: 1rem;
}

/* CALENDAR ---------------------------------------- */

body:has(#calendar) .navlist {
  opacity: .9;
}

body:has(#calendar) .navlist:hover {
  opacity: 1;
}

#calendar {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  gap: .2rem;
  justify-content: center;
  position: relative;
}

.calendar_card {
  padding-top: var(--nav-height);
  padding-bottom: var(--nav-height);
  width: calc(100dvw / 3);
  height: 100%;
  max-width: 60%;
  position: relative;
  flex-shrink: 0;
  overflow: auto;
  background-color: var(--backgrounds);
  transform: rotate(-.2deg);
  overflow-x: hidden;
  white-space: wrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 1;
  transition: width 500ms;
}

.calendar_card-expanded {
  width: 50dvw;
  justify-content: flex-start !important;
}

.calendar_dateline {
  font-size: var(--text-medium);
  text-align: left;
  padding: .2rem;
  text-box: trim-both cap alphabetic;
  color: var(--text-color);
}

.calendar_heroimage {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 70dvh;
}

.calendar_gallery {
  width: 100%;
  display: none;
  flex-wrap: wrap;
  flex-direction: row;
  flex-shrink: 0;
  gap: .2rem;
  padding: .2rem;
}

.calendar_gallery>a {
  height: 6rem;
  cursor: zoom-in;
}

/* LIGHTBOX GALLERY (basicLightbox + prev/next) */

.basicLightbox__placeholder:has(.lightbox-gallery) {
  width: 100%;
  height: 100%;
}

.lightbox-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-gallery img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: auto;
}

.lightbox-gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: .3rem .6rem;
  font-size: var(--headline-medium);
  color: var(--text-color);
  cursor: pointer;
  pointer-events: auto;
}

.lightbox-gallery .lightbox-prev {
  left: .5rem;
}

.lightbox-gallery .lightbox-next {
  right: .5rem;
}

.lightbox-gallery .lightbox-counter {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
  font-size: var(--text-medium);
}

.calendar_card-expanded .calendar_gallery {
  display: flex;
}

#calendar-main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .2rem;
}

/* calendar takes the remaining space next to the aside */
#calendar-main #calendar {
  flex: 1 1 0;
  min-width: 0;
}

/* with an aside, cards line up right after it instead of centring */
#calendar-main:has(#calendar_always-aside) #calendar {
  justify-content: flex-start;
}

/* always productions: one column, stacked vertically, scrolls if there are many */
#calendar_always-aside {
  width: 20vw;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: .2rem;
  padding: var(--nav-height) 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 500ms;
}

/* aside widens while one of its cards is open */
#calendar_always-aside:has(.calendar_card-expanded) {
  width: 50vw;
}

#calendar_always-aside .calendar_card {
  width: 100%;
  height: auto;
  max-width: none;
  flex-shrink: 0;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  overflow: visible;
  background-color: transparent !important;
  color: lightblue !important;
}

/* when only one always production, keep it vertically centred like the others */
#calendar_always-aside .calendar_card:only-child {
  margin: auto 0;
}

.calendar_gallery img {
  height: 100%;
  width: auto;
}

.calendar_card:last-child {
  border-bottom: none;
}

.calendar_headline-wrapper>h2 {
  font-size: var(--text-medium);
  line-height: 120%;
  text-align: left;
  cursor: pointer;
  padding: .3rem;
  padding-bottom: .6rem;
}

.calendar_production-description {
  padding: 0 1rem;
}

.calendar_production-description>* {
  font-size: var(--text-medium);
  line-height: 120%;
  padding: .5rem;
  text-justify: inter-word;
  color: var(--text-color);
}

.calendar-empty-note {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--link-color);
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* EDITORIAL ---------------------------------------- */

.stories {
  height: 100%;
  width: 100%;
  position: relative;
  padding: 0.5rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.editorial>li {
  font-size: var(--text-medium);
}

.editorial-index_container {
  height: fit-content;
  width: fit-content;
  max-height: 80%;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding-left: .5rem;
  z-index: 10;
}

.editorial-index {
  height: fit-content;
  width: 50dvw;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  justify-content: center;
}

#editorial-index_toggle {
  text-align: center;
  font-size: var(--text-medium);
  writing-mode: vertical-rl;
  font-family: 'shifted-authentic-inuse', sans-serif;
  cursor: pointer;
  letter-spacing: 1px;
  background-color: var(--backgrounds);
  text-underline-offset: -.16rem;
  color: var(--text-color);
}

#editorial-index_toggle:hover {
  -webkit-text-stroke-width: .1rem;

}

.editorial-index_item {
  font-size: var(--text-medium);
  cursor: pointer;
}

.editorial-index_item a {
  background: var(--button-color);
}

.editorial-index_item:hover {
  letter-spacing: 1px;
}

.story {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--nav-height) 4rem;
  background-color: yellow;
}

/* UNUSED: not referenced in any active template, snippet or JS */
.story-wrapper img {
  width: 100%;
  height: auto;
}

/* BASIC STYLES FOR THE STORIES */

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);

}

.column {
  grid-column: span var(--span);
}

.blocks:has(h1, h2, h3) {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
}

.blocks h1,
.blocks h2,
.blocks h3 {
  margin: 0;
  padding: 0;
  rotate: -25deg;
  width: fit-content;
  height: fit-content;
}

.blocks img {
  width: 100%;
  height: auto;
}

.column p {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
  font-size: var(--text-medium);
  font-family: 'shifted-authentic-inuse', Arial, Helvetica, sans-serif
}

.column p strong {
  -webkit-text-stroke: 0.0rem;
  letter-spacing: 5px;
}

.column p:first-child {
  margin-block-start: 0rem;
  margin-block-end: 1rem;
}

.blocks ul {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

.blocks ul li {
  text-box: trim-both cap alphabetic;
  font-size: var(--text-medium);
  margin-block-start: .5rem;
  margin-block-end: .5rem;
}

.footnote p {
  width: fit-content;
  display: inline;
}

.footnote .footnote-number {
  display: inline-block;
  width: 1rem;
  text-align: center;
  margin-right: 1rem; 
}
.column p a[href^="#fn-"] {
  vertical-align: super;
  color: var(--shift-magenta);
  text-decoration: none;
}

/* ARCHIVE ---------------------------- */

#archive {
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  scroll-behavior: smooth;
}

.archive-entry {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  scroll-margin-left: 0;
}

.archive-entry:last-child {
  width: 100%;
}

.archive-entry:last-child > img {
  object-fit: contain;
}

.archive-entry:last-child .hero-image {
  margin: 0;
}

.archive-entry:has(.hero-placeholder) button {
  display: none;
}

.archive-entry-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(-5deg);
  text-align: center;
}

.archive-entry.is-targeted .archive-entry_popover-button>.button_highlight {
  color: var(--link-color);
}

.archive-entry_popover-button {
  max-width: 50vh;
  text-align: center;
  font-size: var(--text-medium);
  line-height: 140%;
  position: absolute;
  top: 50%;
  left: .9rem;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: var(--text-color);
  font-family: 'shifted-authentic-inuse', sans-serif;
  cursor: pointer;
  letter-spacing: 3px;
  text-underline-offset: -.15rem;
}
.archive-entry_popover-button:hover {
  -webkit-text-stroke-width: .1rem;
}

:root:has(dialog[open], :popover-open) .nav-bottom,
:root:has(dialog[open], :popover-open) .nav-top {
  display: none;
}

.button_highlight {
  background-color: var(--button-color);
  padding: .1rem;
  white-space: pre-line;
}

.button {
  cursor: pointer;
}

.popover_close-button {
  background-color: var(--button-color);
  text-box: trim-both cap alphabetic;
  position: absolute;
  top: .5rem;
  right: 1.1rem;
  font-size: var(--text-medium);
  color: var(--text-color);
}

.popover_close-button:hover {
  -webkit-text-stroke-width: .1rem;
}

.archive-entry_popover {
  top: 0;
  right: 0;
  height: 100dvh;
  width: calc(100% - (var(--archivebutton-width) + 1.2rem));
  background-color: var(--backgrounds);
  border: none;
  margin: 0;
  padding: 0;
  max-height: 100%;
}

.archive-entry_popover::backdrop {
  background-color: transparent;
}

.popover_flex-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  mix-blend-mode: normal;
}

.popover_text-content {
  width: 30%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .5rem;
  direction: rtl;
}

.popover_text-content * {
  direction: ltr;
}

.production_description {
  font-size: var(--text-medium);
  paint-order: stroke fill;
  width: 100%;
  height: fit-content;
  align-self: flex-end;
  pointer-events: all;
}

.production_description>* {
  font-size: var(--text-medium);
  line-height: 120%;
}

.production_description>*:first-child {
  margin-block-start: 0;
}

.production_description>*:last-child {
  margin-block-end: 0;
}

.hero-image {
  height: 100%;
  width: auto;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0 auto;
}

.hero-placeholder {
  background-color: attr(data-backgroundcolor);
  height: 100%;
  width: 50dvw;
  background-color: var(--backgrounds);
  position: relative;
}

.popover_gallery {
  width: 70%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: relative;
  z-index: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.popover_gallery>img {
  height: auto;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.return-link {
  text-align: center;
  font-size: var(--text-medium);
  line-height: 140%;
  position: absolute;
  top: 50%;
  right: .6rem;
  transform: translateY(-50%) rotate(180deg);
  /* rotate: 180deg; */
  writing-mode: vertical-lr;
  color: var(--text-color);
  font-family: 'shifted-authentic-inuse', sans-serif;
  cursor: pointer;
  letter-spacing: 5px;
}

/* FOOTER */

#footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: fit-content;
  z-index: 11;
}

.footer_content-container {
  padding: .5rem;
  width: 100%;
  height: fit-content;
  background-color: var(--backgrounds);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: .5rem;

}

.footer_content-container * {
  font-size: var(--text-medium) !important;
  color: var(--text-color) !important;
}

.footer_column {
  grid-column: span 1;
  /* display: flex;
  flex-direction: column;
  align-items: bottom; */
}

/* OVERRIDE UTILS */

/* UNUSED: not referenced in any active template, snippet or JS */
.zindex2 {
  z-index: 2;
}


.mobileonly {
  display: none !important;
}

/* MEDIA QUERIES ------------------- */

@media screen and (max-width: 900px) {

  /* UTILITY -------------------- */


  .mobileonly {
    display: block !important;
  }

  /* UNUSED: not referenced in any active template, snippet or JS */
  .hide-on-mobile {
    display: none;
  }

  /* UNUSED: not referenced in any active template, snippet or JS */
  .zindex2 {
    display: flex;
    flex-direction: column-reverse;
  }

  .invisible {
    display: none !important;
  }


  /* ARCHIVE ENTRIES -------------------- */


  /* UNUSED: not referenced in any active template, snippet or JS */
  .archive-entry_text-content>* {
    width: 100%;
  }

  /* UNUSED: not referenced in any active template, snippet or JS */
  .description-background {
    display: none;
  }

  /* UNUSED: not referenced in any active template, snippet or JS */
  .showdescription {
    padding-top: 0;
  }

  /* UNUSED: not referenced in any active template, snippet or JS */
  .zindex2 .archive-entry_text-content {
    flex-direction: column;
    position: relative;
    background-color: var(--shift-deepred);
  }

  /* NAVIGATION -------------------- */

  .navlist {
    z-index: 20;
  }

  .nav-bottom {
    display: none;
  }

  #mobile_navbutton {
    display: inline;
    cursor: pointer;
  }

  body:has(#home) .header {
    bottom: 0;
  }

  /* HOME -------------------- */

  #home .hero-image {
    object-fit: cover;
  }

  #home .poster {
    height: 60vh;
    width: calc(100% - 2rem);
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
  }


  /* CALENDAR -------------------- */

  .main:has(#calendar) {
    overflow-y: auto;
    overflow-x: hidden;
  }

  #calendar {
    padding-bottom: 0 !important;
    padding-top: var(--nav-height);
    flex-direction: column;
    height: fit-content;
  }

  #calendar-main {
    flex-direction: column;
  }

  #calendar-main #calendar {
    flex: none;
  }

  #calendar_always-aside,
  #calendar_always-aside:has(.calendar_card-expanded) {
    width: 100%;
    height: fit-content;
    flex-direction: column;
    padding-top: var(--nav-height);
    padding-bottom: 0;
    overflow: visible;
  }

  #calendar_always-aside .calendar_card,
  #calendar_always-aside .calendar_card-expanded {
    width: 100%;
  }

  /* nav padding only needed on the first block */
  #calendar-main:has(#calendar_always-aside) #calendar {
    padding-top: 0;
  }

  /* UNUSED: not referenced in any active template, snippet or JS */
  .calendar-scroll-container {
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
  }

  .calendar_card {
    width: 100%;
    height: fit-content;
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    border-right: none;
    border-left: none;
    border-top: 3px solid grey;
    border-bottom: 3px solid grey;
    overflow: hidden;
    flex-wrap: wrap;
    display: block;
  }

  .calendar_card-expanded {
    height: fit-content;
    flex-grow: 1;
  }

  .calendar_heroimage {
    height: 24dvh;
    width: auto;
    max-width: 100%;
    display: inline;
  }

  .calendar_headline-wrapper {
    width: fit-content;
  }

  .calendar_headline-wrapper>h2 {
    padding: .3rem;
    padding-bottom: .6rem;
    width: fit-content;
  }

  .calendar_dateline {
    padding: .3rem;
    text-align: right;
  }

  /* ARCHIVE ----------------- */

  .archive-entry_popover {
    width: calc(100% - (var(--archivebutton-width) + 1.2rem));
  }

  .popover_flex-container {
    height: fit-content;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .popover_text-content {
    width: 100%;
    height: fit-content;
    padding: .7rem;
  }

  .popover_close-button {
    position: fixed;
    bottom: .5rem;
    right: .5rem;
    top: unset;
    height: fit-content;
  }

  .popover_gallery {
    width: 100%;
  }

  .popover_gallery>img {
    max-height: 100dvh;
  }

  .archive-entry:last-child > img {
  object-fit: cover;
}

  /* FOOTER --------------- */

  #footer {
    height: calc(100% - var(--nav-height));
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
  }

  .footer_content-container {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    bottom: 0;
    pointer-events: all;
  }

  /* ARTICLES ------------ */

  .story {
    padding: var(--nav-height) 2.5rem;
    padding-right: 1rem;
  }

  .column {
    grid-column: span 12;
  }

  .column p {
    margin-block-start: 0rem;
    margin-block-end: 1rem;
    font-size: var(--text-medium);
  }

  .column:has(img) {
    margin-bottom: 1rem;
  }

}