/* GALLERY ARCHIVE — shared 10-16 command styling with image-first presentation. */

.page-gallery .page-intro::after { content: "05"; }

.page-gallery .gallery-telemetry .stat-value {
  white-space: normal;
}

.page-gallery .gallery-feature-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  margin-bottom: 18px;
}

.page-gallery .gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(126,181,203,.30);
  background: #02080d;
  box-shadow:
    inset 0 1px 0 rgba(221,240,247,.08),
    inset 0 -1px 0 rgba(0,0,0,.88),
    0 16px 36px rgba(0,0,0,.22);
}

.page-gallery .gallery-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, #77e7fb, rgba(91,211,240,.34), transparent);
}

.page-gallery .gallery-card > a {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
}

.page-gallery .gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
  filter: brightness(.82) saturate(.98) contrast(1.04);
}

.page-gallery .gallery-card:hover img {
  transform: scale(1.012);
  filter: brightness(.88) saturate(1.03) contrast(1.05);
}

.page-gallery .gallery-card-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 26px 22px;
  background:
    linear-gradient(0deg, rgba(2,8,14,.98) 0%, rgba(2,8,14,.90) 46%, rgba(2,8,14,.38) 78%, transparent 100%);
  pointer-events: none;
}

.page-gallery .gallery-card-copy .location-type {
  margin: 0 0 6px;
  color: var(--archive-orange);
  font-family: "Oxanium", sans-serif;
  font-size: .50rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.page-gallery .gallery-card-copy h3 {
  margin: 0 0 8px;
  color: #57d0f1;
  background: linear-gradient(180deg, #7ae5f9, #3cb9df 58%, #1b759f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 0 rgba(5,39,58,.68));
}

.page-gallery .gallery-card-copy p:last-child {
  max-width: 680px;
  margin: 0;
  color: #a7bac4;
  line-height: 1.58;
}

.page-gallery .gallery-card-secondary {
  min-height: 330px;
}

.page-gallery .gallery-card-secondary img {
  min-height: 330px;
  object-position: center 46%;
}

.page-gallery .gallery-strip {
  margin-bottom: 18px;
}

.page-gallery .gallery-strip-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(126,181,203,.25);
  background: #02080d;
  box-shadow:
    inset 0 1px 0 rgba(220,238,246,.06),
    inset 0 -1px 0 rgba(0,0,0,.82);
}

.page-gallery .gallery-strip-card img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  filter: brightness(.72) saturate(.92) contrast(1.04);
}

.page-gallery .gallery-strip-card .gallery-card-copy {
  padding-top: 42px;
}

.page-gallery .channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.page-gallery .channel-card {
  position: relative;
  min-height: 170px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(126,181,203,.25);
  background:
    linear-gradient(180deg, rgba(203,225,235,.04), transparent 27%),
    linear-gradient(135deg, rgba(27,75,98,.11), transparent 48%),
    linear-gradient(180deg, rgba(5,21,33,.97), rgba(2,11,18,.98));
  box-shadow:
    inset 0 1px 0 rgba(214,237,245,.07),
    inset 0 -1px 0 rgba(0,0,0,.78);
}

.page-gallery .channel-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--archive-orange);
  transform: rotate(45deg);
  opacity: .58;
}

.page-gallery .channel-card .location-type {
  margin: 0 0 7px;
  color: var(--archive-orange);
  font-size: .49rem;
  letter-spacing: .14em;
}

.page-gallery .channel-card h4 {
  margin: 0 0 9px;
  color: #59d3f3;
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-gallery .channel-card p:last-child {
  margin: 0;
  color: #8fa6b2;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .page-gallery .gallery-feature-grid {
    grid-template-columns: 1fr;
  }

  .page-gallery .gallery-card,
  .page-gallery .gallery-card img,
  .page-gallery .gallery-card-secondary,
  .page-gallery .gallery-card-secondary img {
    min-height: 360px;
  }

  .page-gallery .channel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .page-gallery .page-intro h2 {
    font-size: clamp(2.7rem, 15vw, 4.25rem);
  }

  .page-gallery .gallery-card,
  .page-gallery .gallery-card img,
  .page-gallery .gallery-card-secondary,
  .page-gallery .gallery-card-secondary img {
    min-height: 410px;
  }

  .page-gallery .gallery-card img,
  .page-gallery .gallery-card-secondary img {
    object-position: center center;
  }

  .page-gallery .gallery-card-copy {
    padding: 22px 18px 18px;
  }

  .page-gallery .gallery-card-copy p:last-child {
    font-size: .93rem;
  }

  .page-gallery .gallery-strip-card,
  .page-gallery .gallery-strip-card img {
    min-height: 300px;
    height: 300px;
  }

  .page-gallery .channel-grid {
    grid-template-columns: 1fr;
  }
}
