.gallery-page {
  --gp-bg: #fff4e6;
  --gp-ink: #2a1708;
  --gp-text: rgba(45, 29, 14, 0.8);
  --gp-line: rgba(255, 166, 62, 0.36);
  --gp-grad: linear-gradient(120deg, #ff6a00 0%, #ff9933 52%, #ffd84d 100%);
  background: var(--gp-bg);
}

.gallery-page .gallery-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--gp-line);
  background: rgba(255, 250, 241, 0.9);
  color: #b45d00;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-page .gallery-hero {
  padding: 74px 0 42px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 197, 121, 0.24) 0%, rgba(255, 197, 121, 0) 44%),
    radial-gradient(circle at 91% 84%, rgba(255, 126, 18, 0.16) 0%, rgba(255, 126, 18, 0) 48%),
    var(--gp-bg);
}

.gallery-page .gallery-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--gp-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 245, 227, 0.8) 100%);
  box-shadow: 0 22px 40px rgba(63, 31, 4, 0.12);
  padding: clamp(20px, 2.8vw, 34px);
  text-align: center;
}

.gallery-page .gallery-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gp-grad);
}

.gallery-page .gallery-shape {
  position: absolute;
  pointer-events: none;
}

.gallery-page .shape-ring {
  width: 170px;
  height: 170px;
  right: -44px;
  top: -56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 172, 79, 0.42);
  box-shadow: inset 0 0 0 20px rgba(255, 217, 155, 0.2);
}

.gallery-page .shape-dots {
  width: 128px;
  height: 128px;
  left: -24px;
  bottom: -30px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 147, 31, 0.84) 2px, transparent 3px) 0 0 / 11px 11px,
    rgba(255, 210, 137, 0.22);
}

.gallery-page .shape-orb {
  width: 104px;
  height: 104px;
  right: 8%;
  top: 24%;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 26%, rgba(255, 251, 242, 0.88) 0%, rgba(255, 185, 95, 0.22) 68%, rgba(255, 185, 95, 0) 100%);
}

.gallery-page .gallery-hero-shell h1 {
  margin: 14px auto 10px;
  color: var(--gp-ink);
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.08;
  max-width: 980px;
}

.gallery-page .gallery-hero-shell p {
  margin: 0 auto;
  color: var(--gp-text);
  font-size: 18px;
  line-height: 1.68;
  max-width: 860px;
}

.gallery-page .gallery-grid-section {
  padding: 12px 0 88px;
}

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

.gallery-page .gallery-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  box-shadow: 0 12px 22px rgba(70, 36, 7, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-page .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease, filter 350ms ease;
}

.gallery-page .gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.gallery-page .alumni-speaks {
  padding: 0 0 96px;
}

.gallery-page .alumni-shell {
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--gp-line);
  background:
    radial-gradient(circle at top left, rgba(255, 205, 140, 0.18) 0%, rgba(255, 205, 140, 0) 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 244, 224, 0.84) 100%);
  box-shadow: 0 22px 40px rgba(63, 31, 4, 0.1);
  padding: clamp(20px, 2.8vw, 34px);
}

.gallery-page .alumni-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 30px 30px 0 0;
  background: var(--gp-grad);
}

.gallery-page .alumni-head {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.gallery-page .alumni-head-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: end;
}

.gallery-page .alumni-head-copy h2 {
  margin: 0 0 10px;
  color: var(--gp-ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  max-width: 720px;
}

.gallery-page .alumni-head-copy p {
  margin: 0;
  color: var(--gp-text);
  font-size: 17px;
  line-height: 1.72;
  max-width: 680px;
}

.gallery-page .alumni-lead-quote {
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 121, 20, 0.94) 0%, rgba(255, 164, 54, 0.9) 55%, rgba(255, 215, 101, 0.86) 100%);
  box-shadow: 0 18px 32px rgba(99, 44, 4, 0.14);
  color: #fffaf2;
}

.gallery-page .alumni-lead-quote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.74;
  color: inherit;
}

.gallery-page .alumni-lead-quote span {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.36);
  background: rgba(255, 252, 246, 0.14);
  color: #fffaf1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-page .alumni-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.gallery-page .alumni-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 28px;
  border: 1px solid var(--gp-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 231, 0.96) 100%);
  box-shadow: 0 16px 30px rgba(63, 31, 4, 0.08);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.gallery-page .alumni-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 36px rgba(63, 31, 4, 0.12);
}

.gallery-page .alumni-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gp-grad);
}

.gallery-page .alumni-card:nth-child(3n + 1) .alumni-card-tag {
  background: rgba(255, 229, 197, 0.9);
  color: #b05a01;
}

.gallery-page .alumni-card:nth-child(3n + 2) .alumni-card-tag {
  background: rgba(255, 244, 221, 0.92);
  color: #8d4f0f;
}

.gallery-page .alumni-card:nth-child(3n) .alumni-card-tag {
  background: rgba(255, 236, 208, 0.92);
  color: #a04700;
}

.gallery-page .alumni-card-media {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 14px 14px 10px;
  aspect-ratio: 4 / 4.8;
}

.gallery-page .alumni-card-media::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 12px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(78, 43, 10, 0.14) 0%, rgba(78, 43, 10, 0) 72%);
}

.gallery-page .alumni-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 22px;
  display: block;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98) 0%, rgba(255, 241, 214, 0.88) 100%);
  box-shadow: 0 14px 24px rgba(63, 31, 4, 0.08);
}

.gallery-page .alumni-card-media img.alumni-image-tight {
  object-fit: cover;
  object-position: center 18%;
}

.gallery-page .alumni-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 22px;
}

.gallery-page .alumni-card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 78, 0.26);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-page .alumni-card h3 {
  margin: 0;
  color: var(--gp-ink);
  font-size: 1.2rem;
  line-height: 1.1;
}

.gallery-page .alumni-card-role {
  margin: 0;
  color: #9a4f05;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.gallery-page .alumni-card-quote {
  margin: 0;
  color: var(--gp-text);
  font-size: 0.96rem;
  line-height: 1.72;
}

@media (max-width: 991px) {
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .gallery-page .alumni-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gallery-page .gallery-hero {
    padding-top: 56px;
  }

  .gallery-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-page .alumni-head-copy p {
    font-size: 15px;
  }

  .gallery-page .alumni-head-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-page .alumni-shell {
    border-radius: 26px;
    padding: 18px;
  }

  .gallery-page .alumni-head {
    margin-bottom: 22px;
  }

  .gallery-page .alumni-head-copy h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .gallery-page .alumni-lead-quote {
    padding: 18px 18px 16px;
    border-radius: 22px;
  }

  .gallery-page .alumni-card {
    border-radius: 24px;
    min-height: 100%;
    scroll-snap-align: start;
  }

  .gallery-page .alumni-card-media {
    padding: 12px 12px 8px;
    aspect-ratio: 4 / 4.35;
  }

  .gallery-page .alumni-card-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100%, 100%);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .gallery-page .alumni-card-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-page .alumni-card-body {
    padding: 0 16px 18px;
  }

  .gallery-page .alumni-card h3 {
    font-size: 1.12rem;
  }

  .gallery-page .alumni-card-role,
  .gallery-page .alumni-card-quote {
    font-size: 0.9rem;
  }
}

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

  .gallery-page .alumni-shell {
    padding: 16px;
  }

  .gallery-page .alumni-card-media {
    aspect-ratio: 4 / 4.5;
    padding: 10px 10px 8px;
  }

  .gallery-page .alumni-card-grid {
    gap: 12px;
  }

  .gallery-page .alumni-card-body {
    padding: 0 14px 16px;
  }

  .gallery-page .alumni-card-role {
    font-size: 0.84rem;
  }

  .gallery-page .alumni-card-quote {
    font-size: 0.88rem;
    line-height: 1.66;
  }
}
