/* ── Exhibitions landing ─────────────────────────────────────── */

html, body {
  overflow: hidden;
  height: 100%;
}



.exhibitions-layout {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 100%;
}

.nav-top-right {
  visibility: hidden;
}

/* ── Shared column styles ────────────────────────────────────── */
.exh-col {
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2rem 4rem;
  -webkit-overflow-scrolling: touch;
}

.col-heading {
  font-family: var(--font-serif);
  text-align: center;
  font-weight: normal;
  margin-bottom: 4rem;
}

/* ── Left: Hover-driven key image ────────────────────────────── */
.exh-col--images {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exh-left-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.exh-left-image.is-fading {
  opacity: 0;
}

/* ── Centre: Exhibitions list ────────────────────────────────── */
.exh-col--exhibitions {
  background: var(--color-white);
}

.exh-group {
  margin-bottom: 2rem;
}

.exh-group-label {
  font-family: var(--font-serif);
  /* font-size: 16px; */
  margin-bottom: 0.5rem;
  color: var(--color-black);
  /* text-decoration: underline; */
/* font-style: italic; */
}

.exh-item {
  display: block;
  padding: 0.25rem 0.5rem;
  margin: 0 -0.5rem;
  text-decoration: none;
  color: var(--color-black);
  transition: background 0.15s, color 0.15s;
}

.exh-item-title{
  text-decoration: underline;
  /* font-style: italic;  */
}

.exh-item .exh-item-title,
.exh-item .exh-item-dates {
  display: block;
  font-family: var(--font-serif);
  /* font-size: 16px; */
  line-height: 1.35;
}

/* Hover / highlighted state: black bg, white text */
.exh-item:hover,
.exh-item.is-highlighted {
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
}

/* ── Right: Essays ───────────────────────────────────────────── */
.exh-col--essays {
  background: var(--color-accent);
}

.essay-list {
  display: flex;
  /* text-align: center; */
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.essay-list-item {
  padding: 0;
}

.essay-trigger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 0.25rem 0.5rem;
  margin: 0 -0.5rem;
  width: calc(100% + 1rem);
  transition: background 0.15s, color 0.15s;
  color: var(--color-black);
}

.essay-trigger:hover,
.essay-list-item.is-highlighted .essay-trigger {
  background: var(--color-black);
  color: var(--color-white);
}

.essay-item-title,
.essay-item-author {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  /* font-size: 16px; */
  line-height: 1.35;
}

.essay-item-title {
  font-style: italic;
}

/* ── Essay modal ─────────────────────────────────────────────── */
.essay-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(220, 220, 220,0.82);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.essay-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.essay-modal-inner {
  position: relative;
  background: var(--color-white);
  width: 100%;
  max-width: 780px;
  padding: 3rem 2rem 4rem;
}

.essay-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  /* font-size: 1.1rem; */
  cursor: pointer;
  font-family: var(--font-serif);
}

.essay-modal-content {
  font-family: var(--font-serif);
  /* font-size: 16px; */
  line-height: 1.5;
}

/* inline mobile image — hidden on desktop */
.exh-item-mobile-image {
  display: none;
}

/* ── Responsive: mobile stack ────────────────────────────────── */
@media screen and (max-width: 44rem) {
  html, body { overflow: auto; }
.corner-nav .nav-top-left {
  width: 50vw;
}
  .exhibitions-layout {
    position: static;
    display: block;
    height: auto;
  }

  .exh-col {
    height: auto;
    overflow: visible;
    padding: 5rem 1.5rem 2rem;
  }

  .col-heading {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .exh-col--essays {
    margin-top: 0;
    padding-top: 1rem;
  }

  .exh-col--images {
    display: none;
  }

  .exh-item-mobile-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0.75rem;
  }
}
