.student-services-page {
  width: min(91%, 1230px);
  padding-block: 24px clamp(44px, 6vw, 84px);
}
.student-services-page .breadcrumb { margin: 0 0 22px; }
.student-service-intro {
  display: grid;
  border-radius: 6px;
  overflow: hidden;
  background: #173950;
  color: #fff;
}
.student-service-intro.with-cover { grid-template-columns: 1.08fr 1fr; }
.student-service-lead {
  align-self: center;
  padding: clamp(27px, 4.4vw, 62px);
}
.student-service-lead h1 {
  font: 700 clamp(2.1rem, 4.35vw, 3.75rem)/1.18 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.student-service-lead p {
  max-width: 35em;
  margin: 16px 0 0;
  color: #ecf3f5;
  line-height: 1.72;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}
.service-small-class-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-top: 17px;
  padding: 7px 12px;
  min-height: 40px;
  border: 1px solid #91b4c4;
  border-radius: 4px;
  color: #fff;
  font: 650 .96rem/1.45 var(--body);
  text-decoration: none;
}
.service-small-class-link:hover, .service-small-class-link:focus-visible { background: #275168; color: #fff; }
.student-service-photo { margin: 0; }
.student-service-photo img { display: block; width: 100%; }
.student-service-intro .student-service-photo {
  position: relative;
  min-height: clamp(230px, 20vw, 315px);
}
.student-service-intro img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.student-service-intro figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  max-width: calc(100% - 24px);
  border-radius: 3px;
  padding: 3px 8px;
  background: #142e45ed;
  color: #fff;
  font-size: .88rem;
}
.student-service-layout {
  display: grid;
  grid-template-columns: minmax(185px, .31fr) minmax(0, 1fr);
  gap: clamp(26px, 4.5vw, 62px);
  align-items: start;
  margin-top: clamp(27px, 4vw, 52px);
}
.student-service-directory {
  position: sticky;
  top: 20px;
  padding: 15px 0 10px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.student-service-directory h2 { margin: 0 0 6px; font-size: 1.12rem; }
.student-service-directory ul { list-style: none; padding: 0; margin: 0; }
.student-service-directory a {
  display: block;
  padding-block: 8px;
  color: var(--blue);
  line-height: 1.5;
  text-decoration: none;
}
.student-service-directory a:hover, .student-service-directory a:focus-visible { text-decoration: underline; }
.student-service-directory, .student-service-group { scroll-margin-top: 18px; }
.student-service-group { border-top: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px) 0; }
.student-service-group:first-child { border-color: var(--blue); }
.student-service-group h2 {
  margin: 0;
  font: 700 clamp(1.4rem, 2.3vw, 2.12rem)/1.32 var(--body);
  color: var(--ink);
}
.student-service-summary { margin-top: 8px; color: #435c6a; }
.student-service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(12px, 1.7vw, 21px);
  margin-top: 18px;
}
.service-item {
  position: relative;
  min-width: 0;
  border: 1px solid #cfdee3;
  background: #fff;
  border-radius: 6px;
}
.service-item-thumb { position: relative; background: #eaf1f3; border-radius: 5px 5px 0 0; overflow: hidden; }
.service-item-thumb img { display: block; width: 100%; aspect-ratio: 1.66; object-fit: cover; }
.service-item-thumb span {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  border: 1px solid #ffffff70;
  border-radius: 4px;
  background: #15394ce8;
  color: white;
  font-size: .8rem;
}
.service-item-copy { padding: 14px 14px 17px; }
.service-item-copy h3 { margin: 0; color: #153e56; font: 700 1.11rem/1.45 var(--body); }
.service-item-copy p { margin: 6px 0 0; color: #405a6a; line-height: 1.65; }
.service-item-album { grid-column: 1 / -1; padding: clamp(12px, 2vw, 21px); }
.service-album-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.service-album-links a { text-underline-offset: 3px; }
.service-item-album .service-item-copy { padding: 0 0 14px; }
.service-item-copy .service-album-count { font-size: .9rem; color: #315a6a; }
.service-album-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: 16px 12px; }
.service-album-entry { margin: 0; min-width: 0; position: relative; border-radius: 4px; }
.service-album-entry .service-item-thumb { border: 1px solid #d5e1e6; border-radius: 4px; }
.service-album-entry .service-item-thumb img { aspect-ratio: 3 / 4; object-fit: contain; }
.service-album-entry > figcaption { padding-top: 5px; font-size: .9rem; line-height: 1.45; }
#mentoring-2-album .service-album-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
#mentoring-2-album .service-item-thumb img { aspect-ratio: 3 / 2; }
.service-item-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}
.service-item-open:hover, .service-item-open:focus-visible { outline: 2px solid #3082a3; outline-offset: 1px; }
.service-item-trigger, .service-photo-viewer, .service-viewer-nav { display: none; }
@supports selector(:popover-open) {
  .service-item-trigger { display: block; }
  .service-item-fallback { display: none; }
  .service-photo-viewer:popover-open {
    position: fixed;
    inset: 0;
    display: block;
    width: min(94vw, 920px);
    max-height: 92vh;
    max-height: 92dvh;
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    margin: auto;
    border: 0;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 0 clamp(12px, 2vw, 22px) 18px;
  }
  .service-photo-viewer::backdrop { background: #102837dd; }
  .service-viewer-head {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-block: 8px;
    background: white;
  }
  .service-viewer-head h3 { margin: 0; font: 700 clamp(1.05rem, 2vw, 1.45rem)/1.4 var(--body); }
  .service-viewer-head button, .service-viewer-nav button {
    flex: none;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #f2f7f8;
    color: #183c52;
    cursor: pointer;
    font: inherit;
  }
  .service-photo-viewer figure { margin: 0; }
  .service-photo-viewer img {
    display: block; width: 100%; height: auto; max-height: 67vh; object-fit: contain; background: #f1f5f6;
  }
  .service-photo-viewer figcaption { margin-top: 6px; color: var(--muted); font-size: .9rem; }
  .service-item-album .service-photo-viewer:popover-open { width: min(96vw, 580px); }
  .service-item-album .service-photo-viewer img { max-height: none; }
  .service-item-album .service-viewer-head { z-index: 1; }
  .service-item-album .service-viewer-nav { margin: 0 0 10px; padding: 5px 0; border: 0; }
  .service-photo-viewer p { margin: 10px 0 0; color: var(--ink); line-height: 1.65; }
  .service-photo-nav-ready .service-photo-viewer figure { touch-action: pan-y pinch-zoom; }
  .service-photo-nav-ready .service-viewer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .service-viewer-nav span { color: var(--muted); font-variant-numeric: tabular-nums; }
  .service-viewer-nav button { min-width: 76px; }
  .service-viewer-nav button:disabled { color: #75838a; background: #f7f8f8; cursor: default; }
}
.student-service-return { display: inline-block; padding: 10px 0; font-weight: 650; }
@media (max-width: 820px) {
  .student-service-layout { grid-template-columns: 1fr; gap: 18px; }
  .student-service-directory { position: static; }
  .student-service-directory ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .student-service-directory a { padding-block: 9px; }
  .student-service-group:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 600px) {
  .service-album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .student-services-page { padding-top: 17px; }
  .student-services-page .breadcrumb { margin-bottom: 15px; }
  .student-service-intro.with-cover { grid-template-columns: 1fr; }
  .student-service-lead { padding: 23px 17px; }
  .student-service-lead h1 { font-size: clamp(1.86rem, 7.5vw, 2.6rem); }
  .student-service-lead p { margin-top: 10px; }
  .student-service-intro .student-service-photo { min-height: 0; aspect-ratio: 2.2; }
}
