/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #talent-gallery {
      padding: var(--sectionPadding);
      background-color: #FDFAF8;
      /* clips the svg wave from overflowing */
      overflow: hidden;
      position: relative;
      z-index: 1;
    }
    #talent-gallery .cs-container {
      width: 100%;
      /* changes to 1840px at tablet */
      max-width: 44rem;
      margin: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* 48px - 64px */
      gap: clamp(3rem, 6vw, 4rem);
    }
    #talent-gallery .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;
    }
    #talent-gallery .cs-title {
      max-width: 40ch;
    }
    #talent-gallery .cs-card-group {
      width: 100%;
      /* changes to 100% at tablet */
      max-width: 31.25rem;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      /* 16px - 20px */
      gap: clamp(1rem, 1.5vw, 1.25rem);
    }
    #talent-gallery .cs-item {
      text-align: left;
      list-style: none;
      width: 100%;
      height: 29.5rem;
      margin: 0;
      /* prevents padding and border from affecting height and width */
      box-sizing: border-box;
      padding: 0;
      /* clips the image corners */
      overflow: hidden;
      grid-column: span 12;
      grid-row: span 1;
      gap: 0.5rem;
      position: relative;
    }
    #talent-gallery .cs-item:hover .cs-h3,
    #talent-gallery .cs-item:focus-within .cs-h3 {
      transform: translateY(0);
    }
    #talent-gallery .cs-item:hover .cs-fake-link,
    #talent-gallery .cs-item:focus-within .cs-fake-link {
      height: auto;
      opacity: 1;
      transform: translateY(0);
    }
    #talent-gallery .cs-item:hover .cs-background:before,
    #talent-gallery .cs-item:focus-within .cs-background:before {
      height: 180%;
    }
    #talent-gallery .cs-item:hover .cs-background img,
    #talent-gallery .cs-item:focus-within .cs-background img {
      opacity: 0.5;
      transform: scale(1.1);
    }
    #talent-gallery .cs-link {
      text-decoration: none;
      height: 100%;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: flex-start;
    }
    #talent-gallery .cs-wrapper {
      width: 100%;
      overflow: hidden;
      color: var(--primary);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }
    #talent-gallery .cs-header {
      /* 16px - 20px */
      font-size: clamp(1rem, 2vw, 1.25rem);
      font-weight: 700;
      line-height: 1.2em;
      text-align: inherit;
      margin: 0;
      color: var(--primary);
    }
    #talent-gallery .cs-h3 {
      /* 20px - 25px */
      font-size: clamp(1.25rem, 2vw, 2.4375rem);
      font-weight: 700;
      line-height: 1.2em;
      text-align: inherit;
      text-decoration: none;
      width: 100%;
      margin: 0;
      padding-right: 3.75rem;
      color: var(--bodyTextColorWhite);
      display: flex;
      justify-content: space-between;
      position: relative;
    }
    #talent-gallery .cs-icon {
      /* 40px - 64px */
      width: clamp(2.5rem, 4vw, 4rem);
      height: auto;
      display: block;
      position: absolute;
      bottom: 0rem;
      right: 0rem;
      transition: transform 0.3s;
    }
    #talent-gallery .cs-background {
      width: 100%;
      height: 100%;
      object-fit: cover;
      background-color: #000;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
    }
    #talent-gallery .cs-background:before {
      /* gradient overlay */
      content: "";
      width: 100%;
      height: 100%;
      background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 14.59%, rgba(0, 0, 0, 0) 43.18%);
      opacity: 1;
      display: block;
      position: absolute;
      bottom: 0;
      left: 0;
      z-index: 10;
      transition: height 0.3s;
    }
    #talent-gallery .cs-background img {
      width: 100%;
      height: 100%;
      /* Makes img tag act as a background image */
      object-fit: cover;
      position: absolute;
      z-index: -1;
      transition: transform 0.6s, opacity 0.3s;
    }
  }
  /* Tablet - 768px */
  @media only screen and (min-width: 48rem) {
    #talent-gallery .cs-container {
      max-width: 115rem;
    }
    #talent-gallery .cs-card-group {
      max-width: 100%;
      /* 60px - 100px, same amount as the top value to offset it */
      margin-bottom: clamp(3.75rem, 6vw, 6.25rem);
      grid-template-rows: 1fr;
    }
    #talent-gallery .cs-item {
      /* 280px - 440px */
      min-height: clamp(17.5rem, 35vw, 27.5rem);
      grid-column: span 4;
    }
    #talent-gallery .cs-item.cs-shift {
      position: relative;
      /* 60px - 100px */
      top: clamp(3.75rem, 6vw, 6.25rem);
    }
  }
  /* Tablet - 768px */
  @media only screen and (min-width: 48rem) {
    #talent-gallery .cs-item:hover .cs-wrapper,
    #talent-gallery .cs-item:focus-within .cs-wrapper {
      opacity: 1;
      transform: translateY(0);
    }
    #talent-gallery .cs-item:hover .cs-background:before,
    #talent-gallery .cs-item:focus-within .cs-background:before {
      height: 180%;
    }
    #talent-gallery .cs-item:hover .cs-background img,
    #talent-gallery .cs-item:focus-within .cs-background img {
      opacity: 0.5;
      transform: scale(1.1);
    }
    #talent-gallery .cs-wrapper {
      opacity: 0;
      transform: translateY(5rem);
      transition: transform 0.3s, opacity 0.3s;
    }
  }
  /* Dark Mode */
  @media only screen and (min-width: 0rem) {
    body.dark-mode #talent-gallery {
      background-color: var(--dark);
    }
    body.dark-mode #talent-gallery .cs-title,
    body.dark-mode #talent-gallery .cs-text {
      color: var(--bodyTextColorWhite);
    }
    body.dark-mode #talent-gallery .cs-text {
      opacity: 0.8;
    }
  }
                                  