/*-- -------------------------- -->
<---         Projects           -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #projects {
    padding-top: 3.75em;
  }
  #projects h3 {
    font-size: 2.4em;
    text-align: center;
  }
  #projects .projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: min(3vw, 1em);
  }
  #projects a {
    width: 14.4em;
    height: 19.35em;
    display: block;
    position: relative;
    margin: 0.5em;
  }
  #projects a picture {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  #projects a picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #projects a .text-group {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 1em 0;
  }
  #projects a .text-group .pics {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 0.75em;
  }
  #projects a .text-group .location {
    font-size: 0.8em;
    color: #fff;
    display: block;
    text-align: center;
    width: 100%;
    height: 7.61111111em;
    padding: 0 0.55555556em;
  }
}
/* Tablet */
@media only screen and (min-width: 48em) {
  #projects {
    padding-top: 7.5em;
  }
  #projects .projects-container {
    font-size: min(1.5vw, 1em);
    max-width: 71em;
    justify-content: center;
    margin: auto;
    row-gap: 2.8em;
  }
  #projects a {
    margin-right: 2.8em;
  }
  #projects a:last-of-type {
    margin-right: 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #projects a {
    overflow: hidden;
  }
  #projects a:hover picture {
    transform: scale(1.2);
  }
  #projects a:hover .text-group {
    top: 0%;
  }
  #projects a:hover .text-group .location {
    transform: translateY(0);
    opacity: 1;
  }
  #projects a picture {
    transition: transform .8s;
  }
  #projects a .text-group {
    top: calc(100% - 70px);
    transition: top .3s;
  }
  #projects a .text-group .location {
    opacity: 0;
    transform: translateY(0.41666667em);
    transition: opacity .6s, transform .3s;
  }
}
/* Large Desktop */
@media only screen and (min-width: 81.25em) {
  #projects .projects-container {
    flex-wrap: wrap;
    gap: 1em;
    max-width: 48em;
  }
  #projects a {
    width: 30%;
    margin: 0;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0px) {
  body.dark-mode {
    background: #1d1d1d !important;
  }
}
/*-- -------------------------- -->
<---         Portfolio          -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #portfolio {
    padding-top: 3.75em;
    padding-bottom: 12.75em;
    position: relative;
    z-index: 5;
  }
  #portfolio .container {
    width: 96%;
    max-width: 66.1em;
    padding: 0;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5em;
    font-size: min(1.3vw, 1em);
  }
  #portfolio .container .row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5em;
  }
  #portfolio .container .row:nth-of-type(1) picture:nth-of-type(1) {
    width: 21em;
    height: 28.35em;
  }
  #portfolio .container .row:nth-of-type(1) picture:nth-of-type(2) {
    width: 21em;
    height: 31.45em;
  }
  #portfolio .container .row:nth-of-type(1) picture:nth-of-type(3) {
    width: 21em;
    height: 25.6em;
  }
  #portfolio .container .row:nth-of-type(2) picture:nth-of-type(1) {
    width: 21em;
    height: 24.6em;
  }
  #portfolio .container .row:nth-of-type(2) picture:nth-of-type(2) {
    width: 21em;
    height: 25.85em;
  }
  #portfolio .container .row:nth-of-type(2) picture:nth-of-type(3) {
    width: 21em;
    height: 31.45em;
  }
  #portfolio .container .row:nth-of-type(3) picture:nth-of-type(1) {
    width: 21em;
    height: 31.25em;
  }
  #portfolio .container .row:nth-of-type(3) picture:nth-of-type(2) {
    width: 21em;
    height: 22.6em;
  }
  #portfolio .container .row:nth-of-type(3) picture:nth-of-type(3) {
    width: 21em;
    height: 31.45em;
  }
  #portfolio .container .row picture {
    position: relative;
    display: block;
  }
  #portfolio .container .row picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #portfolio {
    padding-top: 5.5em;
    padding-bottom: 16.4em;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #portfolio {
    background: #1d1d1d;
  }
}
/*-- -------------------------- -->
<---        Get It Done         -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.75em 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 {
    color: #fff;
    margin-bottom: 1.10416667em;
  }
  #cta p {
    color: #fff;
    text-align: center;
    opacity: 1;
    margin: auto;
    margin-bottom: 4.22222222em;
    width: 96%;
    max-width: 33.22222222em;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #cta {
    padding: 8.4em 0;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1300px) {
  #cta:before {
    display: none;
  }
  #cta:after {
    content: '';
    position: absolute;
    display: block;
    height: 55.4em;
    width: 100em;
    background: url("../images/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 {
    background: url("../images/cta-squares-dark.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
}
