/* ==========================================================================
   School Life (student-life.html): page styles
   Scoped with body.page-student-life. Colours come from main.css tokens only.
     01  Hero tweaks + "On this page" index card
     02  #assembly  (assembly video, photo pair, verse, uniform swatch)
     03  #learning  (three classroom photos, levels strip, desks callout)
     04  #ict       (purple section, need facts, staggered photo trio)
     05  #play      (3D diorama frame, caption bar, games, classroom-block note)
     06  #gallery   (justified rows + lightbox)
     07  Closing CTA (gift chips, give-directly card)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01  Hero + index card
   -------------------------------------------------------------------------- */
.page-student-life .sl-hero {
  padding-bottom: calc(clamp(72px, 9vw, 128px) + 40px);
}

/* keep the gold italic words of the hero title together on one line */
.page-student-life .sl-hero .page-hero__title em {
  display: inline-block;
}

.page-student-life .sl-index-wrap {
  position: relative;
  z-index: 3;
  background-color: var(--khaki-50);
  background-image: var(--grain);
}

.page-student-life .sl-index {
  --sl-index-overlap: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: calc(var(--sl-index-overlap) * -1);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-student-life .sl-index__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: .15rem .7rem;
  min-height: 56px;
  padding: .95rem 1rem;
  background: var(--paper);
  color: var(--purple-900);
  transition: background-color .35s ease;
}

.page-student-life .sl-index__link:last-child {
  grid-column: 1 / -1;
}

.page-student-life .sl-index__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease-out);
}

.page-student-life .sl-index__link:hover,
.page-student-life .sl-index__link:focus-visible {
  background: var(--purple-50);
}

.page-student-life .sl-index__link:hover::after,
.page-student-life .sl-index__link:focus-visible::after {
  transform: scaleX(1);
}

.page-student-life .sl-index__link:focus-visible {
  outline: 2px solid var(--purple-700);
  outline-offset: -4px;
}

.page-student-life .sl-index__num {
  font-family: var(--font-serif);
  font-size: .9375rem;
  color: var(--gold-700);
  font-variant-numeric: lining-nums;
}

.page-student-life .sl-index__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.3;
}

.page-student-life .sl-index__desc {
  display: none;
  grid-column: 2;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--slate);
}

@media (max-width: 639.98px) {
  .page-student-life .sl-index { --sl-index-overlap: 44px; }
}

@media (min-width: 640px) {
  .page-student-life .sl-index {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .page-student-life .sl-index__link {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: .35rem;
    padding: 1.1rem 1rem 1.2rem;
  }
  .page-student-life .sl-index__link:last-child {
    grid-column: auto;
  }
  .page-student-life .sl-index__desc {
    grid-column: 1;
  }
}

@media (min-width: 1024px) {
  .page-student-life .sl-index__link {
    padding: 1.5rem 1.6rem 1.6rem;
  }
  .page-student-life .sl-index__title {
    font-size: 1.15rem;
  }
  .page-student-life .sl-index__desc {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   02  Morning assembly
   -------------------------------------------------------------------------- */
.page-student-life .sl-assembly__copy {
  margin-top: 1.5rem;
}

.page-student-life .sl-assembly__copy > * + * {
  margin-top: 1rem;
}

.page-student-life .sl-assembly__copy strong {
  font-weight: 600;
  color: var(--purple-900);
}

.page-student-life .sl-assembly__notes {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.page-student-life .sl-verse {
  position: relative;
  margin: 0;
  padding: .2rem 0 .2rem 1.35rem;
  border-left: 1px solid var(--gold-500);
}

.page-student-life .sl-verse blockquote {
  margin: 0;
}

.page-student-life .sl-verse p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.02rem + .35vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--purple-900);
}

.page-student-life .sl-verse figcaption {
  margin-top: .6rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.page-student-life .sl-uniform {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-student-life .sl-uniform__swatch {
  --g-cell: 6px;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(43, 25, 56, .12);
}

.page-student-life .sl-uniform__text {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--slate);
}

.page-student-life .sl-uniform__text strong {
  display: block;
  margin-bottom: .1rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--purple-900);
}

/* the assembly video leads (main.css .video-card, 720px at most), the two photos sit under it as a pair */
.page-student-life .sl-assembly__media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 2.75rem);
  min-width: 0;
}

.page-student-life .sl-assembly__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(.5rem, 1.6vw, 1.25rem);   /* each frame also keeps its own offset margin for the hairline */
  width: 100%;
  max-width: 720px;
}

.page-student-life .sl-assembly__photo {
  min-width: 0;
}

@media (max-width: 479.98px) {
  .page-student-life .sl-assembly__photo > figcaption {
    font-size: .75rem;
  }
}

/* --------------------------------------------------------------------------
   03  In the classroom
   -------------------------------------------------------------------------- */
.page-student-life .sl-learning {
  overflow: hidden;
}

.page-student-life .sl-class-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3rem) clamp(20px, 2.6vw, 40px);
}

.page-student-life .sl-class {
  min-width: 0;
}

.page-student-life .sl-class__title {
  margin: 1.1rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem);
  line-height: 1.3;
  color: var(--purple-900);
}

.page-student-life .sl-class__text {
  margin-top: .55rem;
  max-width: 46ch;
  font-size: .96875rem;
  line-height: 1.65;
  color: var(--slate);
}

.page-student-life .sl-class__text strong {
  color: var(--purple-900);
}

@media (min-width: 700px) and (max-width: 1023.98px) {
  .page-student-life .sl-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* first photo runs across both columns, text beside it */
  .page-student-life .sl-class:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0 clamp(24px, 4vw, 40px);
    align-items: center;
  }
  .page-student-life .sl-class:first-child .sl-class__frame {
    grid-row: 1 / span 2;
  }
  .page-student-life .sl-class:first-child .sl-class__title {
    align-self: end;
    margin-top: 0;
  }
  .page-student-life .sl-class:first-child .sl-class__text {
    align-self: start;
  }
}

@media (min-width: 1024px) {
  .page-student-life .sl-class-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* levels strip */
.page-student-life .sl-levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.75rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-block: 1.35rem;
  border-block: 1px solid var(--line);
}

.page-student-life .sl-levels__label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.page-student-life .sl-levels__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  color: var(--purple-900);
}

.page-student-life .sl-levels__list li {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}

.page-student-life .sl-levels__list li + li::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

.page-student-life .sl-levels__link {
  margin-left: auto;
}

@media (max-width: 639.98px) {
  .page-student-life .sl-levels {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  /* a short vertical ladder: a gold dot on a hairline for each level */
  .page-student-life .sl-levels__list {
    position: relative;
    display: grid;
    gap: .55rem;
    padding-left: 1.4rem;
  }
  .page-student-life .sl-levels__list::before {
    content: "";
    position: absolute;
    top: .7em;
    bottom: .7em;
    left: 3px;
    width: 1px;
    background: var(--gold-500);
  }
  .page-student-life .sl-levels__list li {
    position: relative;
  }
  .page-student-life .sl-levels__list li::before,
  .page-student-life .sl-levels__list li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(-1.4rem + .5px);
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--gold-500);
  }
  .page-student-life .sl-levels__link {
    margin-left: 0;
  }
}

/* desks callout */
.page-student-life .sl-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem 1.4rem;
  align-items: center;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.3rem, 3vw, 2.4rem);
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: var(--radius-lg);
}

.page-student-life .sl-callout__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--purple-700);
  color: var(--gold-300);
  font-size: 1.15rem;
}

.page-student-life .sl-callout__kicker {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-800);
}

.page-student-life .sl-callout__title {
  margin: .3rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  line-height: 1.3;
  color: var(--purple-900);
}

.page-student-life .sl-callout__text {
  margin-top: .35rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-student-life .sl-callout__text strong {
  color: var(--purple-900);
}

.page-student-life .sl-callout__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.5rem;
}

@media (min-width: 900px) {
  .page-student-life .sl-callout {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .page-student-life .sl-callout__actions {
    grid-column: auto;
  }
}

@media (max-width: 479.98px) {
  .page-student-life .sl-callout {
    align-items: start;
  }
  .page-student-life .sl-callout__icon {
    width: 2.6rem;
    height: 2.6rem;
    font-size: .95rem;
  }
}

/* --------------------------------------------------------------------------
   04  ICT lessons (purple)
   -------------------------------------------------------------------------- */
.page-student-life .sl-ict {
  overflow: hidden;
}

.page-student-life .sl-ict__head {
  align-items: end;
}

.page-student-life .sl-ict__copy {
  margin-top: 1.5rem;
  max-width: 60ch;
}

.page-student-life .sl-ict__copy > * + * {
  margin-top: 1rem;
}

.page-student-life .sl-ict__need .need-facts {
  margin-top: 0;
}

.page-student-life .sl-ict__need .btn-group {
  margin-top: 2rem;
}

.page-student-life .sl-trio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 14px;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

/* phones: one large photo, then two side by side */
.page-student-life .sl-trio__item:first-child {
  grid-column: 1 / -1;
}

.page-student-life .sl-trio__item:first-child .photo-frame__media {
  aspect-ratio: 1 / 1;
}

.page-student-life .sl-trio__item:not(:first-child) {
  --pf-offset: 8px;
}

.page-student-life .sl-trio__item:not(:first-child) > figcaption {
  font-size: .75rem;
}

@media (min-width: 700px) {
  .page-student-life .sl-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
  }
  .page-student-life .sl-trio__item:first-child {
    grid-column: auto;
  }
  .page-student-life .sl-trio__item:first-child .photo-frame__media {
    aspect-ratio: var(--pf-ratio);
  }
  .page-student-life .sl-trio__item:not(:first-child) {
    --pf-offset: clamp(10px, 1.2vw, 16px);
  }
  .page-student-life .sl-trio__item:not(:first-child) > figcaption {
    font-size: .8125rem;
  }

  /* the middle photo sits lower: a gentle stagger */
  .page-student-life .sl-trio__item:nth-child(2) {
    margin-top: clamp(2.5rem, 6vw, 5.5rem);
  }
  .page-student-life .sl-trio__item:nth-child(3) {
    margin-top: clamp(1rem, 2.5vw, 2rem);
  }
}

/* The first two trio photos were taken from almost the same spot. Crop the middle one in on the
   pupils round the laptop so the three frames read as three different views. The image is sized
   and positioned (not transformed), so the clip reveal's own scale animation still applies on top.
   Crop: 1.5x, anchored at 50% across and 96% down the photo (below the roof beam). */
.page-student-life .sl-trio__item:nth-child(2) .photo-frame__media img {
  position: absolute;
  top: calc(-.5 * 96%);
  left: calc(-.5 * 50%);
  width: 150%;
  max-width: none;
  height: 150%;
}

/* the on-photo label would cover faces on the narrow tablet columns */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .page-student-life .sl-trio .photo-frame__tag {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   05  After lessons: the 3D diorama
   -------------------------------------------------------------------------- */
.page-student-life .sl-play__stage {
  position: relative;
}

.page-student-life .sl-scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--purple-900);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.page-student-life .sl-scene__canvas {
  height: clamp(460px, 74vh, 780px);
  background: linear-gradient(180deg, #3D2452 0%, #8A6BB0 42%, #E9C9A2 100%);
}

@media (max-width: 640px) {
  .page-student-life .sl-scene__canvas {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

.page-student-life .sl-scene__poster {
  overflow: hidden;
}

.page-student-life .sl-scene__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.page-student-life .sl-scene__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 18, 41, .15) 0%, rgba(31, 18, 41, 0) 35%, rgba(31, 18, 41, .35) 100%);
}

.page-student-life .sl-scene__badge {
  position: absolute;
  top: clamp(.8rem, 1.6vw, 1.25rem);
  left: clamp(.8rem, 1.6vw, 1.25rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(31, 18, 41, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.page-student-life .sl-scene__badge i {
  color: var(--gold-300);
}

/* caption bar: a dark label strip under the model */
.page-student-life .sl-scene__bar {
  --c-text: rgba(250, 247, 240, .84);
  --c-heading: #fff;
  --c-muted: rgba(250, 247, 240, .74);
  --c-line: var(--line-light);
  --c-line-strong: rgba(250, 247, 240, .32);
  --c-accent: var(--gold-300);
  --c-focus: var(--gold-300);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  min-height: 72px;
  padding: .9rem clamp(1rem, 2.4vw, 1.75rem);
  background: var(--purple-900);
  border-top: 1px solid rgba(224, 181, 64, .35);
  color: var(--c-text);
}

.page-student-life .sl-scene__caption {
  font-family: var(--font-serif);
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  font-style: italic;
  color: #fff;
}

.page-student-life .sl-scene__toggle {
  margin-left: auto;
}

.page-student-life .sl-scene__toggle:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

/* games + classroom-block note */
.page-student-life .sl-play__foot {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .page-student-life .sl-play__foot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-student-life .sl-games {
  display: grid;
  gap: 1.35rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .page-student-life .sl-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-student-life .sl-games li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--slate);
}

.page-student-life .sl-games strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--purple-900);
}

.page-student-life .sl-games__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--purple-200);
  color: var(--purple-700);
  font-size: 1rem;
}

.page-student-life .sl-block-note {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-student-life .sl-block-note__kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.page-student-life .sl-block-note__title {
  margin: .6rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  line-height: 1.3;
  color: var(--purple-900);
}

.page-student-life .sl-block-note__text {
  margin: .5rem 0 1.1rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   06  Gallery: justified rows (every photo at its natural shape, rows share a
   height), a two-column mosaic on phones. Lightbox from main.js.
   -------------------------------------------------------------------------- */
.page-student-life .sl-gallery {
  --sl-gap: clamp(10px, 1.3vw, 18px);
  display: grid;
  gap: var(--sl-gap);
}

.page-student-life .sl-gallery__row {
  display: flex;
  gap: var(--sl-gap);
}

.page-student-life .sl-gallery__item {
  position: relative;
  flex: var(--ar, 1) 1 0%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--purple-100);
  box-shadow: var(--shadow-sm);
}

.page-student-life .sl-gallery__link {
  display: block;
  aspect-ratio: var(--ar, 1);
  cursor: zoom-in;
}

.page-student-life .sl-gallery__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}

.page-student-life .sl-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 18, 41, 0) 58%, rgba(31, 18, 41, .66) 100%);
  pointer-events: none;
  transition: opacity .5s ease;
}

.page-student-life .sl-gallery__caption {
  position: absolute;
  left: clamp(.75rem, 1.4vw, 1.1rem);
  right: clamp(.75rem, 1.4vw, 1.1rem);
  bottom: clamp(.7rem, 1.3vw, 1rem);
  z-index: 2;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(31, 18, 41, .5);
  pointer-events: none;
}

.page-student-life .sl-gallery__zoom {
  position: absolute;
  top: clamp(.6rem, 1.2vw, .9rem);
  right: clamp(.6rem, 1.2vw, .9rem);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--purple-950);
  font-size: .75rem;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s ease, transform .5s var(--ease-out);
  pointer-events: none;
}

.page-student-life .sl-gallery__link:hover img,
.page-student-life .sl-gallery__link:focus-visible img {
  transform: scale(1.05);
}

.page-student-life .sl-gallery__link:hover .sl-gallery__zoom,
.page-student-life .sl-gallery__link:focus-visible .sl-gallery__zoom {
  opacity: 1;
  transform: none;
}

.page-student-life .sl-gallery__link:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: -3px;
}

@media (hover: none) {
  .page-student-life .sl-gallery__zoom {
    opacity: 1;
    transform: none;
  }
}

/* tablets: narrower tiles, tighter captions */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .page-student-life .sl-gallery__caption {
    font-size: .625rem;
    letter-spacing: .09em;
  }
}

/* phones: a two-column mosaic; landscape photos span both columns */
@media (max-width: 639.98px) {
  .page-student-life .sl-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }
  .page-student-life .sl-gallery__row {
    display: contents;
  }
  .page-student-life .sl-gallery__item--l {
    grid-column: 1 / -1;
  }
  .page-student-life .sl-gallery__item--l .sl-gallery__link {
    aspect-ratio: 3 / 2;
  }
  .page-student-life .sl-gallery__item--p .sl-gallery__link {
    aspect-ratio: 3 / 4;
  }
  .page-student-life .sl-gallery__item--sq {
    grid-column: auto;
  }
  .page-student-life .sl-gallery__item--sq .sl-gallery__link {
    aspect-ratio: 1 / 1;
  }
  .page-student-life .sl-gallery__item--p .sl-gallery__caption,
  .page-student-life .sl-gallery__item--sq .sl-gallery__caption {
    font-size: .625rem;
    letter-spacing: .1em;
  }
  .page-student-life .sl-gallery__zoom {
    width: 30px;
    height: 30px;
  }
}

.page-student-life .sl-gallery__more {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-student-life .sl-gallery__more i {
  color: var(--whatsapp);
  font-size: 1.05rem;
}

.page-student-life .sl-gallery__more a {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: .22em;
}

.page-student-life .sl-gallery__more a:hover {
  color: var(--purple-900);
}

/* --------------------------------------------------------------------------
   07  Closing CTA
   -------------------------------------------------------------------------- */
.page-student-life .sl-close {
  overflow: hidden;
}

.page-student-life .sl-close__grid {
  display: grid;
  /* one shrinkable column below 1024px: an implicit auto track would grow to the widest nowrap button */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .page-student-life .sl-close__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.page-student-life .sl-close__crest {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.75rem;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(224, 181, 64, .55), var(--shadow-md);
}

.page-student-life .sl-close__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-student-life .sl-close h2 {
  margin: 0;
  max-width: 16ch;
}

.page-student-life .sl-close .lede {
  margin-top: 1.4rem;
}

.page-student-life .sl-close__label {
  margin-top: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: .9rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-800);
}

.page-student-life .sl-gifts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .page-student-life .sl-gifts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.page-student-life .sl-gifts li {
  display: flex;
  min-width: 0;
}

.page-student-life .sl-gift {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--purple-900);
  transition: transform .5s var(--ease-out), border-color .3s ease, box-shadow .5s var(--ease-out);
}

.page-student-life .sl-gift:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.page-student-life .sl-gift:focus-visible {
  outline: 2px solid var(--purple-700);
  outline-offset: 3px;
}

.page-student-life .sl-gift__amount {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.35rem + .7vw, 1.95rem);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

.page-student-life .sl-gift__cur {
  margin-right: .12em;
  font-family: var(--font-sans);
  font-size: .44em;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--purple-600);
}

.page-student-life .sl-gift__what {
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--slate);
}

.page-student-life .sl-close__actions {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

/* phones: the full-width buttons may wrap their label rather than overflow */
@media (max-width: 479.98px) {
  .page-student-life .sl-close__actions .btn {
    white-space: normal;
    text-align: center;
  }
}

/* give-directly card */
.page-student-life .sl-direct {
  position: relative;
  overflow: hidden;
  padding: calc(10px + clamp(1.5rem, 3vw, 2.25rem)) clamp(1.35rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* uniform-check strip along the top edge */
.page-student-life .sl-direct::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(227, 218, 164, .95) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 49, 110, .55) 50%, transparent 50%),
    linear-gradient(0deg, rgba(83, 49, 110, .55) 50%, transparent 50%);
  background-size: 32px 8px, 8px 8px, 8px 8px;
}

.page-student-life .sl-direct__kicker {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.page-student-life .sl-direct__title {
  margin: .35rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.18rem + .5vw, 1.6rem);
  line-height: 1.25;
  color: var(--purple-900);
}

.page-student-life .sl-direct__rows {
  margin-top: 1.25rem;
}

.page-student-life .sl-direct__momo {
  margin-top: 1rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-student-life .sl-direct__promise {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-top: 1.25rem;
  padding: .95rem 1.05rem;
  background: var(--gold-100);
  border: 1px solid rgba(224, 181, 64, .45);
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink);
}

.page-student-life .sl-direct__promise-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--purple-700);
  color: var(--gold-300);
  font-size: .85rem;
}

.page-student-life .sl-direct__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
  margin-top: 1.4rem;
}
