
/* ==========================================
   SAHS GALLERY PAGE
========================================== */

.sahs-gallery {
  --sg-green: #296b5b;
  --sg-dark: #142f29;
  --sg-muted: #68776f;
  --sg-yellow: #ffda62;
  --sg-bg: #fffdf8;
  --sg-light: #f3f8f5;
  --sg-border: #e2eae5;

  background: var(--sg-bg);
  color: var(--sg-dark);
  font-family: "Nunito Sans", sans-serif;
}

.sahs-gallery *,
.sahs-gallery *::before,
.sahs-gallery *::after {
  box-sizing: border-box;
}

.sahs-gallery-container {
  max-width: 1160px;
}

/* Hero */

.sahs-gallery-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 35px 0 48px;
  background: var(--sg-green);
  color: #fff;
}

.sahs-gallery-hero .container {
  position: relative;
  z-index: 2;
}

.sahs-hero-decoration {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.sahs-hero-circle-left {
  bottom: -83px;
  left: 2%;
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, .075);
}

.sahs-hero-circle-right {
  top: -75px;
  right: -25px;
  width: 165px;
  height: 165px;
  background: rgba(255, 255, 255, .10);
}

.sahs-hero-circle-right::after {
  position: absolute;
  top: 28px;
  left: 42px;
  width: 65px;
  height: 65px;
  content: "";
  opacity: .28;
  background-image: radial-gradient(#d8e9df 2px, transparent 2px);
  background-size: 15px 15px;
}

.sahs-hero-star {
  position: absolute;
  color: var(--sg-yellow);
  font-size: 16px;
}

.sahs-star-one {
  top: 20px;
  left: 8%;
}

.sahs-star-two {
  right: 15%;
  bottom: 18px;
  color: #ff927c;
}

.sahs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 17px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.sahs-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.sahs-breadcrumb a:hover {
  color: var(--sg-yellow);
}

.sahs-breadcrumb > i {
  font-size: 10px;
}

.sahs-breadcrumb strong {
  color: var(--sg-yellow);
  font-weight: 800;
}

.sahs-gallery-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
}

.sahs-title-underline {
  width: 92px;
  height: 8px;
  margin: 8px 0 13px;
  border-top: 3px solid var(--sg-yellow);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.sahs-gallery-hero p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  line-height: 1.75;
}

/* Main gallery tabs */

.sahs-gallery-main-tabs {
  border-bottom: 1px solid #e3ece7;
  background: var(--sg-light);
}

.sahs-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 0;
}

.sahs-main-tab,
.sahs-filter-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--sg-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.sahs-main-tab {
  padding: 8px 14px;
}

.sahs-main-tab.active {
  background: var(--sg-green);
  color: #fff;
}

.sahs-main-tab:hover:not(.active) {
  border-color: #d9e6df;
  background: #edf5f0;
}

.sahs-main-tab:focus-visible,
.sahs-filter-btn:focus-visible,
.sahs-photo-card:focus-visible,
.sahs-video-play:focus-visible {
  outline: 3px solid var(--sg-yellow);
  outline-offset: 3px;
}

/* Panels */

.sahs-gallery-panel {
  padding: 43px 0 18px;
}

.sahs-gallery-panel[hidden] {
  display: none !important;
}

/* Photo category filters */

.sahs-photo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 21px;
}

.sahs-filter-btn {
  padding: 8px 13px;
  border-color: #e2eae5;
  font-size: 12px;
}

.sahs-filter-btn.active {
  border-color: var(--sg-yellow);
  background: var(--sg-yellow);
  color: #17342d;
}

.sahs-filter-btn:hover:not(.active) {
  background: #edf5f0;
}

.sahs-photo-item[hidden] {
  display: none !important;
}

/* Photo cards */

.sahs-photo-card {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 19px;
  background: #dce8df;
  box-shadow: 0 3px 8px rgba(15, 42, 31, .06);
}

.sahs-photo-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.sahs-photo-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(8, 20, 15, 0) 28%,
    rgba(8, 20, 15, .28) 48%,
    rgba(8, 20, 15, .88) 100%
  );
  pointer-events: none;
}

.sahs-photo-card:hover > img {
  transform: scale(1.06);
}

.sahs-photo-overlay {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 15px;
  left: 15px;
  color: #fff;
}

.sahs-photo-category {
  display: block;
  margin-bottom: 4px;
  color: var(--sg-yellow);
  font-size: 11px;
  font-weight: 900;
}

.sahs-photo-overlay h3 {
  margin: 0 0 5px;
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.sahs-photo-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, .96);
  font-size: 11px;
  line-height: 1.5;
}

.sahs-gallery-empty {
  padding: 25px 0;
  color: var(--sg-muted);
  text-align: center;
}

/* Video hero */

.sahs-video-container {
  padding-top: 36px;
  padding-bottom: 40px;
}

/* Video heading */

.sahs-video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.sahs-video-eyebrow {
  color: var(--sg-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sahs-video-heading h3 {
  margin: 6px 0;
  color: var(--sg-dark);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
}

.sahs-video-heading p {
  margin: 0;
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.sahs-channel-btn,
.sahs-channel-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: #edf5f1;
  color: var(--sg-green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sahs-channel-btn {
  padding: 12px 16px;
}

.sahs-channel-btn:hover,
.sahs-channel-cta-btn:hover {
  transform: translateY(-2px);
  background: var(--sg-green);
  color: #fff;
}

.sahs-channel-btn .bi-youtube {
  font-size: 19px;
  color: #d72828;
}

.sahs-channel-btn:hover .bi-youtube {
  color: #fff;
}

/* Video cards */

.sahs-video-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--sg-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(15, 42, 31, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sahs-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 42, 31, .09);
}

/* Video thumbnail and inline player */

.sahs-video-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #142f29;
}

.sahs-video-media > img,
.sahs-video-media > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.sahs-video-media > img {
  transition: transform .45s ease;
}

.sahs-video-card:hover .sahs-video-media > img {
  transform: scale(1.035);
}

.sahs-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--sg-yellow);
  color: #18362e;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .22);
  font-size: 31px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease;
}

.sahs-video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffe58a;
}

.sahs-video-label {
  position: absolute;
  bottom: 12px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(16, 42, 33, .75);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.sahs-video-body {
  padding: 19px 18px 20px;
}

.sahs-video-category {
  color: var(--sg-green);
  font-size: 11px;
  font-weight: 900;
}

.sahs-video-body h3 {
  margin: 7px 0 8px;
  color: var(--sg-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.sahs-video-body p {
  margin: 0 0 16px;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.65;
}

/* Single YouTube button below each video */

.sahs-watch-youtube-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #e6eae6;
  border-radius: 10px;
  background: #fff;
  color: var(--sg-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.sahs-watch-youtube-btn .bi-youtube {
  color: #d72828;
  font-size: 16px;
}

.sahs-watch-youtube-btn:hover {
  border-color: var(--sg-green);
  background: var(--sg-green);
  color: #fff;
}

.sahs-watch-youtube-btn:hover .bi-youtube {
  color: #fff;
}

/* Channel call-to-action */

.sahs-channel-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 23px;
  border: 1px solid #dfeae3;
  border-radius: 18px;
  background: #f3f8f4;
}

.sahs-channel-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #d72828;
  font-size: 25px;
}

.sahs-channel-copy {
  flex: 1;
}

.sahs-channel-copy h3 {
  margin: 0 0 5px;
  color: var(--sg-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.sahs-channel-copy p {
  margin: 0;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.6;
}

.sahs-channel-cta-btn {
  flex-shrink: 0;
  padding: 12px 15px;
  background: var(--sg-yellow);
  color: #18362e;
}

/* Photo preview (opens when a photo card is clicked) */

.sahs-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 84px 28px;
  background: rgba(9, 17, 13, .92);
  color: #fff;
  font-family: "Nunito Sans", sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .28s ease,
    visibility 0s linear .28s;
}

.sahs-photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.sahs-photo-lightbox *,
.sahs-photo-lightbox *::before,
.sahs-photo-lightbox *::after {
  box-sizing: border-box;
}

.sahs-photo-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  transform: scale(.94) translateY(12px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.sahs-photo-lightbox.is-open .sahs-photo-lightbox-figure {
  transform: none;
}

.sahs-photo-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 180px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.sahs-photo-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 260px);
  max-height: calc(100dvh - 260px);
  object-fit: contain;
  transition: opacity .25s ease;
}

.sahs-photo-lightbox-stage.is-loading .sahs-photo-lightbox-image {
  opacity: 0;
}

.sahs-photo-lightbox-stage.is-loading::after {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #ffda62;
  border-radius: 50%;
  content: "";
  animation: sahsPhotoLightboxSpin .8s linear infinite;
}

.sahs-photo-lightbox-stage.is-missing .sahs-photo-lightbox-image {
  display: none;
}

.sahs-photo-lightbox-missing {
  display: none;
  margin: 0;
  padding: 56px 32px;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  text-align: center;
}

.sahs-photo-lightbox-stage.is-missing .sahs-photo-lightbox-missing {
  display: block;
}

.sahs-photo-lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  padding-top: 18px;
  text-align: center;
}

.sahs-photo-lightbox-category {
  margin-bottom: 6px;
  color: #ffda62;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

.sahs-photo-lightbox-title {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.25;
}

.sahs-photo-lightbox-description {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.6;
}

.sahs-photo-lightbox-counter {
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

/* Previous / Next / Close buttons */

.sahs-photo-lightbox-btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.sahs-photo-lightbox-btn[hidden] {
  display: none;
}

.sahs-photo-lightbox-btn:hover,
.sahs-photo-lightbox-btn:focus-visible {
  background: #ffda62;
  color: #1b302a;
}

.sahs-photo-lightbox-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.sahs-photo-lightbox-close {
  top: 18px;
  right: 20px;
}

.sahs-photo-lightbox-close:hover {
  transform: rotate(90deg);
}

.sahs-photo-lightbox-prev,
.sahs-photo-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.sahs-photo-lightbox-prev {
  left: 20px;
}

.sahs-photo-lightbox-next {
  right: 20px;
}

.sahs-photo-lightbox-prev:hover,
.sahs-photo-lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@keyframes sahsPhotoLightboxSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Tablets and phones: the arrows move below the photo so they never cover it */
@media (max-width: 767.98px) {
  .sahs-photo-lightbox {
    padding: 64px 14px 92px;
  }

  .sahs-photo-lightbox-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .sahs-photo-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .sahs-photo-lightbox-prev,
  .sahs-photo-lightbox-next {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .sahs-photo-lightbox-prev {
    left: calc(50% - 68px);
  }

  .sahs-photo-lightbox-next {
    right: calc(50% - 68px);
  }

  .sahs-photo-lightbox-prev:hover,
  .sahs-photo-lightbox-next:hover {
    transform: scale(1.1);
  }

  .sahs-photo-lightbox-stage {
    min-width: 0;
    width: 100%;
  }

  .sahs-photo-lightbox-image {
    max-height: calc(100vh - 330px);
    max-height: calc(100dvh - 330px);
  }

  .sahs-photo-lightbox-description {
    font-size: 13px;
  }
}

/* Tablet */

@media (max-width: 767.98px) {
  .sahs-gallery-hero {
    padding: 30px 0 35px;
  }

  .sahs-gallery-panel {
    padding-top: 30px;
  }

  .sahs-video-container {
    padding-top: 28px;
  }

  .sahs-photo-card {
    min-height: 235px;
  }

  .sahs-video-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sahs-channel-cta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sahs-channel-copy {
    min-width: 60%;
  }

  .sahs-channel-cta-btn {
    margin-left: 64px;
  }
}

/* Mobile */

@media (max-width: 575.98px) {
  .sahs-gallery-container {
    padding-right: 17px;
    padding-left: 17px;
  }

  .sahs-gallery-hero h1 {
    font-size: 32px;
  }

  .sahs-gallery-hero p {
    font-size: 13px;
  }

  .sahs-breadcrumb {
    gap: 7px;
    font-size: 11px;
  }

  .sahs-tab-list {
    gap: 5px;
  }

  .sahs-main-tab {
    padding: 8px 10px;
    font-size: 11px;
  }

  .sahs-photo-filters {
    gap: 6px;
    margin-bottom: 17px;
  }

  .sahs-filter-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .sahs-photo-card {
    min-height: 230px;
  }

  .sahs-photo-overlay {
    right: 13px;
    bottom: 13px;
    left: 13px;
  }

  .sahs-photo-overlay h3 {
    font-size: 17px;
  }

  .sahs-video-body {
    padding: 16px;
  }

  .sahs-video-body h3 {
    font-size: 18px;
  }

  .sahs-channel-btn {
    width: 100%;
  }

  .sahs-channel-cta {
    gap: 12px;
    padding: 17px;
  }

  .sahs-channel-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .sahs-channel-copy {
    flex-basis: calc(100% - 58px);
  }

  .sahs-channel-copy h3 {
    font-size: 18px;
  }

  .sahs-channel-cta-btn {
    margin-left: 0;
  }
}


/* =========================================================
   FOOTER SOCIAL ICONS 
========================================================= */

.sahs-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sahs-footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sahs-footer-text, #D7E5DE);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.sahs-footer-social-link:hover,
.sahs-footer-social-link:focus-visible {
  border-color: var(--sahs-footer-yellow, #FFD85C);
  background: var(--sahs-footer-yellow, #FFD85C);
  color: #172C27;
  transform: translateY(-3px);
}

.sahs-footer-social-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
