@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/libre-baskerville-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/libre-baskerville-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/libre-baskerville-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/libre-baskerville-latin-700-italic.woff2') format('woff2');
}

body {
  font-family: 'Libre Baskerville', serif;
}

/* Responsive image base: width/height attributes reserve an aspect-ratio box
   (prevents CLS) while height:auto keeps scaling proportional so images
   shrink instead of squishing. .gallery-item img overrides this on purpose. */
img {
  max-width: 100%;
  height: auto;
}

/* Gallery grid styling */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media screen and (min-width: 30em) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 60em) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Caption reveal on hover (experiment) — overlay layout & contrast are handled
   by Tachyons utilities (absolute absolute--fill, flex centering, bg-black-60,
   white tc pa3). Tachyons has no reveal-on-hover utility, so the show/hide and
   fade live here. */
.gallery-caption {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption {
  opacity: 1;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-embed > a,
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-embed > a:focus-visible { outline-offset: -3px; }
.video-embed img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-embed-play {
  position: absolute; top: 50%; left: 50%;
  width: 68px; height: 48px;
  transform: translate(-50%, -50%);
  background-color: var(--video-play-bg, #ff0133);
  border-radius: 12px;
}
.video-embed-play::before {
  content: "";
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}
