/* ─── Reset ─── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Global ─── */

body {
  overflow-x: hidden;
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: inherit;
}

footer {
  width: 100%;
  padding: 1em;
  text-align: center;
  font-size: 0.8em;
}

/* ─── Page layout ─── */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3em;
}

/* ─── Site navigation ─── */

.site-nav {
  padding: 2em 0 1.5em 0;
}

.site-nav a {
  font-weight: 500;
  font-size: 1.2em;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.site-nav a:hover {
  font-style: italic;
}

/* ─── Index homepage ─── */

.image-container {
  width: 100%;
  height: 80vh;
  margin-top: 10vh;
  margin-bottom: 30vh;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.fixed-text {
  position: fixed;
  top: 50%;
  left: 2.5em;
  transform: translateY(-50%);
  font-weight: 500;
  font-size: 2.5em;
  color: black;
  white-space: nowrap;
  text-align: left;
}

.home-tagline {
  font-size: 0.35em;
  font-weight: 400;
  margin-top: 0.3em;
}

.homepage-section-block {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: grayscale(100%);
}

.homepage-section-link {
  position: relative;
  z-index: 1;
  color: #fff;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.7em;
  font-weight: 400;
  text-transform: uppercase;
  padding-bottom: 0.5em;
}

.homepage-section-link:hover {
  font-style: italic;
}

/* ─── Work pages ─── */

.work-header {
  display: flex;
  flex-direction: row;
  padding: 2em 0;
  gap: 4em;
  align-items: flex-start;
  margin-bottom: 4em;
}

.work-header-image {
  flex: 0 0 35%;
  max-width: 35%;
}

.work-header-image img {
  width: 100%;
  height: auto;
  display: block;
}

.work-text {
  flex: 1;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-name {
  font-weight: 500;
  font-size: 2.2em;
  margin-bottom: 0.2em;
}

.work-year {
  font-size: 0.9em;
  margin-bottom: 1.5em;
}

.artist-statement {
  font-weight: 300;
  font-size: 0.85em;
  line-height: 1.6;
}

.artist-statement p {
  margin-bottom: 1em;
}

.work-exhibitions {
  margin-top: 3em;
}

.work-exhibitions-label {
  font-weight: 600;
  font-size: 0.8em;
  margin-bottom: 0.4em;
}

.exhibition-entry {
  font-size: 0.8em;
  line-height: 1.5;
}

.img-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 5em;
}

.img-gallery img,
.img-gallery video {
  max-width: 100%;
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: top left;
  filter: grayscale(10%);
  margin-bottom: 5px;
}

.img-gallery img {
    max-height: 50vh;
}

.media-credit-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.media-credit {
  font-size: 0.7em;
  font-style: italic;
  margin: 0;
  color: gray;
}

/* ─── Responsive ─── */

@media (max-width: 1000px) {
  .work-header {
    flex-direction: column;
    padding: 1em 0;
  }

  .work-header-image {
    flex: 0 0 100%;
    max-width: 550px;
  }

  .img-gallery {
    flex-direction: column;
    align-items: flex-start;
  }

  .img-gallery img {
    width: 100%;
    height: auto;
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 16vh;
  }

  .image-container {
    height: auto;
    margin-top: 0;
  }

  .image-container img {
    height: auto;
    object-fit: initial;
  }

  .fixed-text {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    padding: 0.75em 1em 2em 1em;
    font-size: 2em;
    white-space: normal;
  }
}
