/* ============================================
   EXHIBITIONS PAGE
   ============================================ */

.exhibitions-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* --- SINGLE ENTRY --- */
.exhibition-entry {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 104px;
}

.exhibition-entry:last-child {
  margin-bottom: 0;
}

/* --- TITLE ROW --- */
.entry-title-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-title-date {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  width: fit-content;
}

.entry-title {
  font-family: 'Ubzidenz', sans-serif;
  font-size: 21px;
  line-height: 21px;
  letter-spacing: 0.02em;
  color: #000;
  flex-shrink: 0;
}

.entry-location {
  font-family: 'SimSong', serif;
  font-size: 18px;
  line-height: 18px;
  color: #000;
}

.entry-date {
  font-family: 'SimSong', serif;
  font-size: 18px;
  line-height: 18px;
  color: #000;
  margin-left: 8px; /* adjust gap between title and date */
}

.entry-date::before { content: '('; }
.entry-date::after  { content: ')'; }

/* --- DESCRIPTION --- */
.entry-description {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 0; /* spacing handled per-element below for desc/caption grouping */
}

.entry-desc-en,
.entry-desc-zh {
  font-family: 'SimSong', serif;
  font-size: 18px;
  line-height: 18px;
  color: #000;
}

/* gap between the English block and the Chinese block */
.entry-desc-zh {
  margin-top: 16px;
}

/* --- CAPTION --- */
.entry-caption-en,
.entry-caption-zh {
  font-family: 'SimSong', serif;
  font-size: 13px;
  line-height: 13px;
  color: #000;
  margin-top: 6px; /* snug under its description */
}

/* --- IMAGE GALLERY --- */
.entry-gallery-wrap {
  grid-column: 3 / 7;
  display: flex;
  flex-direction: column;
}

.entry-gallery {
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.entry-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: none;
  position: absolute;
  inset: 0;
}

.entry-gallery img.active {
  display: block;
}

/* left / right click zones — 50/50 */
.gallery-zone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 2;
}

.gallery-zone-left  { left: 0;  cursor: w-resize; }
.gallery-zone-right { right: 0; cursor: e-resize; }

/* counter below gallery */
.gallery-counter {
  font-family: 'SimSong', serif;
  font-size: 18px;
  line-height: 18px;
  color: #000;
  text-align: right;
  min-height: 20px;
  margin-top: 8px;
}

/* --- BREAKPOINT 1: 4 columns --- */
@media (max-width: 1200px) {
  .exhibition-entry {
    grid-template-columns: repeat(4, 1fr);
  }

  .entry-description {
    grid-column: 1 / 3;
    flex-direction: column;
  }

  .entry-gallery-wrap {
    grid-column: 3 / 5;
  }
}

/* --- BREAKPOINT 2: 2 columns --- */
@media (max-width: 600px) {
  .exhibition-entry {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-title-row {
    gap: 4px;
  }

  .entry-title {
    font-family: 'Ubzidenz', sans-serif;
    font-size: 21px;
    line-height: 21px;
    letter-spacing: 0.02em;
    color: #000;
    flex-shrink: 0;
  }

  .entry-title-date {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0px;
  }

  .entry-date {
    text-align: left;
  }

  .entry-description {
    grid-column: 1 / 3;
    flex-direction: column;
    order: 3;
    margin-top: -10px;
  }

  .entry-gallery-wrap {
    grid-column: 1 / 3;
    order: 2;
  }

  .gallery-counter {
    text-align: center;
  }
}

/* --- LINEBREAK SPACE --- */
.entry-desc-en p,
.entry-desc-zh p {
  margin-bottom: 6px;
}

.entry-desc-en p:last-child,
.entry-desc-zh p:last-child {
  margin-bottom: 0;
}
