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

/* Dense grid — works index page */
.gallery-grid--dense .gallery-card img,
.gallery-grid--dense .gallery-card:hover img {
  filter: none;
}

.gallery-grid--dense {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

/* 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:focus,
.gallery-card:target {
  outline: none;
}

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

.gallery-card img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.gallery-card:hover img {
  filter: grayscale(0);
}

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

.gallery-card--nolink img {
  filter: grayscale(1);
}

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

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

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

/* --- 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 work page ----------------------------------- */

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


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

.work-page .work-description p {
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.work-images {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.work-images figure p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}


.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;
}

.video-local {
  max-width: 100%;
  display: block;
}
