/* =============================================================
   Exhibitions section styles (index grid + individual pages)
   ============================================================= */

/* Exhibitions grid — auto-fill with warm red filter */
.gallery-grid--exhibitions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (min-width: 600px) {
  .gallery-grid--exhibitions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-grid--exhibitions .gallery-card img {
  width: 80%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.gallery-grid--exhibitions .gallery-card figcaption {
  width: 80%;
}

/* Gallery grid base */
.gallery-grid {
  columns: 1;
  column-gap: 1.5rem;
}

@media (min-width: 480px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-card {
  margin-bottom: 0;
  display: block;
}

.gallery-card:hover {
  text-decoration: none;
}

.gallery-card figure {
  position: relative;
  overflow: hidden;
}

.gallery-card img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: url(#neonsky);
}

/* Non-linked gallery card (no hover color change) */
.gallery-card--nolink {
  cursor: default;
}

.gallery-card figcaption {
  padding-top: 0.4rem;
}

.gallery-card .card-title {
  font-size: 0.85rem;
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.gallery-card .card-subtitle {
  font-size: 0.80rem;
  color: #666;
  margin-top: 0.1rem;
  line-height: 1.4;
}

/* --- Back link --------------------------------------------- */

.back-link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #000;
  text-decoration: none;
}

/* --- Individual exhibition page ----------------------------- */

.exhibition-page h1 {
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.exhibition-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.exhibition-page .exhibition-description {
  margin-top: 5px;
  margin-bottom: 2rem;
  max-width: 600px;
}

.exhibition-page .exhibition-description p {
  margin-bottom: 0.7rem;
  line-height: 0.9;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.exhibition-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exhibition-images figure img {
  display: block;
  max-width: min(600px, 100%);
  max-height: 600px;
  width: auto;
  height: auto;
  filter: none;
}

.exhibition-page .exhibition-description-end {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.exhibition-page .exhibition-description-end p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
