/*-- -------------------------- -->
<---        Portfolio           -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
  @keyframes floatAnimation {
      0% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-2rem);
      }

      100% {
          transform: translateY(0);
      }
  }

  @keyframes floatAnimation2 {
      0% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-3rem);
      }

      100% {
          transform: translateY(0);
      }
  }

  #gallery-1374 {
      padding: var(--sectionPadding);
      position: relative;
      z-index: 1;
      overflow: hidden;
  }

  #gallery-1374 .cs-container {
      width: 100%;
      max-width: 80rem;
      margin: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: clamp(3rem, 6vw, 4rem);
  }

  #gallery-1374 .cs-content {
      text-align: center;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  #gallery-1374 .cs-image-group {
      width: 100%;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-template-rows: 1fr;
      gap: clamp(1rem, 4.3vw, 3.75rem);
  }

  #gallery-1374 .cs-link {
      text-decoration: none;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  #gallery-1374 .cs-item {
      list-style: none;
      width: 100%;
      height: 100%;
      margin: 0;
      grid-column: span 12;
  }

  #gallery-1374 .cs-item:hover .cs-h3, #gallery-1374 .cs-item:hover .cs-h3-2, #gallery-1374 .cs-item:hover .cs-desc {
      color: #fff;
  }

  #gallery-1374 .cs-item:hover .cs-item-text {
      background-color: var(--primary);
  }

  #gallery-1374 .cs-item:hover .cs-icon-wrapper {
      border-color: #fff;
  }

  #gallery-1374 .cs-item:hover .cs-icon {
      filter: brightness(1000%) grayscale(1);
  }

  #gallery-1374 .cs-picture {
      width: 100%;
      height: clamp(21.5rem, 30vw, 26.25rem);
      margin: auto;
      border-radius: 1.5rem;
      display: block;
      position: relative;
      overflow: hidden;
  }

  #gallery-1374 .cs-picture img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
  }

  #gallery-1374 .cs-item-text {
      padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2.8vw, 2.5rem);
      background-color: #f7f7f7;
      border-radius: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-grow: 1;
      gap: 1rem;
      transition: background-color 0.3s;
  }

  #gallery-1374 .cs-flex {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
  }

  #gallery-1374 .cs-h3 {
      font-size: clamp(1.25rem, 1.8vw, 1.5625rem);
      line-height: 1.2em;
      text-align: left;
      margin: 0;
      color: #1a1a1a;
      transition: color 0.3s;
  }

  #gallery-1374 .cs-h3-2 {
      font-size: clamp(1.25rem, 1.8vw, 1.5625rem);
      line-height: 1.2em;
      text-align: left;
      margin: 0;
      color: #1a1a1a;
      transition: color 0.3s;
  }

  #gallery-1374 .cs-desc {
      font-size: clamp(0.875rem, 1.2vw, 1rem);
      line-height: 1.5em;
      color: #1a1a1a;
      transition: color 0.3s;
  }

  #gallery-1374 .cs-icon-wrapper {
      width: 3rem;
      height: 3rem;
      border: 1px solid #bababa;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;
      transition: border-color 0.3s;
  }

  #gallery-1374 .cs-icon {
      width: auto;
      height: 0.75rem;
      transition: filter 0.3s;
  }

  #gallery-1374 .cs-bubbles {
      width: 25.9375rem;
      height: 34.125rem;
      position: absolute;
      right: -10.25rem;
      bottom: -2.875rem;
      z-index: -1;
  }

  #gallery-1374 .cs-bubbles:before {
      content: "";
      width: 21.3125rem;
      height: 21.3125rem;
      background: transparent;
      opacity: 1;
      border: 1px solid #1a1a1a;
      border-radius: 50%;
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      animation-name: floatAnimation;
      animation-duration: 5s;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
      animation-fill-mode: forwards;
  }

  #gallery-1374 .cs-bubbles:after {
      content: "";
      width: 21.3125rem;
      height: 21.3125rem;
      background: var(--primary);
      opacity: 0.1;
      border-radius: 50%;
      display: block;
      position: absolute;
      bottom: 0;
      left: 0;
      z-index: -1;
      animation-name: floatAnimation2;
      animation-duration: 14s;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
      animation-fill-mode: forwards;
  }
}
/* Tablet */
@media only screen and (min-width: 37.5rem) {
  #gallery-1374 .cs-item {
      grid-column: span 6;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #gallery-1374 .cs-title, body.dark-mode #gallery-1374 .cs-text, body.dark-mode #gallery-1374 .cs-h3 {
      color: var(--bodyTextColorWhite);
  }

  body.dark-mode #gallery-1374 .cs-h3-2 {
      color: var(--headerColor);
  }

  body.dark-mode #gallery-1374 .cs-text {
      opacity: 0.8;
  }

  body.dark-mode #gallery-1374 .cs-item-text {
    background: #1d1d1d;
  }

  body.dark-mode #gallery-1374 .cs-h3-2, body.dark-mode #gallery-1374 .cs-desc {
    color: var(--bodyTextColorWhite);
  }
}

/*-- -------------------------- -->
<---            CTA             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cta-51 {
    padding: var(--sectionPadding);
    position: relative;
  }
  #cta-51 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #cta-51 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }
  #cta-51 .cs-topper {
    color: var(--secondary);
  }
  #cta-51 .cs-title,
  #cta-51 .cs-text {
    color: var(--bodyTextColorWhite);
  }
  #cta-51 .cs-text {
    /* Override.  cs-topper cs-title and first cs-text should be removed and put into your global css sheet so it can control every instance of them on your site and is consistent. This selector is a section specific override that stays inside this stitch */
    margin-bottom: 1rem;
    opacity: .8;
  }
  #cta-51 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #cta-51 .cs-picture {
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta-51 .cs-picture:before {
    /* black color overlay */
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .8;
    top: 0;
    left: 0;
    z-index: 1;
  }
  #cta-51 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
