/* ==========================================================================
   The Voxel - Static Site Stylesheet
   ========================================================================== */

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: 'VoxelFoundersGroteskMono';
  src: url('../fonts/FoundersGroteskMonoWeb-Regular.woff2') format('woff2'),
    url('../fonts/FoundersGroteskMonoWeb-Regular.woff') format('woff');
  font-weight: normal;
}

@font-face {
  font-family: 'VoxelFoundersGroteskMono';
  src: url('../fonts/FoundersGroteskMonoWeb-Bold.woff2') format('woff2'),
    url('../fonts/FoundersGroteskMonoWeb-Bold.woff') format('woff');
  font-weight: bold;
}

@font-face {
  font-family: 'VoxelFoundersGroteskText';
  src: url('../fonts/founders-grotesk-text-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'VoxelFoundersGroteskText';
  src: url('../fonts/founders-grotesk-text-regular-italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'VoxelFoundersGroteskText';
  src: url('../fonts/founders-grotesk-text-bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'VoxelFoundersGroteskText';
  src: url('../fonts/founders-grotesk-text-bold-italic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'VoxelPitch';
  src: url('../fonts/test-pitch-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'VoxelPitch';
  src: url('../fonts/test-pitch-regular-italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'VoxelPitch';
  src: url('../fonts/test-pitch-bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'VoxelPitch';
  src: url('../fonts/test-pitch-bold-italic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */

:root {
  --textColumnMaxWidth: 54rem;
  --primaryBorder: 2px solid #000;
  --lightBackgroundColor: rgba(0, 0, 0, 0.12);
  --marqueeHeight: 0rem;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  z-index: 2;
  position: relative;
}

html {
  font-size: 16px;
}

@media print {
  @page {
    size: auto;
    margin: 10mm 10mm 15mm;
  }
  html {
    font-size: 7pt;
    margin: 0px;
  }
}

@media screen and (max-width: 800px) {
  html { font-size: 15px; }
}

@media screen and (max-width: 700px) {
  html { font-size: 14px; }
}

@media screen and (max-width: 600px) {
  html { font-size: 13px; }
}

@media screen and (max-width: 500px) {
  html { font-size: 12px; }
}

h1, h2, a {
  all: unset;
}

a {
  cursor: pointer;
  color: inherit;
}

html, body {
  max-width: 100vw;
  font-family: 'VoxelFoundersGroteskText', sans-serif;
}

/* ==========================================================================
   Gradient Square Background
   ========================================================================== */

@keyframes backgroundFade {
  from { background-position: 0%; }
  to { background-position: var(--backgroundEndPosition); }
}

.gradient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  display: grid;
  align-items: center;
  justify-items: center;
  z-index: 1;
  will-change: contents;
  transition: transform 1.5s;
}

.gradient-square {
  background: var(--backgroundGradient);
  background-size: var(--backgroundSize);
  animation-name: backgroundFade;
  animation-duration: var(--backgroundSpeed);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: filter;
  transition: opacity 750ms ease-in-out;
}

@media (orientation: landscape) {
  .gradient-container { filter: blur(7vh); }
  .gradient-square { width: 60vh; height: 60vh; }
}

@media (orientation: portrait) {
  .gradient-container { filter: blur(7vw); }
  .gradient-square { width: 60vw; height: 60vw; }
}

@media screen and (min-width: 750px) {
  .gradient-container.alt-threshold-reached {
    transform: translateX(-51vw) scale(0.8);
  }
}

@media screen and (max-width: 749px) {
  .gradient-container.alt-threshold-reached {
    transform: translate(-33vw, -45vh) scale(0.8);
    position: absolute;
  }
}

/* ==========================================================================
   Logo SVG
   ========================================================================== */

.voxel-logo .echo1,
.voxel-logo .echo2 {
  transition: fill 1.5s;
}

.voxel-logo .echo2 {
  opacity: 0.5;
}

.voxel-logo .letter-v { transition: transform 200ms cubic-bezier(0.64, 0.57, 0.67, 1.53) 0ms; }
.voxel-logo .letter-o { transition: transform 200ms cubic-bezier(0.64, 0.57, 0.67, 1.53) 50ms; }
.voxel-logo .letter-x { transition: transform 200ms cubic-bezier(0.64, 0.57, 0.67, 1.53) 100ms; }
.voxel-logo .letter-e { transition: transform 200ms cubic-bezier(0.64, 0.57, 0.67, 1.53) 150ms; }
.voxel-logo .letter-l { transition: transform 200ms cubic-bezier(0.64, 0.57, 0.67, 1.53) 200ms; }

/* Logo alternate states - applied via JS on hover */
.voxel-logo.alternate-0 .echo1 .letter-v,
.voxel-logo.alternate-0 .echo1 .letter-o,
.voxel-logo.alternate-0 .echo1 .letter-x,
.voxel-logo.alternate-0 .echo1 .letter-e,
.voxel-logo.alternate-0 .echo1 .letter-l,
.voxel-logo.alternate-0 .echo2 .letter-v,
.voxel-logo.alternate-0 .echo2 .letter-o,
.voxel-logo.alternate-0 .echo2 .letter-x,
.voxel-logo.alternate-0 .echo2 .letter-e,
.voxel-logo.alternate-0 .echo2 .letter-l {
  transform: translate(0, 0);
}

.voxel-logo.alternate-1 .echo1 .letter-v { transform: translate(0, -114px); }
.voxel-logo.alternate-1 .echo1 .letter-o { transform: translate(0, 130px); }
.voxel-logo.alternate-1 .echo1 .letter-x { transform: translate(0, -220px); }
.voxel-logo.alternate-1 .echo1 .letter-e { transform: translate(0, -80px); }
.voxel-logo.alternate-1 .echo1 .letter-l { transform: translate(0, 79px); }
.voxel-logo.alternate-1 .echo2 .letter-v { transform: translate(0, 289px); }
.voxel-logo.alternate-1 .echo2 .letter-o { transform: translate(0, -467px); }
.voxel-logo.alternate-1 .echo2 .letter-x { transform: translate(0, 361px); }
.voxel-logo.alternate-1 .echo2 .letter-e { transform: translate(0, 238px); }
.voxel-logo.alternate-1 .echo2 .letter-l { transform: translate(0, -349px); }

.voxel-logo.alternate-2 .echo1 .letter-v { transform: translate(0, 144px); }
.voxel-logo.alternate-2 .echo1 .letter-o { transform: translate(0, -98px); }
.voxel-logo.alternate-2 .echo1 .letter-x { transform: translate(0, -220px); }
.voxel-logo.alternate-2 .echo1 .letter-e { transform: translate(0, 78px); }
.voxel-logo.alternate-2 .echo1 .letter-l { transform: translate(0, -156px); }
.voxel-logo.alternate-2 .echo2 .letter-v { transform: translate(0, -192px); }
.voxel-logo.alternate-2 .echo2 .letter-o { transform: translate(0, 306px); }
.voxel-logo.alternate-2 .echo2 .letter-x { transform: translate(0, -380px); }
.voxel-logo.alternate-2 .echo2 .letter-e { transform: translate(0, 430px); }
.voxel-logo.alternate-2 .echo2 .letter-l { transform: translate(0, -235px); }

.voxel-logo.alternate-3 .echo1 .letter-v { transform: translate(0, 192px); }
.voxel-logo.alternate-3 .echo1 .letter-o { transform: translate(0, 341px); }
.voxel-logo.alternate-3 .echo1 .letter-x { transform: translate(0, -117px); }
.voxel-logo.alternate-3 .echo1 .letter-e { transform: translate(0, 79px); }
.voxel-logo.alternate-3 .echo1 .letter-l { transform: translate(0, -156px); }
.voxel-logo.alternate-3 .echo2 .letter-v { transform: translate(0, -337px); }
.voxel-logo.alternate-3 .echo2 .letter-o { transform: translate(0, 447px); }
.voxel-logo.alternate-3 .echo2 .letter-x { transform: translate(0, 201px); }
.voxel-logo.alternate-3 .echo2 .letter-e { transform: translate(0, -431px); }
.voxel-logo.alternate-3 .echo2 .letter-l { transform: translate(0, 270px); }

.voxel-logo.alternate-4 .echo1 .letter-v { transform: translate(0, -145px); }
.voxel-logo.alternate-4 .echo1 .letter-o { transform: translate(0, 78px); }
.voxel-logo.alternate-4 .echo1 .letter-x { transform: translate(0, 202px); }
.voxel-logo.alternate-4 .echo1 .letter-e { transform: translate(0, -80px); }
.voxel-logo.alternate-4 .echo1 .letter-l { transform: translate(0, -156px); }
.voxel-logo.alternate-4 .echo2 .letter-v { transform: translate(0, -385px); }
.voxel-logo.alternate-4 .echo2 .letter-o { transform: translate(0, 447px); }
.voxel-logo.alternate-4 .echo2 .letter-x { transform: translate(0, -277px); }
.voxel-logo.alternate-4 .echo2 .letter-e { transform: translate(0, 305px); }
.voxel-logo.alternate-4 .echo2 .letter-l { transform: translate(0, -349px); }

.site-header .voxel-logo.alt-threshold-reached .echo1,
.site-header .voxel-logo.alt-threshold-reached .echo2 {
  fill: white;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
  padding: 2rem;
}

.site-header {
  display: grid;
  align-items: center;
  align-content: center;
}

@media screen and (min-width: 750px) {
  .site-container {
    padding-left: 18rem;
  }
  .site-header {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-footer {
    grid-column: span 2;
  }
}

@media screen and (max-width: 749px) {
  .site-container {
    display: grid;
    gap: 2rem;
  }
  .site-header {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .header-nav {
    justify-self: end;
  }
}

.logo {
  width: 7rem;
  aspect-ratio: 1 / 1;
  display: grid;
  align-items: center;
}

.header-nav,
.footer-nav {
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.subnav {
  display: grid;
  justify-items: start;
  gap: 8px;
  border-left: 2px solid #000;
  padding-left: 1rem;
  font-size: 12px;
  margin: 4px 0;
  color: rgba(0, 0, 0, 0.6);
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.site-footer {
  display: grid;
  padding-top: 2rem;
  padding-bottom: 4rem;
  justify-items: end;
}

.footer-content {
  display: grid;
  gap: 0rem;
}

.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media print {
  .header-nav,
  .site-footer {
    display: none;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.xl-heading {
  font-size: 6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-thickness: 0.125em;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

@media screen and (max-width: 960px) {
  .xl-heading {
    font-size: 10vw;
  }
}

h1 {
  font-size: 2.8rem;
  font-weight: bold;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

h2 {
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.tertiary-heading {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 12px;
  line-height: 14px;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

p,
ul,
.callout,
.blockquote blockquote {
  line-height: 150%;
}

@media screen and (min-width: 700px) {
  p,
  ul,
  .callout {
    font-size: 1.2rem;
    line-height: 160%;
  }
  .blockquote blockquote {
    font-size: 1.4rem;
    line-height: 160%;
  }
}

p a,
ul a,
.callout a,
.blockquote a {
  text-decoration: underline;
}

p a:hover,
ul a:hover,
.callout a:hover,
.blockquote a:hover {
  opacity: 0.66;
}

ul {
  list-style: none;
}

ul li {
  padding-left: 1.75em;
  position: relative;
}

ul li:before {
  content: '\2014';
  position: absolute;
  left: 0;
}

ol {
  padding-left: 1.75em;
}

code {
  font-size: 1rem;
  font-family: monospace;
}

.inline-badge {
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 0.05em;
  background-color: var(--lightBackgroundColor);
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.blockquote {
  padding-left: 2em;
  border-left: var(--primaryBorder);
  display: grid;
  gap: 1em;
}

.blockquote blockquote {
  font-style: italic;
}

.blockquote cite {
  all: unset;
  font-family: 'VoxelFoundersGroteskText';
}

.callout {
  background-color: var(--lightBackgroundColor);
  padding: 0.75em 1em;
  border-radius: 3px;
}

.label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

/* ==========================================================================
   Location
   ========================================================================== */

.location {
  display: grid;
  gap: 68px;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.location .address,
.location .links {
  display: grid;
  gap: 5px;
}

.location .address-title {
  font-weight: bold;
}

.location .links {
  text-decoration: underline;
  justify-items: start;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-section .content {
  display: grid;
  gap: 2rem;
}

.content-section .heading {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  justify-self: start;
  white-space: nowrap;
  position: sticky;
  top: 2rem;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

@media print {
  .content-section {
    grid-template-columns: 1fr 20mm;
  }
  .content-section .heading {
    position: absolute;
    top: 0;
    right: 0;
  }
}

@media screen and (min-width: 1000px) {
  .content-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
  }
}

@media screen and (max-width: 999px) {
  .content-section .heading {
    display: none;
  }
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.article-content {
  display: grid;
  gap: 1.5rem;
  max-width: var(--textColumnMaxWidth);
  font-family: 'VoxelFoundersGroteskText';
  line-height: 160%;
}

@media screen and (min-width: 700px) {
  .article-content {
    font-size: 1.25rem;
  }
}

.article-content a {
  text-decoration: underline;
}

.article-content a:hover {
  opacity: 0.66;
}

.article-content hr {
  border: none;
  margin: 0.5rem 0;
}

.article-content h1 {
  font-family: 'VoxelFoundersGroteskMono', monospace;
  /* font-family: 'VoxelFoundersGroteskText'; */
}

.article-content h2 {
  /* font-family: 'VoxelFoundersGroteskMono', monospace; */
  font-family: 'VoxelFoundersGroteskText';
}

.article-content h3,
.article-content h4 {
  font-family: 'VoxelFoundersGroteskText';
}

.article-content h1 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: -0.3em;
  line-height: 1.15;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: bold;
  /* text-transform: uppercase; */
  text-transform: none;
  letter-spacing: 0.05em;
  margin-top: 0.1em;
  margin-bottom: -0.5em;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: bold;
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  padding-left: 1.75em;
  position: relative;
}

.article-content ul li:before {
  content: '\2014';
  position: absolute;
  left: 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content code {
  background-color: var(--lightBackgroundColor);
  display: inline-block;
  border-radius: 3px;
  padding: 0 0.4em;
  line-height: 150%;
  font-size: 1rem;
  font-family: monospace;
}

.article-content pre {
  font-size: 1rem;
  overflow-x: scroll;
  max-width: 100%;
}

.article-content pre code {
  padding: 12px;
  overflow: hidden;
}

.article-content table {
  border-collapse: collapse;
  font-size: 1rem;
  font-family: 'VoxelFoundersGroteskMono', monospace;
  line-height: 130%;
  width: fit-content;
}

.article-content table th {
  border-bottom: var(--primaryBorder);
  padding: 0.5rem 1rem;
  text-align: left;
}

.article-content table tr:not(:last-of-type) {
  border-bottom: 1px solid black;
}

.article-content table td {
  padding: 0.5rem 1rem;
}

.article-content table td img {
  height: 150px;
}

.article-content blockquote {
  background-color: var(--lightBackgroundColor);
  padding: 0.75em 1em;
  border-radius: 3px;
  width: fit-content;
}

/* ==========================================================================
   Zine Content (Field Notes style modifier)
   ========================================================================== */

.zine {
  gap: 2rem;
  justify-items: start;
}

.zine h1,
.zine h2,
.zine h3,
.zine h4 {
  font-family: 'Courier';
}

.zine h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.zine h2 {
  margin-bottom: 0;
}

.zine h3 {
  font-size: 1.5rem;
}

.zine ol {
  padding-left: 1.9em;
}

.zine ol li.spaced {
  margin-bottom: 1.0em;
}

@media screen and (max-width: 699px) {
  .zine {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
 Back Link
 ========================================================================== */

a.back-link {
  font-size: 0.9em;
  font-family: 'VoxelFoundersGroteskMono', monospace;
  text-decoration: none;
}

a.back-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
 Print Button
 ========================================================================== */

.print-heading {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  font-size: 0.8em;
}

.print-button {
  all: unset;
  display: none;
  justify-self: end;
  font-family: 'VoxelFoundersGroteskMono', monospace;
  background-color: black;
  color: white;
  cursor: pointer;
  padding: 0.5em 0.8em;
}

@media screen and (min-width: 600px) {
  .print-heading {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
    justify-items: stretch;
  }

  .print-heading h1 {
    margin: 0;
    line-height: 1;
  }

  .print-button {
    display: block;
  }
}

.print-button:hover {
  opacity: 0.8;
}

@media print {
  .print-button {
    display: none;
  }
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.page-container {
  display: grid;
  gap: 6rem;
}

.name {
  font-weight: bold;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.about {
  display: grid;
  gap: 2rem;
  max-width: 42rem;
}

.masthead {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 1100px) {
  .masthead {
    align-items: center;
    min-height: calc(100vh - 4rem - (var(--marqueeHeight) * 2));
  }
  .masthead-image {
    justify-self: end;
  }
  .masthead-about {
    display: grid;
    justify-content: center;
    grid-column: span 2;
  }
}

@media screen and (max-width: 1099px) {
  .masthead-about {
    padding-top: 2rem;
  }
}

.masthead-image {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.masthead-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (orientation: landscape) and (min-width: 1100px) {
  .masthead {
    grid-template-columns: 1fr calc(50vw - 4rem - 25vh);
  }
  .masthead-image {
    width: 50vh;
    height: 50vh;
  }
}

@media (orientation: portrait) and (min-width: 1100px) {
  .masthead {
    grid-template-columns: 1fr 1fr;
  }
  .masthead-image {
    width: 50vw;
    height: 50vw;
  }
}

.masthead-text {
  display: grid;
  gap: 1.5rem;
  justify-items: flex-start;
  max-width: 600px;
  overflow-wrap: anywhere;
}

.masthead-text.cancelled > * {
  text-decoration: line-through;
}

.button {
  color: white;
  background-color: #e8302d;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.button:hover {
  background-color: black;
}

.masthead-text.cancelled .cancelled-message {
  text-decoration: none;
  border: var(--primaryBorder);
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  transform: rotate(5deg);
}

/* ==========================================================================
   Homepage Visit Section
   ========================================================================== */

.visit-grid {
  display: grid;
  gap: 2rem;
}

.visit-grid .exterior-photo {
  position: relative;
  aspect-ratio: 7 / 5;
}

.visit-grid .exterior-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.visit-grid .map {
  position: relative;
  overflow: hidden;
}

.visit-grid .map-embed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
}

@media screen and (min-width: 800px) {
  .visit-grid {
    grid-template-columns: 2fr 3fr;
    grid-template-rows: auto 1fr;
  }
  .visit-grid .location {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
  }
  .visit-grid .exterior-photo {
    grid-column: 2 / span 1;
    grid-row: 1 / span 2;
  }
  .visit-grid .map {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
  }
}

/* ==========================================================================
   Homepage Event Grid
   ========================================================================== */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2rem;
}

.event {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.event .thumbnail {
  display: block;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.event .thumbnail img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.event .title {
  font-size: 14px;
  font-weight: bold;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.event .date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

/* ==========================================================================
   Visit Page
   ========================================================================== */

.visit-container {
  display: grid;
  gap: 2rem;
}

.visit-image-grid {
  display: grid;
  gap: 2rem;
}

.visit-image-grid .exterior-photo,
.visit-image-grid .interior-photo,
.visit-image-grid .sign-photo {
  position: relative;
  overflow: hidden;
}

.visit-image-grid .exterior-photo img,
.visit-image-grid .interior-photo img,
.visit-image-grid .sign-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visit-image-grid .exterior-photo {
  aspect-ratio: 7 / 5;
}

.visit-image-grid .interior-photo {
  aspect-ratio: 4 / 3;
}

.visit-image-grid .sign-photo {
  aspect-ratio: 18 / 9;
}

.visit-image-grid .map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.visit-image-grid .map-embed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
}

@media screen and (min-width: 800px) {
  .visit-image-grid {
    grid-template-columns: 4fr 7fr 4fr;
    grid-template-rows: 1fr auto 2rem auto;
  }

  .visit-image-grid .location {
    grid-column: 3 / span 1;
    grid-row: 1 / span 1;
    align-self: center;
  }

  .visit-image-grid .exterior-photo {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .visit-image-grid .interior-photo {
    grid-column: 3 / span 1;
    grid-row: 2 / span 2;
    align-self: end;
  }

  .visit-image-grid .sign-photo {
    grid-column: 2 / span 1;
    grid-row: 3 / span 2;
  }

  .visit-image-grid .map {
    grid-column: 3 / span 1;
    grid-row: 4 / span 1;
  }
}

.visit-info {
  display: grid;
  gap: 2rem;
  max-width: var(--textColumnMaxWidth);
}

.visit-info .parking-map {
  max-width: 100%;
  height: auto;
}

.recommendations {
  padding-top: 2rem;
  display: grid;
  gap: 3rem;
  font-family: 'VoxelFoundersGroteskText';
}

@media screen and (min-width: 1000px) {
  .recommendations {
    grid-template-columns: 1fr 1fr;
  }
}

.recommendation-column {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.recommendation-list-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  justify-self: start;
  white-space: nowrap;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.recommendation-list {
  display: grid;
  gap: 1.5rem;
}

.recommendation {
  line-height: 150%;
}

.recommendation .name {
  font-weight: bold;
}

.recommendation .rec-address {
  text-decoration: underline;
}

/* ==========================================================================
   Current Events Page
   ========================================================================== */

.event-masthead {
  display: grid;
  gap: 2rem;
  max-width: 54rem;
}

.event-block {
  display: grid;
  gap: 2rem;
}

.event-meta {
  display: grid;
  gap: 1rem;
}

.event-image {
  aspect-ratio: 1 / 1;
}

.event-image img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.event-link {
  display: block;
  background-color: #e8302d;
  color: white;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.event-link:hover {
  background-color: black;
}

.event-info {
  display: grid;
  gap: 1.2rem;
  max-width: 54rem;
}

.event-divider {
  background-color: black;
  padding: 3px;
  border: 0;
}

@media screen and (min-width: 900px) {
  .event-block {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
}

@media screen and (min-width: 1200px) {
  .event-block {
    grid-template-columns: 1fr 2fr;
  }
}

@media screen and (min-width: 1500px) {
  .event-block {
    grid-template-columns: 1fr 3fr;
  }
}

/* ==========================================================================
   Past Events Grid
   ========================================================================== */

.events-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media screen and (min-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.event-card:hover .event-title {
  /* text-decoration: underline; */
}

.event-card .thumbnail {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.event-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .event-title {
  font-weight: bold;
  font-size: 1.0rem;
  line-height: 130%;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.event-card .event-date {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  margin-top: -0.2rem;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

/* ==========================================================================
   Event Detail Page
   ========================================================================== */

.event-page {
  display: grid;
  gap: 1rem;
}

.event-page .masthead {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 900px) {
  .event-page .masthead {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.event-page .information {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.event-page .information h1 {
  font-family: 'VoxelFoundersGroteskText';
}

@media screen and (min-width: 900px) {
  .event-page .information {
    align-content: center;
  }
}

.event-page .lead-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media screen and (min-width: 900px) {
  .event-page .lead-image {
    height: 100%;
  }
}

.event-page .description p + p {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Event Image Sections
   ========================================================================== */

.image-section {
  --portrait: 3 / 4;
  --landscape: 7 / 5;
  --square: 1 / 1;

  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.image-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Single image layouts */

.image-section.layout-1-landscape-full .image-0 {
  aspect-ratio: var(--landscape);
  grid-column: 1 / span 12;
}

.image-section.layout-1-landscape-left .image-0 {
  aspect-ratio: var(--landscape);
  grid-column: 1 / span 9;
}

.image-section.layout-1-landscape-right .image-0 {
  aspect-ratio: var(--landscape);
  grid-column: 4 / span 9;
}

/* Two image layouts */

.image-section.layout-2-landscape-landscape .image-0,
.image-section.layout-2-landscape-landscape .image-1 {
  aspect-ratio: var(--landscape);
  grid-column: span 6;
}

.image-section.layout-2-square-square .image-0,
.image-section.layout-2-square-square .image-1 {
  aspect-ratio: var(--square);
  grid-column: span 6;
}

.image-section.layout-2-portrait-portrait .image-0,
.image-section.layout-2-portrait-portrait .image-1 {
  aspect-ratio: var(--portrait);
  grid-column: span 6;
}

.image-section.layout-2-landscape-portrait .image-0 {
  aspect-ratio: var(--landscape);
  grid-column: span 6;
}

.image-section.layout-2-landscape-portrait .image-1 {
  aspect-ratio: var(--portrait);
  grid-column: span 6;
}

.image-section.layout-2-portrait-landscape .image-0 {
  aspect-ratio: var(--portrait);
  grid-column: span 6;
}

.image-section.layout-2-portrait-landscape .image-1 {
  aspect-ratio: var(--landscape);
  grid-column: span 6;
}

.image-section.layout-2-landscape-square .image-0 {
  aspect-ratio: var(--landscape);
  grid-column: span 6;
}

.image-section.layout-2-landscape-square .image-1 {
  aspect-ratio: var(--square);
  grid-column: span 6;
}

.image-section.layout-2-square-landscape .image-0 {
  aspect-ratio: var(--square);
  grid-column: span 6;
}

.image-section.layout-2-square-landscape .image-1 {
  aspect-ratio: var(--landscape);
  grid-column: span 6;
}

.image-section.layout-2-portrait-square .image-0 {
  aspect-ratio: var(--portrait);
  grid-column: span 6;
}

.image-section.layout-2-portrait-square .image-1 {
  aspect-ratio: var(--square);
  grid-column: span 6;
}

.image-section.layout-2-square-portrait .image-0 {
  aspect-ratio: var(--square);
  grid-column: span 6;
}

.image-section.layout-2-square-portrait .image-1 {
  aspect-ratio: var(--portrait);
  grid-column: span 6;
}

/* Three image layouts */

.image-section.layout-3-landscape-landscape-landscape .image-0,
.image-section.layout-3-landscape-landscape-landscape .image-1,
.image-section.layout-3-landscape-landscape-landscape .image-2 {
  aspect-ratio: var(--landscape);
  grid-column: span 4;
}

.image-section.layout-3-portrait-portrait-portrait .image-0,
.image-section.layout-3-portrait-portrait-portrait .image-1,
.image-section.layout-3-portrait-portrait-portrait .image-2 {
  aspect-ratio: var(--portrait);
  grid-column: span 4;
}

.image-section.layout-3-square-square-square .image-0,
.image-section.layout-3-square-square-square .image-1,
.image-section.layout-3-square-square-square .image-2 {
  aspect-ratio: var(--square);
  grid-column: span 4;
}

.image-section.layout-3-portrait-portrait-square .image-0 {
  aspect-ratio: var(--portrait);
  grid-column: span 4;
}

.image-section.layout-3-portrait-portrait-square .image-1 {
  aspect-ratio: var(--portrait);
  grid-column: span 4;
}

.image-section.layout-3-portrait-portrait-square .image-2 {
  aspect-ratio: var(--square);
  grid-column: span 4;
}

.image-section.layout-3-portrait-square-portrait .image-0 {
  aspect-ratio: var(--portrait);
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
}

.image-section.layout-3-portrait-square-portrait .image-1 {
  aspect-ratio: var(--square);
  grid-column: 7 / span 6;
}

.image-section.layout-3-portrait-square-portrait .image-2 {
  aspect-ratio: var(--portrait);
  grid-column: 7 / span 6;
}

.image-section.layout-3-square-portrait-portrait .image-0 {
  aspect-ratio: var(--square);
  grid-column: 1 / span 6;
}

.image-section.layout-3-square-portrait-portrait .image-1 {
  aspect-ratio: var(--portrait);
  grid-column: 1 / span 6;
}

.image-section.layout-3-square-portrait-portrait .image-2 {
  aspect-ratio: var(--portrait);
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
}

.image-section.layout-3-square-square-portrait .image-0 {
  aspect-ratio: var(--square);
  grid-column: 1 / span 6;
}

.image-section.layout-3-square-square-portrait .image-1 {
  aspect-ratio: var(--square);
  grid-column: 1 / span 6;
}

.image-section.layout-3-square-square-portrait .image-2 {
  aspect-ratio: var(--portrait);
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
}

.image-section.layout-3-square-portrait-square .image-0 {
  aspect-ratio: var(--square);
  grid-column: span 4;
}

.image-section.layout-3-square-portrait-square .image-1 {
  aspect-ratio: var(--portrait);
  grid-column: span 4;
}

.image-section.layout-3-square-portrait-square .image-2 {
  aspect-ratio: var(--square);
  grid-column: span 4;
}

.image-section.layout-3-portrait-square-square .image-0 {
  aspect-ratio: var(--portrait);
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
}

.image-section.layout-3-portrait-square-square .image-1 {
  aspect-ratio: var(--square);
  grid-column: 7 / span 6;
  grid-row: 1 / span 1;
}

.image-section.layout-3-portrait-square-square .image-2 {
  aspect-ratio: var(--square);
  grid-column: 7 / span 6;
  grid-row: 2 / span 1;
}

/* Mobile: stack all images */

@media screen and (max-width: 749px) {
  .image-section .image-0,
  .image-section .image-1,
  .image-section .image-2 {
    grid-column: 1 / span 12;
  }
}

/* Legacy simple layouts (for backwards compatibility) */

.image-section.layout-single img {
  grid-column: 1 / span 12;
}

.image-section.layout-two-column {
  grid-template-columns: repeat(12, 1fr);
}

.image-section.layout-two-column img {
  grid-column: span 6;
}

.image-section.layout-three-column {
  grid-template-columns: repeat(12, 1fr);
}

.image-section.layout-three-column img {
  grid-column: span 4;
}

@media screen and (max-width: 600px) {
  .image-section.layout-two-column img,
  .image-section.layout-three-column img {
    grid-column: 1 / span 12;
  }
}

.image-section figure {
  display: grid;
  gap: 0.5rem;
}

.image-section figcaption {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

/* ==========================================================================
   Event Video Sections
   ========================================================================== */

.video-section {
  position: relative;
  width: 100%;
}

.video-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Event Text Sections
   ========================================================================== */

.text-section {
  max-width: var(--textColumnMaxWidth);
}

.text-section p + p {
  margin-top: 1rem;
}

/* ==========================================================================
   Manual Event Pages
   ========================================================================== */

.manual-event {
  display: grid;
  gap: 1.2rem;
  /* max-width: var(--textColumnMaxWidth); */
  max-width: 1200px;
}

.manual-event h1 {
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.manual-event iframe {
  margin-top: -0.6rem;
  margin-bottom: -0.6rem;
}

/* ==========================================================================
   Application Pages
   ========================================================================== */

.application-content {
  display: grid;
  gap: 1.5rem;
  max-width: var(--textColumnMaxWidth);
}

/* ==========================================================================
   Ludus Widget
   ========================================================================== */

.ludus-widget {
  width: 100%;
}

.ludus-widget iframe {
  overflow: hidden;
  background-color: transparent;
  border: none;
  width: 100%;
}

@media screen and (min-width: 1500px) {
  .ludus-widget iframe {
    width: 1000px;
  }
}

/* ==========================================================================
   Artist Residencies Page
   ========================================================================== */

.residencies-content {
  max-width: var(--textColumnMaxWidth);
  display: grid;
  gap: 2rem;
}

.residencies-masthead {
  display: grid;
  gap: 2rem;
}

.residencies-masthead .photo {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.residencies-masthead .image-one {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.residencies-masthead .image-two {
  aspect-ratio: 16 / 7;
  position: relative;
  overflow: hidden;
}

.residencies-masthead .image-three {
  aspect-ratio: 8 / 5;
  position: relative;
  overflow: hidden;
}

@media screen and (min-width: 800px) {
  .residencies-masthead {
    grid-template-columns: 4fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .residencies-masthead .image-one {
    grid-row: span 2;
  }

  .residencies-masthead .image-two {
    grid-column: 2 / span 3;
    align-self: end;
  }

  .residencies-masthead .image-three {
    grid-column: 3 / span 3;
    align-self: start;
  }
}

/* ==========================================================================
   Classes Page
   ========================================================================== */

.classes-container {
  display: grid;
  gap: 6rem;
}

.classes-group {
  display: grid;
  gap: 3rem;
}

.classes-masthead {
  height: 60vh;
  min-height: 16rem;
  position: relative;
  overflow: hidden;
}

.classes-masthead img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.class {
  display: grid;
  gap: 1.5rem;
}

.class .class-content {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 1200px) {
  .class .class-content {
    gap: 3rem;
    grid-template-columns: 14rem 1fr;
    align-items: start;
  }
}

.class-content .tertiary-heading {
  margin-bottom: 0.5rem;
}

.class .meta {
  display: grid;
  gap: 1rem;
  line-height: 150%;
}

.class .meta a {
  text-decoration: underline;
}

.class .meta > div {
  margin-bottom: 1rem;
}

.class .class-body {
  display: grid;
  gap: 1.5rem;
  max-width: var(--textColumnMaxWidth);
}

.class .signup-button {
  display: inline-block;
  color: white;
  background-color: #e8302d;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-family: 'VoxelFoundersGroteskMono', monospace;
}

.class .signup-button:hover {
  background-color: black;
}

/* ==========================================================================
   Page Grid (Field Notes, Lab Notes, Technical Info)
   ========================================================================== */

.page-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media screen and (min-width: 1025px) {
  .page-grid {
    grid-template-columns: repeat(auto-fill, minmax(36rem, 1fr));
  }
}

.page-link-block {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  text-decoration: none;
  color: inherit;
}

.page-link-block:hover {
  opacity: 0.66;
}

.page-header {
  display: grid;
  gap: 1rem;
  justify-items: start;
  min-height: 25vh;
  align-content: center;
}
