/*-- -------------------------- -->
<---          Gallery           -->
<--- -------------------------- -*/
/* Mobile - 360px - Contains hover animation */
@media only screen and (min-width: 0em) {
  #gallery {
    /* Centers button */
    text-align: center;
    padding: var(--sectionPadding);
    position: relative;
    /* Prevents overflow from the image going off screen */
    overflow: hidden;
  }
  #gallery .cs-container {
    width: 100%;
    max-width: 82.625em;
    margin: auto;
  }
  #gallery .cs-image-group {
    /* used rem so it doesn't scale with the font size of on parent */
    font-size: min(1.1vw, 1em);
    width: 100%;
    max-width: 82.625em;
    padding: 0;
    margin: 0 auto 3.75rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.875em;
  }
  #gallery .cs-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.875em;
  }
  #gallery .cs-picture {
    position: relative;
    display: block;
  }
  #gallery .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #gallery .cs-row-1 .cs-picture-1 {
    width: 26.25em;
    height: 35.4375em;
  }
  #gallery .cs-row-1 .cs-picture-2 {
    width: 26.25em;
    height: 39.3125em;
  }
  #gallery .cs-row-1 .cs-picture-3 {
    width: 26.25em;
    height: 32em;
  }
  #gallery .cs-row-2 .cs-picture-1 {
    width: 26.25em;
    height: 30.75em;
  }
  #gallery .cs-row-2 .cs-picture-2 {
    width: 26.25em;
    height: 32.3125em;
  }
  #gallery .cs-row-2 .cs-picture-3 {
    width: 26.25em;
    height: 39.3125em;
  }
  #gallery .cs-row-3 .cs-picture-1 {
    width: 26.25em;
    height: 39.0625em;
  }
  #gallery .cs-row-3 .cs-picture-2 {
    width: 26.25em;
    height: 28.25em;
  }
  #gallery .cs-row-3 .cs-picture-3 {
    width: 26.25em;
    height: 39.3125em;
  }
}
/*-- -------------------------- -->
<---    Final Call To Action    -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.125rem 0;
  }
  #cta:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .7;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta .container {
    text-align: center;
  }
  #cta picture {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
  }
  #cta picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #cta .title {
    font-weight: 900;
    font-size: min(9vw, 3rem);
    line-height: 1.20833333;
    color: #fff;
    position: relative;
    margin-bottom: 2.25rem;
    text-align: center;
  }
  #cta p {
    color: #fff;
    text-align: center;
    opacity: 1;
    margin: auto;
    margin-bottom: 2.25rem;
    width: 96%;
    max-width: 37.375rem;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #cta {
    padding: 10.5rem 0;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1300px) {
  #cta {
    position: relative;
    margin-top: 6.25rem;
  }
  #cta:before {
    display: none;
  }
  #cta:after {
    content: '';
    position: absolute;
    display: block;
    height: 69.25rem;
    width: 125rem;
    background: url("/assets/svgs/cta-squares.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -3;
  }
  #cta .container {
    width: 90.0625%;
    margin: auto;
  }
  #cta picture {
    width: 90.0625%;
    left: 50%;
    transform: translateX(-50%);
  }
  #cta picture:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .7;
    top: 0;
    left: 0;
    z-index: 1;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #cta:after {
    display: none;
  }
}

/*-- -------------------------- -->
<---         Projects           -->
<--- -------------------------- -*/
@media only screen and (min-width: 0em) {
  #projects {
    padding: var(--sectionPadding);
    background: #f7f7f7;
  }
  #projects .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
  }
  #projects .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
  }
  #projects .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: center;
    max-width: 43.75rem;
    margin: 0 auto 1rem;
    color: var(--headerColor);
  }
  #projects .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: center;
    width: 100%;
    max-width: 40.625rem;
    margin: 0 auto 3rem;
    color: var(--bodyTextColor);
  }
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  .project-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.1);
  }
  .project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3em;
    color: var(--headerColor);
    margin-bottom: 1rem;
  }
  .project-card p {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    color: var(--bodyTextColor);
    margin-bottom: 1.5rem;
  }
  .project-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .project-link:hover {
    color: var(--headerColor);
  }
  .projects-cta {
    text-align: center;
  }
}
@media only screen and (min-width: 48em) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}
@media only screen and (min-width: 64em) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}
@media only screen and (min-width: 0em) {
  body.dark-mode #projects {
    background: var(--dark);
  }
  body.dark-mode #projects .cs-topper {
    color: var(--primaryLight);
  }
  body.dark-mode #projects .cs-title,
  body.dark-mode #projects .cs-text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .project-card {
    background: var(--medium);
  }
  body.dark-mode .project-card h3 {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .project-card p {
    color: var(--bodyTextColorWhite);
    opacity: 0.8;
  }
  body.dark-mode .project-link {
    color: var(--primaryLight);
  }
  body.dark-mode .project-link:hover {
    color: var(--bodyTextColorWhite);
  }
}

/*-- -------------------------- -->
<---      Project Details       -->
<--- -------------------------- -*/
@media only screen and (min-width: 0em) {
  #project-details {
    padding: var(--sectionPadding);
    background: #fff;
  }
  #project-details .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
  }
  .project-overview {
    text-align: center;
    margin-bottom: 4rem;
  }
  .project-overview .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
  }
  .project-overview .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: center;
    max-width: 43.75rem;
    margin: 0 auto 1rem;
    color: var(--headerColor);
  }
  .project-overview .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: center;
    width: 100%;
    max-width: 40.625rem;
    margin: 0 auto;
    color: var(--bodyTextColor);
  }
  .project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
  }
  .stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: #f7f7f7;
    border-radius: 0.5rem;
  }
  .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
  }
  .stat-item p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--headerColor);
    margin: 0;
  }
  .project-content {
    margin-bottom: 4rem;
  }
  .challenge-section,
  .solution-section,
  .results-section {
    margin-bottom: 3rem;
  }
  .challenge-section h3,
  .solution-section h3,
  .results-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 1rem;
  }
  .challenge-section p,
  .solution-section p,
  .results-section p {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    color: var(--bodyTextColor);
    margin-bottom: 1rem;
  }
  .challenge-section ul,
  .solution-section ul,
  .results-section ul {
    margin: 0;
    padding-left: 1.5rem;
  }
  .challenge-section li,
  .solution-section li,
  .results-section li {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    color: var(--bodyTextColor);
    margin-bottom: 0.5rem;
  }
  .project-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: #f7f7f7;
    border-radius: 0.5rem;
  }
  .project-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 1rem;
  }
  .project-cta p {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    color: var(--bodyTextColor);
    margin-bottom: 2rem;
  }
}
@media only screen and (min-width: 48em) {
  .project-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media only screen and (min-width: 64em) {
  .project-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}
@media only screen and (min-width: 0em) {
  body.dark-mode #project-details {
    background: var(--dark);
  }
  body.dark-mode .project-overview .cs-topper {
    color: var(--primaryLight);
  }
  body.dark-mode .project-overview .cs-title,
  body.dark-mode .project-overview .cs-text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .stat-item {
    background: var(--medium);
  }
  body.dark-mode .stat-item h3 {
    color: var(--primaryLight);
  }
  body.dark-mode .stat-item p {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .challenge-section h3,
  body.dark-mode .solution-section h3,
  body.dark-mode .results-section h3 {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .challenge-section p,
  body.dark-mode .solution-section p,
  body.dark-mode .results-section p,
  body.dark-mode .challenge-section li,
  body.dark-mode .solution-section li,
  body.dark-mode .results-section li {
    color: var(--bodyTextColorWhite);
    opacity: 0.8;
  }
  body.dark-mode .project-cta {
    background: var(--medium);
  }
  body.dark-mode .project-cta h3 {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .project-cta p {
    color: var(--bodyTextColorWhite);
    opacity: 0.8;
  }
}

/*-- -------------------------- -->
<---     Related Projects       -->
<--- -------------------------- -*/
@media only screen and (min-width: 0em) {
  #related-projects {
    padding: var(--sectionPadding);
    background: #f7f7f7;
  }
  #related-projects .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
  }
  #related-projects .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
  }
  #related-projects .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: center;
    max-width: 43.75rem;
    margin: 0 auto 3rem;
    color: var(--headerColor);
  }
  .related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media only screen and (min-width: 48em) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (min-width: 0em) {
  body.dark-mode #related-projects {
    background: var(--medium);
  }
  body.dark-mode #related-projects .cs-topper {
    color: var(--primaryLight);
  }
  body.dark-mode #related-projects .cs-title {
    color: var(--bodyTextColorWhite);
  }
}
