/* Inner pages — Gallery & News */

.page-inner .nav {
  background: rgba(21, 26, 63, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 100%;
}

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background:
    linear-gradient(135deg, rgba(21, 26, 63, 0.96) 0%, rgba(30, 37, 84, 0.92) 100%),
    url("../assets/backgroundct.png") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 100%, rgba(213, 40, 47, 0.15), transparent);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.page-hero .section-label {
  color: var(--amber);
}

.page-hero .section-label::before {
  background: var(--amber);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-hero-lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.page-content {
  padding: 4rem 0 5rem;
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.gallery-filter {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(21, 26, 63, 0.12);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.gallery-filter:hover {
  border-color: rgba(213, 40, 47, 0.35);
  transform: translateY(-1px);
}

.gallery-filter.active {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px var(--red-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  text-align: left;
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item--tall img {
  aspect-ratio: 16 / 10;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-credit {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(21, 26, 63, 0.08);
  font-size: 0.78rem;
  color: #8b909c;
  text-align: center;
}

.gallery-item-caption {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-item-caption strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.gallery-item-caption span {
  font-size: 0.8rem;
  color: #6b7280;
}

.gallery-item.is-hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 12, 28, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.75rem;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
  max-width: 90vw;
}

/* News */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 26, 63, 0.06);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 140px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.news-card-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.news-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(213, 40, 47, 0.1);
  color: var(--red);
}

.news-tag.tag-colt {
  background: rgba(240, 194, 25, 0.18);
  color: #8a6d08;
}

.news-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.news-card p {
  color: #5a5f6e;
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.2s;
}

.news-card-link:hover {
  gap: 0.55rem;
}

.news-subscribe {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
}

.news-subscribe h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.news-subscribe p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  margin-inline: auto;
}

.news-subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 1;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}
