@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap");

:root {
  --dark-blue: #032644;
  --dark-blue-grad: #203f5a;
  --grad: linear-gradient(to bottom, #032644, #203f5a);
  --white: #ffffff;
  --form-background: #e3e7ea;
  --standard-text-color: #011627;
  --light-grey-border: #cccccc;
  --form-text-color: #6d6f70;
  --team-icon-color: #dedede;

  --shadow: 0 20px 60px rgba(3, 38, 68, 0.24);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Inter", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(32, 63, 90, 0.12),
      transparent 30%
    ),
    radial-gradient(circle at 80% 10%, rgba(3, 38, 68, 0.1), transparent 26%),
    linear-gradient(145deg, #f5f7f9 0%, #eef1f6 38%, #f7f9fc 72%);
  color: var(--standard-text-color);
  min-height: 100vh;
  padding: 2.5rem 1.25rem 3.5rem;
}

.page-header {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(
    145deg,
    rgba(3, 38, 68, 0.95),
    rgba(32, 63, 90, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.page-header::before,
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 50%
    ),
    radial-gradient(
      circle at 82% 10%,
      rgba(255, 255, 255, 0.07),
      transparent 45%
    );
  z-index: -2;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: #d7e5ff;
  margin: 0 0 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27c498, #3fe4b2);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: #ffffff;
}

.lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 780px;
}

.badge {
  align-self: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(63, 228, 178, 0.24)
  );
  color: #f5fbff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 30px rgba(15, 43, 91, 0.1);
}

.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--form-background);
  box-shadow: 0 16px 50px rgba(10, 24, 59, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
  aspect-ratio: 2 / 3;
  min-height: 420px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 56px rgba(15, 43, 91, 0.24);
  border-color: rgba(63, 228, 178, 0.35);
}

.card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(63, 228, 178, 0.16)
  );
  transition: transform 180ms ease;
}

.card.card--tall {
  aspect-ratio: 2 / 3;
}

.card:hover img {
  transform: scale(1.02);
}

.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(
    180deg,
    transparent 8%,
    rgba(3, 38, 68, 0.78) 92%
  );
  font-size: 1rem;
  color: #f7fbff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.01em;
}

.empty {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--form-background);
  border-radius: 18px;
  color: var(--form-text-color);
  backdrop-filter: blur(6px);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 50% 30%,
      rgba(0, 183, 120, 0.14),
      transparent 30%
    ),
    rgba(3, 22, 39, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  position: relative;
  max-width: min(92vw, 1160px);
  max-height: 86vh;
  background: var(--grad);
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(2, 8, 30, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0a1b3a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lightbox__caption {
  margin: 0;
  color: #dbe7ff;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: #fff;
  background: rgba(3, 38, 68, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 140ms ease, transform 140ms ease;
}

.lightbox__close:hover {
  background: rgba(3, 38, 68, 0.78);
  transform: scale(1.04);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 38, 68, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease, background 140ms ease,
    border-color 140ms ease;
}

.lightbox__nav:hover {
  background: rgba(3, 38, 68, 0.82);
  border-color: rgba(63, 228, 178, 0.55);
  transform: translateY(-50%) scale(1.04);
}

.lightbox__prev {
  left: clamp(10px, 3vw, 32px);
  z-index: 10;
}

.lightbox__next {
  right: clamp(10px, 3vw, 32px);
}

.page-header .badge {
  background: linear-gradient(
    135deg,
    rgba(0, 183, 120, 0.12),
    rgba(33, 74, 138, 0.12)
  );
}

@media (max-width: 900px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding: 1.75rem 1rem 2.75rem;
  }

  .page-header {
    padding: 1.5rem 1.25rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .card {
    min-height: 440px;
    aspect-ratio: 2 / 3;
  }

  .lightbox__nav {
    width: 48px;
    height: 48px;
  }
}
