/* ==========================================================================
   Gallery — "Full-bleed dark photo gallery"
   A minimal, moody, edge-to-edge gallery on near-black so the photos dominate.
   Scoped with .ga-
   ========================================================================== */

.ga-main {
  background: #07090c;
  color: var(--ice-soft);
}

/* --- Slim dark header band --------------------------------------------- */
.ga-head {
  position: relative;
  padding-block: clamp(7rem, 14vw, 10rem) clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(43, 182, 204, .14), transparent 60%),
    #07090c;
  border-block-end: 1px solid rgba(191, 227, 239, .08);
  text-align: center;
}

.ga-kicker {
  color: var(--teal-br);
  letter-spacing: .28em;
}

.ga-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.04;
  margin-block: .35em .25em;
  color: var(--snow);
  letter-spacing: -.01em;
}

.ga-sub {
  max-width: 46ch;
  margin-inline: auto;
  margin-block-start: .6rem;
  font-family: var(--f-cormorant);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  color: rgba(191, 227, 239, .75);
}

/* --- Masonry grid (CSS columns) ---------------------------------------- */
.ga-section {
  padding: clamp(.4rem, 1.2vw, 1rem);
  background: #07090c;
}

.ga-grid {
  column-count: 4;
  column-gap: clamp(.4rem, 1vw, .9rem);
}

.ga-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-block-end: clamp(.4rem, 1vw, .9rem);
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: #0d1117;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03);
}

.ga-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.92) brightness(.96);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.ga-item:hover img,
.ga-item:focus-within img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

/* --- Caption overlay --------------------------------------------------- */
.ga-item figcaption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.6rem 1rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: start;
  background: linear-gradient(to top, rgba(4, 6, 9, .92) 0%, rgba(4, 6, 9, .55) 55%, transparent 100%);
  color: var(--snow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}

.ga-item:hover figcaption,
.ga-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.ga-item figcaption span:first-child {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
  letter-spacing: .01em;
}

.ga-item figcaption small {
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(191, 227, 239, .7);
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .ga-grid { column-count: 3; }
}

@media (max-width: 920px) {
  .ga-grid { column-count: 2; }
}

@media (max-width: 560px) {
  .ga-grid { column-count: 1; }

  /* Always-visible captions on mobile (no hover) */
  .ga-item figcaption {
    position: static;
    opacity: 1;
    transform: none;
    background: #0b0e13;
    padding: .8rem .9rem 1rem;
  }
  .ga-item img {
    filter: none;
  }
}
