@import url("style.css");

.gallery-new-page {
  --gallery-blue: var(--blue, #002c5b);
  --gallery-blue-deep: #0b2d59;
  --gallery-accent: var(--gold, #fc6a20);
  --gallery-accent-bright: var(--gold-bright, #ff7d35);
  --gallery-ink: var(--charcoal, #202020);
  --gallery-muted: var(--muted, #5d6873);
  --gallery-surface: var(--panel, #ffffff);
  --gallery-surface-soft: var(--panel-soft, #f1f5f8);
  --gallery-line: var(--line, rgba(0, 44, 91, 0.14));
  --gallery-white: var(--white, #ffffff);
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 44, 91, 0.045), transparent 44%),
    var(--ink, #f7f9fb);
  color: var(--gallery-ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gallery-new-shell {
  width: min(calc(100% - 40px), var(--max, 1180px));
  margin-inline: auto;
  overflow: hidden;
}

.gallery-new-intro {
  display: flex;
  min-height: 62vh;
  max-width: 920px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 168px 0 88px;
}

.gallery-new-kicker,
.gallery-new-label,
.gallery-new-count,
.gallery-new-lightbox-brand {
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gallery-new-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gallery-accent);
}

.gallery-new-kicker span:first-child {
  color: var(--gallery-blue);
}

.gallery-new-page h1,
.gallery-new-page h2,
.gallery-new-page p {
  margin: 0;
}

.gallery-new-page h1 {
  max-width: 800px;
  color: var(--gallery-ink);
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(3rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.gallery-new-page h1 em {
  color: var(--gallery-accent);
  font-style: normal;
}

.gallery-new-intro-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  max-width: 760px;
  margin-top: 34px;
}

.gallery-new-copy {
  max-width: 560px;
  color: var(--gallery-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.gallery-new-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.gallery-new-stat strong {
  color: var(--gallery-blue);
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.gallery-new-stat span {
  color: var(--gallery-muted);
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.gallery-new-section {
  padding: 46px 0 112px;
  border-top: 1px solid var(--gallery-line);
}

.gallery-new-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.gallery-new-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gallery-accent);
}

.gallery-new-page h2 {
  color: var(--gallery-ink);
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2.2rem, 4.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.gallery-new-count {
  color: var(--gallery-muted);
  white-space: nowrap;
}

.gallery-new-video-grid,
.gallery-new-masonry-grid {
  column-count: 4;
  column-gap: 16px;
}

.gallery-new-video-grid {
  margin-bottom: 44px;
}

.gallery-new-card {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gallery-line);
  border-radius: var(--radius, 8px);
  background: var(--gallery-surface);
  color: inherit;
  box-shadow: 0 14px 38px rgba(0, 44, 91, 0.1);
  text-align: left;
  animation: gallery-new-reveal 0.65s var(--ease-soft, ease) both;
  transition:
    border-color 320ms var(--ease-soft, ease),
    box-shadow 320ms var(--ease-soft, ease),
    transform 320ms var(--ease-soft, ease);
}

.gallery-new-card img,
.gallery-new-card video {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 900ms var(--ease-soft, ease),
    filter 900ms ease;
}

.gallery-new-card video {
  background: var(--gallery-blue-deep);
}

.gallery-new-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 44, 91, 0.52));
  opacity: 0;
  transition: opacity 320ms ease;
}

.gallery-new-card:hover,
.gallery-new-card:focus-visible {
  border-color: rgba(252, 106, 32, 0.52);
  box-shadow: 0 22px 58px rgba(0, 44, 91, 0.18);
  transform: translateY(-3px);
}

.gallery-new-card:hover img,
.gallery-new-card:hover video,
.gallery-new-card:focus-visible img,
.gallery-new-card:focus-visible video {
  transform: scale(1.055);
  filter: contrast(1.06) saturate(1.04);
}

.gallery-new-card:hover::after,
.gallery-new-card:focus-visible::after {
  opacity: 1;
}

.gallery-new-card:focus-visible {
  outline: 2px solid var(--gallery-accent);
  outline-offset: 3px;
}

.gallery-new-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(0, 44, 91, 0.78);
  box-shadow: 0 16px 36px rgba(0, 44, 91, 0.28);
  transform: translate(-50%, -50%);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    transform 260ms ease;
}

.gallery-new-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--gallery-white);
}

.gallery-new-card:hover .gallery-new-play,
.gallery-new-card:focus-visible .gallery-new-play {
  border-color: var(--gallery-accent-bright);
  background: var(--gallery-accent);
  transform: translate(-50%, -50%) scale(1.06);
}

.gallery-new-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  color: var(--gallery-white);
}

.gallery-new-lightbox.is-open {
  display: block;
}

.gallery-new-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 63, 0.96);
  backdrop-filter: blur(10px);
}

.gallery-new-lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 40px), var(--max, 1180px));
  height: 100%;
  margin-inline: auto;
  padding: 28px 0 32px;
}

.gallery-new-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-new-icon-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gallery-white);
}

.gallery-new-close-button {
  width: 42px;
  height: 42px;
  border-radius: var(--radius, 8px);
  font-size: 24px;
  line-height: 1;     padding-bottom: 10px;
}

.gallery-new-lightbox-content {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  flex: 1;
  align-items: center;
  gap: 22px;
  min-height: 0;
}

.gallery-new-nav-button {
  width: 48px;
  height: 48px;
  border-radius: var(--radius, 8px);
  font-size: 23px;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    transform 260ms var(--ease-soft, ease);
}

.gallery-new-nav-button:hover,
.gallery-new-close-button:hover,
.gallery-new-nav-button:focus-visible,
.gallery-new-close-button:focus-visible {
  border-color: var(--gallery-accent);
  background: var(--gallery-accent);
  transform: translateY(-2px);
}

.gallery-new-next-button {
  justify-self: end;
}

.gallery-new-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  height: 100%;
  margin: 0;
}

#galleryNewLightboxMedia {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
}

.gallery-new-lightbox-figure img,
.gallery-new-lightbox-figure video {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius, 8px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.gallery-new-lightbox-figure figcaption {
  display: flex;
  justify-content: flex-start;
  width: min(100%, 820px);
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.gallery-new-lightbox-index {
  flex: 0 0 auto;
  color: var(--gallery-accent-bright);
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 0.78rem;
  font-weight: 800;
}

body.gallery-new-locked {
  overflow: hidden;
}

@keyframes gallery-new-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .gallery-new-shell {
    width: min(calc(100% - 36px), var(--max, 1180px));
  }

  .gallery-new-intro {
    min-height: auto;
    padding: 164px 0 82px;
  }

  .gallery-new-page h1 {
    font-size: clamp(2.65rem, 11vw, 3.2rem);
  }

  .gallery-new-intro-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    margin-top: 30px;
  }

  .gallery-new-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .gallery-new-video-grid,
  .gallery-new-masonry-grid {
    column-count: 2;
    column-gap: 12px;
  }

  .gallery-new-card {
    margin-bottom: 12px;
  }

  .gallery-new-lightbox-frame {
    width: calc(100% - 36px);
    padding: 20px 0;
  }

  .gallery-new-lightbox-content {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .gallery-new-nav-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .gallery-new-lightbox-figure img,
  .gallery-new-lightbox-figure video {
    max-height: calc(100vh - 190px);
  }
}

@media (max-width: 480px) {
  .gallery-new-shell {
    width: calc(100% - 32px);
  }

  .gallery-new-intro {
    padding-top: 150px;
  }

  .gallery-new-page h1 {
    font-size: 2.5rem;
  }

  .gallery-new-copy {
    font-size: 1rem;
  }

  .gallery-new-section {
    padding-bottom: 86px;
  }

  .gallery-new-video-grid,
  .gallery-new-masonry-grid {
    column-count: 2;
  }

  .gallery-new-play {
    width: 44px;
    height: 44px;
  }

  .gallery-new-play::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }
}

@media (hover: none) {
  .gallery-new-card:hover {
    transform: none;
  }
}
