.photos-page {
  background: #071a31;
}

.photos-header {
  position: absolute;
  inset: 34px 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.photos-header .current::after {
  width: 100% !important;
}

.gallery-hero {
  min-height: 680px;
  display: flex;
  align-items: end;
  padding: 190px 0 82px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(4, 18, 35, 0.98), rgba(4, 18, 35, 0.7)),
    url("assets/HEADER.jpg") center 40% / cover;
}

.gallery-hero::after {
  content: "PHOTOS";
  position: absolute;
  right: -20px;
  bottom: -45px;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(110px, 19vw, 300px);
  line-height: 0.75;
  pointer-events: none;
}

.gallery-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.back-link {
  display: inline-flex;
  margin-bottom: 48px;
  color: #b9dcff;
  font:
    800 12px/1 Arial,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-kicker,
.section-number {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(65px, 8vw, 130px);
  line-height: 0.78;
  text-transform: uppercase;
}

.gallery-hero h1 span {
  display: block;
  color: var(--red);

  -webkit-text-stroke: 0;
  text-shadow: none;
}

.gallery-intro {
  max-width: 430px;
  margin: 0;
  padding-left: 28px;
  border-left: 3px solid var(--red);
  color: #c5d5e4;
  font:
    17px/1.7 Arial,
    sans-serif;
}

.gallery-section {
  padding: 100px 0 120px;
  background: #f4f7fa;
  color: var(--navy);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 50px;
}

.gallery-head h2 {
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.82;
  text-transform: uppercase;
}

.gallery-head h2 span {
  color: var(--red);
}

.gallery-head > p {
  max-width: 340px;
  margin: 0;
  color: #61758a;
  font:
    15px/1.6 Arial,
    sans-serif;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 280px;
  gap: 14px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #dce5ec;
  cursor: zoom-in;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card--tall {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.55s ease,
    filter 0.55s ease;
}

.gallery-card::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font:
    24px/1 Arial,
    sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: contrast(1.06);
}

.gallery-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-empty {
  padding: 100px 30px;
  border: 1px solid #ccd7e0;
  color: #718497;
  font-size: clamp(30px, 5vw, 64px);
  text-align: center;
  text-transform: uppercase;
}

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.gallery-more {
  min-width: 270px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font:
    800 15px/1 "Hockey IQ",
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-more:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.gallery-more span {
  font-size: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 45px;
  background: rgba(2, 12, 24, 0.96);
  cursor: zoom-out;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1400px, 94vw);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font:
    35px/1 Arial,
    sans-serif;
}

.no-scroll {
  overflow: hidden;
}

.photos-footer {
  padding: 36px 0;
  background: #03101f;
}

.footer-line,
.footer-brand {
  display: flex;
  align-items: center;
}

.footer-line {
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  gap: 12px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
}

.footer-brand span,
.footer-line > a {
  font-size: 13px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .gallery-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .gallery-intro {
    max-width: 620px;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 270px;
  }
}

@media (max-width: 600px) {
  .gallery-hero {
    min-height: 640px;
    padding: 155px 0 60px;
  }

  .gallery-hero::after {
    display: none;
  }

  .gallery-hero h1 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .gallery-section {
    padding: 70px 0 80px;
  }

  .gallery-head {
    display: grid;
    gap: 24px;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 420px;
  }

  .gallery-card--wide,
  .gallery-card--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .lightbox {
    padding: 18px;
  }

  .footer-line {
    align-items: flex-start;
    flex-direction: column;
  }
}
