.gallery-landing-page {
  min-height: 100vh;
  background: var(--navy-950);
}

.gallery-hero .teams-hero-copy h1 {
  letter-spacing: 0.08em;
}

.gallery-directory.is-direct-album .division-heading,
.gallery-directory.is-direct-album .team-gallery-card-grid,
.gallery-directory.is-direct-album ~ .gallery-opportunity {
  display: none;
}

.gallery-directory.is-direct-album .team-gallery-list {
  gap: 0;
}

.gallery-directory .team-gallery-albums {
  display: grid;
  gap: 1rem;
}

.gallery-directory .team-gallery-card-grid {
  width: 100%;
}

.team-gallery-list {
  display: grid;
  gap: 1rem;
}

.team-gallery-card {
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.team-gallery-card[aria-expanded="true"] {
  border-color: var(--division-accent);
  box-shadow: 0 0 0 4px var(--division-accent), 0 1.4rem 3rem var(--division-glow);
}

.team-gallery-card[hidden] {
  display: none;
}

.team-gallery-card[aria-expanded="true"] .team-card-view {
  border-color: var(--division-accent);
  background: var(--division-accent);
}

.team-gallery-card[aria-expanded="true"] .division-team-card-content b {
  border-color: var(--white);
  color: var(--navy-950);
  background: var(--white);
}

.team-gallery {
  overflow: hidden;
  scroll-margin-top: 6.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.8rem;
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.34);
  animation: team-album-reveal 240ms ease both;
}

.team-gallery:focus {
  outline: 0;
}

.team-gallery:focus-visible {
  border-color: var(--division-accent);
  box-shadow: 0 0 0 3px var(--division-glow), 0 1.2rem 3rem rgba(0, 0, 0, 0.34);
}

.team-gallery[hidden] {
  display: none;
}

@keyframes team-album-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }

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

.team-gallery-heading {
  min-height: 5.2rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 3px solid var(--division-accent);
  color: var(--white);
  background: var(--navy-900);
}

.team-gallery-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.team-gallery-identity img,
.tbd-gallery-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  object-fit: contain;
}

.tbd-gallery-mark {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 900 0.8rem/1 var(--display);
}

.team-gallery-identity strong,
.team-gallery-identity small {
  display: block;
}

.team-gallery-identity strong {
  overflow: hidden;
  font: 800 1.1rem/1 var(--display);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-gallery-identity small {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.team-gallery-heading-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.gallery-team-return {
  min-height: 2.75rem;
  padding: 0.58rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 124, 143, 0.72);
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.gallery-team-return:hover,
.gallery-team-return:focus-visible {
  border-color: var(--white);
  background: var(--red-dark);
}

.team-gallery-heading-actions button {
  min-height: 2.75rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.team-gallery-heading-actions button:hover,
.team-gallery-heading-actions button:focus-visible {
  border-color: var(--division-accent);
  background: var(--division-soft);
}

.team-gallery-heading-actions .gallery-album-share {
  min-width: 2.8125rem;
  min-height: 2.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.gallery-album-share .material-symbols-rounded {
  font-size: 1rem;
}

.team-gallery-count {
  color: #ff9aac;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.division-column-boys .team-gallery-count {
  color: #98cdfb;
}

.team-gallery-content {
  padding: clamp(0.65rem, 1.4vw, 1rem);
  background: var(--navy-950);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 0.85rem);
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  background: var(--navy-900);
  box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.2);
}

.gallery-open {
  width: 100%;
  min-height: 5rem;
  padding: 0;
  display: block;
  border: 0;
  cursor: zoom-in;
  background: var(--navy-950);
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  transition: filter 180ms ease;
}

.gallery-open:hover img,
.gallery-open:focus-visible img {
  filter: brightness(1.08);
}

.gallery-open:focus-visible {
  outline: 3px solid var(--division-accent);
  outline-offset: -3px;
}

.gallery-item figcaption {
  min-height: 3.6rem;
  padding: 0.65rem 0.7rem;
  display: grid;
  gap: 0.2rem;
  align-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-900);
}

.gallery-item figcaption strong {
  color: var(--white);
  font: 800 0.82rem/1 var(--display);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.gallery-item figcaption span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.55rem;
}

.gallery-skeleton {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  background: var(--navy-900);
}

.gallery-skeleton-photo,
.gallery-skeleton-line {
  display: block;
  background: linear-gradient(100deg, #071f40 20%, #0b315f 42%, #071f40 64%);
  background-size: 220% 100%;
  animation: gallery-skeleton-shimmer 1.1s linear infinite;
}

.gallery-skeleton-photo {
  aspect-ratio: 3 / 2;
}

.gallery-skeleton-line {
  width: 58%;
  height: 0.65rem;
  margin: 0.72rem 0.55rem;
  border-radius: 999px;
}

@keyframes gallery-skeleton-shimmer {
  to {
    background-position-x: -220%;
  }
}

.gallery-empty {
  min-height: 7rem;
  margin: 0;
  padding: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  text-align: center;
  background: var(--navy-900);
}

.gallery-empty[hidden] {
  display: none;
}

.gallery-lightbox {
  width: min(calc(100% - 1rem), 70rem);
  max-width: none;
  max-height: calc(100svh - 1rem);
  padding: 0;
  border: 0;
  border-radius: 0.8rem;
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 1rem 4rem rgba(2, 15, 34, 0.5);
}

.gallery-lightbox::backdrop {
  background: rgba(2, 15, 34, 0.86);
  backdrop-filter: blur(0.35rem);
}

.gallery-lightbox:focus {
  outline: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-card {
  position: relative;
  display: grid;
}

.gallery-lightbox-site-header,
.gallery-lightbox-header,
.gallery-lightbox-details,
.gallery-lightbox-footer,
.gallery-lightbox-nav {
  display: none;
}

.gallery-lightbox-stage,
.gallery-lightbox-media {
  position: relative;
}

.gallery-lightbox-media > img {
  width: 100%;
  max-height: calc(100svh - 6rem);
  display: block;
  object-fit: contain;
  background: #010813;
}

.gallery-lightbox-mobile-close {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  right: 0.55rem;
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.35rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(2, 15, 34, 0.78);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-lightbox-caption {
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-lightbox-caption strong {
  font: 800 1.05rem/1 var(--display);
  text-transform: uppercase;
}

.gallery-lightbox-caption span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
}

@media (min-width: 1024px) {
  .gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #010b1a;
    box-shadow: none;
  }

  .gallery-lightbox::backdrop {
    background: rgba(1, 8, 19, 0.96);
    backdrop-filter: blur(0.55rem);
  }

  .gallery-lightbox-card {
    height: 100dvh;
    grid-template-rows: 5.7rem 4.5rem minmax(0, 1fr) 9.5rem;
    background: linear-gradient(145deg, #010b1a 0%, var(--navy-950) 55%, #031a35 100%);
  }

  .gallery-lightbox-site-header {
    position: relative;
    z-index: 1;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--navy-950);
  }

  .gallery-lightbox-site-header .header-inner {
    min-height: 5.7rem;
  }

  .gallery-lightbox-site-header .brand img {
    background: transparent;
  }

  .gallery-lightbox-header {
    min-width: 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 2px solid #0d77c7;
    background: rgba(2, 15, 34, 0.96);
  }

  .gallery-lightbox-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .gallery-lightbox-team img {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    padding: 0.18rem;
    border-radius: 0.25rem;
    object-fit: contain;
    background: var(--white);
  }

  .gallery-lightbox-team strong,
  .gallery-lightbox-team small {
    display: block;
  }

  .gallery-lightbox-team strong {
    overflow: hidden;
    font: 800 1.15rem/1 var(--display);
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .gallery-lightbox-team small {
    margin-top: 0.28rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
  }

  .gallery-lightbox-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .gallery-lightbox-header-actions > strong {
    color: #ff536d;
    font: 800 0.8rem/1 var(--display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .gallery-lightbox-divider {
    width: 1px;
    height: 2.25rem;
    display: block;
    background: rgba(255, 255, 255, 0.28);
  }

  .gallery-lightbox-header button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid transparent;
    color: var(--white);
    cursor: pointer;
    background: transparent;
  }

  .gallery-lightbox-share {
    display: grid;
    place-items: center;
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 0.25rem;
  }

  .gallery-lightbox-share:hover,
  .gallery-lightbox-share:focus-visible,
  .gallery-lightbox-close:hover,
  .gallery-lightbox-close:focus-visible {
    border-color: #35a9ff !important;
    background: rgba(53, 169, 255, 0.1);
  }

  .gallery-lightbox-close {
    position: static;
    z-index: auto;
    top: auto;
    right: auto;
    padding: 0 0.2rem 0 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 0;
    background: transparent;
    font: 800 0.72rem/1 var(--display);
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .gallery-lightbox-body {
    min-height: 0;
    padding: clamp(1.35rem, 2.6vh, 2rem) clamp(1.5rem, 3vw, 3rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(17rem, 21vw, 20rem);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .gallery-lightbox-stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    align-items: center;
    gap: 0.85rem;
  }

  .gallery-lightbox-media {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #010813;
  }

  .gallery-lightbox-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  .gallery-lightbox-mobile-close,
  .gallery-lightbox-caption {
    display: none;
  }

  .gallery-lightbox-nav {
    width: 3.5rem;
    min-height: 7.5rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.25rem;
    color: var(--white);
    cursor: pointer;
    background: rgba(2, 15, 34, 0.7);
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
  }

  .gallery-lightbox-nav:hover,
  .gallery-lightbox-nav:focus-visible {
    border-color: #35a9ff;
    background: rgba(7, 52, 103, 0.82);
    transform: translateY(-1px);
  }

  .gallery-lightbox-nav .material-symbols-rounded {
    font-size: 2rem;
  }

  .gallery-lightbox-prev .material-symbols-rounded {
    transform: rotate(180deg);
  }

  .gallery-lightbox-details {
    min-width: 0;
    padding: clamp(1rem, 3vh, 2rem) 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-lightbox-kicker {
    color: #59b8ff;
    font: 800 0.7rem/1 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .gallery-lightbox-details > strong {
    margin-top: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(53, 169, 255, 0.45);
    font: 800 clamp(1.35rem, 2.2vw, 1.8rem)/0.95 var(--display);
    letter-spacing: 0.015em;
    text-transform: uppercase;
  }

  .gallery-lightbox-details > span[data-gallery-lightbox-detail] {
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .gallery-lightbox-details > p {
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .gallery-lightbox-position {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .gallery-lightbox-sharing {
    margin-top: auto;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .gallery-lightbox-sharing > strong {
    display: block;
    color: #59b8ff;
    font: 800 0.78rem/1 var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .gallery-lightbox-sharing > div {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-lightbox-sharing button,
  .gallery-lightbox-sharing a {
    min-width: 0;
    min-height: 3.5rem;
    padding: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    cursor: pointer;
    background: rgba(2, 15, 34, 0.56);
    font: 700 0.6rem/1 var(--display);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .gallery-lightbox-sharing button + a {
    border-left: 0;
  }

  .gallery-lightbox-sharing button:hover,
  .gallery-lightbox-sharing button:focus-visible,
  .gallery-lightbox-sharing a:hover,
  .gallery-lightbox-sharing a:focus-visible {
    border-color: #35a9ff;
    background: rgba(53, 169, 255, 0.1);
  }

  .gallery-lightbox-sharing .material-symbols-rounded {
    font-size: 1rem;
  }

  .gallery-lightbox-footer {
    min-width: 0;
    padding: 1rem clamp(1.5rem, 6vw, 6rem) 0.8rem;
    display: grid;
    gap: 0.65rem;
    border-top: 1px solid rgba(53, 169, 255, 0.18);
  }

  .gallery-lightbox-filmstrip {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(53, 169, 255, 0.6) transparent;
  }

  .gallery-lightbox-filmstrip button {
    width: clamp(6.5rem, 10vw, 9rem);
    aspect-ratio: 3 / 2;
    padding: 0;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    background: #010813;
  }

  .gallery-lightbox-filmstrip button:hover,
  .gallery-lightbox-filmstrip button:focus-visible {
    border-color: #35a9ff;
  }

  .gallery-lightbox-filmstrip button.is-current {
    border-color: var(--red);
    box-shadow: 0 0 0 1px rgba(227, 19, 49, 0.38);
  }

  .gallery-lightbox-filmstrip img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .gallery-lightbox-filmstrip button.is-current img {
    object-fit: contain;
    background: #010813;
  }

  .gallery-lightbox-helper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.56);
    font: 700 0.6rem/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

}

.gallery-directory .team-gallery-card {
  width: auto;
}

@media (max-width: 599px) {
  .gallery-directory .team-gallery-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gallery-directory .team-gallery-card {
    grid-column: span 2;
  }

  .gallery-directory .team-gallery-card.is-gallery-last-single {
    grid-column: 3 / span 2;
  }

  .gallery-album-share {
    width: 2.75rem;
    padding-inline: 0 !important;
  }

  .gallery-share-label {
    display: none;
  }
}

@media (min-width: 1024px) {
  .gallery-directory .team-gallery-card {
    grid-column: span 2;
  }

  .gallery-directory .team-gallery-card.is-gallery-last-single {
    grid-column: 3 / span 2;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .gallery-directory .team-gallery-card,
  .gallery-directory .team-gallery-card.is-gallery-last-single {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-skeleton-photo,
  .gallery-skeleton-line,
  .team-gallery {
    animation: none;
  }

  .team-gallery-card {
    transition: none;
  }
}
