/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero-228 {
    /* Centers button */
    text-align: center;
    /* changes on tablet */
    padding: 0 1rem;
    /* make hero a consistent viewport height - scales from 65vh to 85vh */
    height: clamp(65vh, 85vw, 85vh);
    min-height: clamp(65vh, 85vw, 85vh);
    position: relative;
    z-index: 1;
    /* prevents overflow from the lines extending past the screen width */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  #hero-228 .cs-picture {
    /* Background Image */
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }
  #hero-228 .cs-picture:before {
    /* Black Color Overlay - thin layer covering text with gradient fade */
    content: "";
    width: 100%;
    height: auto;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 1;
    position: absolute;
    display: block;
    top: 35%;
    left: 0;
    bottom: 0;
    z-index: 1;
    /* prevents the cursor from interacting with it */
    pointer-events: none;
  }
  #hero-228 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* Makes image act like a background-image */
    object-fit: cover;
  }
  #hero-228 .cs-container {
    width: 100%;
    max-width: 80rem;
    /* we put the padding top and bottom on the container instead of #Hero so the pseudo element lines go to the top and bottom of the section */
    /* increased top padding so content sits lower and doesn't crowd the nav */
    /* changes on tablet */
    padding: clamp(10.8rem, 31.14vw, 21rem) 0 0;
    margin: 0;
    position: relative;
    /* make container a column flex so cs-flex-group can use margin-top: auto to sit at bottom */
    display: flex;
    flex-direction: column;
    /* fill the hero height to allow margin-top: auto to work */
    height: 100%;
  }
  #hero-228 .cs-container:before {
    /* Left Line */
    content: "";
    width: 1px;
    height: 100%;
    background: -moz-linear-gradient(
      top,
      rgba(250, 251, 252, 0.5) 0%,
      rgba(250, 251, 252, 0) 100%
    ); /* FF3.6-15 */
    background: -webkit-linear-gradient(
      top,
      rgba(250, 251, 252, 0.5) 0%,
      rgba(250, 251, 252, 0) 100%
    ); /* Chrome10-25,Safari5.1-6 */
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
  }
  #hero-228 .cs-flex-group {
    /* Responsive margin-bottom that scales from 2rem to 4rem across all screen sizes */
    margin-bottom: 0;
    /* removed left margin */
    margin-left: 0;
    /* push to bottom with large margin-top: auto */
    margin-top: auto;
    width: 80vw;
    /* 464px - 562px */
    max-width: clamp(29rem, 60vw, 35.125rem);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    box-sizing: border-box;
    position: absolute;
    bottom: 1.5rem;
    left: clamp(-0.25rem, -0.5vw, -0.5rem);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding: clamp(0.75rem, 1.5vw, 1.25rem) 1.5rem;
  }
  #hero-228 .cs-topper {
    /* 13px - 16px */
    font-size: clamp(0.8125rem, 1.6vw, 1rem);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.1rem;
    font-weight: 700;
    color: var(--primaryLight);
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
    margin-bottom: 1rem;
    display: block;
  }
  #hero-228 .cs-title {
    /* reduced slightly from 1.95rem, 5.12vw, 3.05rem */
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2em;
    text-align: left;
    width: 100%;
    /* 32px - 40px */
    margin: 0 auto 0.25rem 0;
    color: var(--bodyTextColorWhite);
    position: relative;
  }
  #hero-228 .cs-text {
    /* 16px - 20px */
    font-size: clamp(1rem, 1.95vw, 1.25rem);
    line-height: 1.5em;
    text-align: left;
    width: 100%;
    /* 32px - 40px */
    margin: 0 auto clamp(0.75rem, 1.5vw, 1rem) 0;
    /* 40px - 48px */
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    color: var(--bodyTextColorWhite);
  }
  #hero-228 .cs-button-solid {
    font-size: 1rem;
    /* 34.5px - 42px (25% shorter) */
    line-height: clamp(2.15625rem, 4.125vw, 2.625rem);
    width: 10.125rem;
    text-decoration: none;
    font-weight: 700;
    margin: 0 1.25rem clamp(0.5rem, 1vw, 0.75rem) 0;
    color: black;
    padding: 0;
    background-color: var(--secondary);
    display: inline-block;
    position: relative;
    z-index: 1;
  }
  #hero-228 .cs-button-solid:before {
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #hero-228 .cs-button-solid:hover:before {
    width: 100%;
    color: white;
  }
  #hero-228 .cs-button-solid:hover {
    color: white;
  }
  #hero-228 .cs-button-transparent {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    width: 11.25rem;
    /* 46px - 56px */
    height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    margin: 0;
    color: #fff;
    padding: 0;
    background-color: transparent;
    border: 1px solid var(--bodyTextColorWhite);
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  #hero-228 .cs-button-transparent:before {
    content: "";
    position: absolute;
    display: block;
    background: #000;
    opacity: 1;
    /* so it sits on top of the border */
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    z-index: -1;
    transform-origin: left;
    /* this is what creates the grow affect on hover */
    transform: scaleX(0);
    transition: transform 0.3s;
  }
  #hero-228 .cs-button-transparent:hover:before {
    transform: scaleX(1);
  }
  #hero-228 .cs-button-transparent .cs-img {
    display: block;
    margin-right: 0.75rem;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #hero-228 {
    /* 32px - 40px */
    padding: 0 clamp(2rem, 5vw, 2.5rem);
  }
  #hero-228 .cs-container {
    padding-bottom: 4rem;
    /* reduced padding to allow content to sit closer to bottom */
    padding-top: clamp(8rem, 20vw, 15rem);
  }
  #hero-228 .cs-container:after {
    /* Right Line */
    content: "";
    width: 1px;
    height: 100%;
    background: -moz-linear-gradient(
      top,
      rgba(250, 251, 252, 0) 0%,
      rgba(250, 251, 252, 0.5) 100%
    ); /* FF3.6-15 */
    background: -webkit-linear-gradient(
      top,
      rgba(250, 251, 252, 0) 0%,
      rgba(250, 251, 252, 0.5) 100%
    ); /* Chrome10-25,Safari5.1-6 */
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    right: 0;
  }
  #hero-228 .cs-flex-group {
    /* 44px - 88px */
    margin-left: clamp(2.75rem, 5.9vw, 5.5rem);
    /* bring content close to bottom - 1rem from bottom on tablet and above */
    margin-bottom: 1rem;
    /* keep flex-group pushed to bottom on all screens using margin-top: auto */
    margin-top: auto;
  }
  #hero-228 .cs-button-solid {
    margin-bottom: 0;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #hero-228 {
    height: clamp(65vh, 85vw, 85vh);
    min-height: clamp(65vh, 85vw, 85vh);
  }
}

/*-- -------------------------- -->
<---          Gallery           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #gallery-2281 {
    padding: var(--sectionPadding);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #gallery-2281:before {
    content: "";
    width: 100%;
    height: 22.5rem;
    margin-right: 3.4375rem;
    background: var(--primary);
    opacity: 0.05;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #gallery-2281 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
    position: relative;
    z-index: 1;
  }
  #gallery-2281 .cs-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  #gallery-2281 .cs-title {
    margin: 0;
  }
  #gallery-2281 .cs-button-group {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 1rem;
    /* 20px - 40px */
    column-gap: clamp(1.25rem, 3.4vw, 2.5rem);
  }
  #gallery-2281 .cs-button {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5em;
    padding: 0;
    color: var(--bodyTextColor);
    background-color: transparent;
    border: none;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
  }
  #gallery-2281 .cs-button:before {
    content: "";
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    transition: opacity 0.3s, bottom 0.3s, transform 0.3s;
  }
  #gallery-2281 .cs-button:hover {
    color: var(--primary);
    cursor: pointer;
  }
  #gallery-2281 .cs-button:hover:before {
    opacity: 1;
    bottom: -0.625rem;
  }
  #gallery-2281 .cs-button.cs-active {
    color: var(--primary);
  }
  #gallery-2281 .cs-button.cs-active:before {
    opacity: 1;
    bottom: -0.625rem;
  }
  #gallery-2281 .cs-gallery-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
  }
  #gallery-2281 .cs-gallery {
    width: 100%;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 16px - 20px */
    gap: clamp(1rem, 1.5vw, 1.25rem);
    position: relative;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  }
  #gallery-2281 .cs-gallery.cs-hidden {
    /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */
    visibility: hidden;
    /* prevents the mouse from interacting with it */
    pointer-events: none;
    /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */
    opacity: 0;
    /* subtle slide from right */
    transform: translateX(20px);
    position: absolute;
    top: 0;
    left: 0;
  }
  #gallery-2281 .cs-gallery.cs-hidden .cs-image {
    /* when gallery is hidden, add these styles to the cs-image to animate from when cs-hidden is removed from the .cs-gallery */
    opacity: 0;
  }
  #gallery-2281 .cs-image {
    /* 300px - 420px */
    min-height: clamp(18.75rem, 40vw, 26.25rem);
    display: block;
    grid-column: span 12;
    position: relative;
    /* when .cs-hidden is removed from the .cs-gallery, reset these values and animate between their hidden styles */
    opacity: 1;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
  }
  #gallery-2281 .cs-image:hover {
    transform: scale(1.05);
  }
  #gallery-2281 .cs-image:nth-of-type(1) {
    /* the transition delays change at desktop */
    /* these delays stagger the reveal of each image so they all go one after the other and not all at once */
    transition-delay: 0.1s;
  }
  #gallery-2281 .cs-image:nth-of-type(2) {
    transition-delay: 0.2s;
  }
  #gallery-2281 .cs-image:nth-of-type(3) {
    transition-delay: 0.3s;
  }
  #gallery-2281 .cs-image:nth-of-type(4) {
    transition-delay: 0.4s;
  }
  #gallery-2281 .cs-image:nth-of-type(5) {
    transition-delay: 0.5s;
  }
  #gallery-2281 .cs-image:nth-of-type(6) {
    transition-delay: 0.6s;
  }
  #gallery-2281 .cs-image:nth-of-type(7) {
    transition-delay: 0.7s;
  }
  #gallery-2281 .cs-image:nth-of-type(8) {
    transition-delay: 0.8s;
  }
  #gallery-2281 .cs-picture {
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* makes it act like a background image */
    object-fit: cover;
  }
  #gallery-2281 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* makes it act like a background image */
    object-fit: cover;
  }
  #gallery-2281 .cs-info {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: clamp(1rem, 2vw, 1.5rem);
    left: 0;
    z-index: 10;
  }
  #gallery-2281 .cs-tag {
    /* 13px - 16px */
    font-size: clamp(0.8125rem, 2vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    color: var(--bodyTextColorWhite);
    background-color: var(--primary);
    margin: 0;
  }
  #gallery-2281 .cs-project {
    /* 11px - 14px */
    font-size: clamp(0.6875rem, 1.8vw, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    color: var(--headerColor);
    background-color: #fff;
    margin: 0;
  }
}
/* Inbetween - 600px */
@media only screen and (min-width: 37.5rem) {
  #gallery-2281 .cs-image {
    grid-column: span 6;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #gallery-2281:before {
    width: 100vw;
    /* 395px - 445px */
    height: clamp(24.6875rem, 30vw, 30.625rem);
    left: auto;
    right: 50%;
  }
  #gallery-2281 .cs-content {
    text-align: left;
    align-items: flex-start;
  }
  #gallery-2281 .cs-button-group {
    border-bottom: 1px solid #e7e7e8;
  }
  #gallery-2281 .cs-button {
    padding-bottom: 1.25rem;
  }
  #gallery-2281 .cs-button:hover:before {
    transform: scale(1);
    bottom: -1px;
  }
  #gallery-2281 .cs-button.cs-active:before {
    bottom: -1px;
    transform: scale(1);
  }
  #gallery-2281 .cs-button:before {
    transform: scale(0);
    transition: transform 0.3s;
  }
  #gallery-2281 .cs-image {
    grid-column: span 4;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #gallery-2281 .cs-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
  }
}

/* Subtle zoom on hover */
#gallery-2281 .cs-image {
  cursor: pointer;
}

#gallery-2281 .cs-picture img {
  transition: transform 0.3s ease;
}

#gallery-2281 .cs-image:hover .cs-picture img {
  transform: scale(1.05);
}

/* Hide header when lightbox is active */
body.lightbox-open #cs-navigation {
  display: none;
}

/* Fullscreen Gallery Styles */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

.gallery-lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 60px 20px 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Mobile - 360px */
.gallery-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px 12px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  z-index: 10002;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
  opacity: 0.7;
  outline: none;
}

.gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border: none;
  background: none;
  padding: 12px 15px;
  user-select: none;
  transition: opacity 0.2s;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.gallery-lightbox-arrow:hover,
.gallery-lightbox-arrow:focus {
  opacity: 0.7;
  outline: none;
}

.gallery-lightbox-prev {
  left: 10px;
}

.gallery-lightbox-next {
  right: 10px;
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 20px;
}

.gallery-lightbox-filters {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10001;
  flex-wrap: wrap;
  max-width: calc(100% - 40px);
  justify-content: center;
}

.gallery-lightbox-filter-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 32px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.gallery-lightbox-filter-btn:hover,
.gallery-lightbox-filter-btn:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.gallery-lightbox-filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  .gallery-lightbox-content {
    padding: 80px 30px 80px 30px;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 160px);
  }

  .gallery-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 32px;
    padding: 10px 15px;
  }

  .gallery-lightbox-arrow {
    font-size: 28px;
    padding: 15px 20px;
    min-width: 50px;
    min-height: 50px;
  }

  .gallery-lightbox-prev {
    left: 20px;
  }

  .gallery-lightbox-next {
    right: 20px;
  }

  .gallery-lightbox-counter {
    bottom: 20px;
    font-size: 14px;
    padding: 8px 15px;
  }

  .gallery-lightbox-filters {
    top: 20px;
    gap: 10px;
  }

  .gallery-lightbox-filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  .gallery-lightbox-image {
    max-height: calc(100vh - 160px);
  }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #gallery-2281 .cs-title,
  body.dark-mode #gallery-2281 .cs-button {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #gallery-2281 .cs-button-group {
    border-color: rgba(255, 255, 255, 0.2);
  }
  body.dark-mode #gallery-2281 .cs-button.cs-active {
    color: var(--primary);
  }
}
