/* Mobile */
@media only screen and (min-width: 0em) {
  #projects {
    padding: 3.75em 1em;
    background-image: url('../images/projects-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  #projects .container {
    width: 92%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 3.75em;
    margin-top: 3em;
  }
  #projects .top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2em;
    margin-top: 1.5em;
  }
  #projects .top-row .text-col h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.625em;
    color: var(--primary);
  }
  #projects .top-row .text-col p {
    font-size: 1em;
    line-height: 1.5em;
    color: black;
    text-align: left;
  }
  #projects .project-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.75em;
    margin-top: -2.5em;
  }
  #projects .project-row .project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }
  #projects .project-row .project .text-col {
    text-align: left;
  }
  #projects .project-row .project .text-col h3 {
    font-size: 1.375em;
    font-weight: 700;
    color: var(--primaryShade);
    margin-bottom: 0.625em;
  }
  #projects .project-row .project .text-col h3 a {
    color: inherit;
    text-decoration: none;
  }
  #projects .project-row .project .text-col h3 a:hover,
  #projects .project-row .project .text-col h3 a:focus,
  #projects .project-row .project .text-col h3 a:active {
    text-decoration: none;
  }
  #projects .project-row .project .text-col p {
    font-size: 1em;
    line-height: 1.5em;
    color: black;
    max-width: 32.5em;
    margin: 0 auto;
    text-align: left;
  }
  #projects .project-row .project .img-col a {
    display: block;
    text-decoration: none;
  }
  #projects .project-row .project .img-col a:hover,
  #projects .project-row .project .img-col a:focus,
  #projects .project-row .project .img-col a:active {
    text-decoration: none;
  }
  #projects .project-row .project .img-col a img {
    width: 100%;
    max-width: 35em;
    height: auto;
    display: block;
    border: solid 1px black;
  }
  #projects .cta-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0.375em 0 1.25em;
  }
  #projects .cta-center .button-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375em;
    padding: 0.75em 1.5em;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 0.625em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0.375em 1em rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    background-clip: padding-box;
  }
  #projects .cta-center .button-solid:hover {
    background-color: var(--primaryShade);
    box-shadow: 0 0.625em 1.375em rgba(0, 0, 0, 0.12);
  }
  #projects .cta-center .button-solid:active {
    background-color: var(--primaryShade);
    box-shadow: 0 0.25em 0.75em rgba(0, 0, 0, 0.08);
  }
  #projects .cta-center .button-solid:focus-visible {
    outline: 0.125em solid rgba(1, 87, 155, 0.35);
    outline-offset: 0.125em;
  }
}
/* Desktop */
@media only screen and (min-width: 64em) {
  #projects {
    padding: 6.25em 0;
  }
  #projects .container {
    max-width: 82.5em;
    padding: 0 1.25em;
    margin-top: 7.5em;
  }
  #projects .project-row .project {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3.75em;
    text-align: left;
  }
  #projects .project-row .project:nth-child(even) {
    flex-direction: row-reverse;
  }
  #projects .project-row .project .text-col {
    flex: 1;
  }
  #projects .project-row .project .text-col h3 {
    font-size: 2.5em;
    text-align: left;
  }
  #projects .project-row .project .text-col h3 a {
    color: inherit;
    text-decoration: none;
  }
  #projects .project-row .project .text-col h3 a:hover,
  #projects .project-row .project .text-col h3 a:focus,
  #projects .project-row .project .text-col h3 a:active {
    text-decoration: none;
  }
  #projects .project-row .project .text-col p {
    font-size: 1.25em;
    line-height: 2em;
    text-align: left;
  }
  #projects .project-row .project .img-col {
    flex: 1;
  }
  #projects .project-row .project .img-col a {
    display: block;
    text-decoration: none;
  }
  #projects .project-row .project .img-col a:hover,
  #projects .project-row .project .img-col a:focus,
  #projects .project-row .project .img-col a:active {
    text-decoration: none;
  }
  #projects .project-row .project .img-col a img {
    max-width: 100%;
    transition: transform 0.3s ease;
  }
  #projects .project-row .project .img-col a img:hover {
    transform: scale(1.05);
  }
  #projects .cta-center {
    padding: 0 0 2em;
  }
  #projects .cta-center .button-solid {
    font-size: 1.25em;
    padding: 1em 2em;
  }
}
/*-- -------------------------- -->
<---    Final Call To Action    -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.125em 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, 3em);
    line-height: 1.20833333;
    color: #fff;
    position: relative;
    margin-bottom: 0.75em;
    text-align: center;
  }
  #cta p {
    color: #fff;
    text-align: center;
    opacity: 1;
    margin: auto;
    margin-bottom: 2em;
    width: 96%;
    max-width: 33.22222222em;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #cta {
    padding: 10.5em 0;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1300px) {
  #cta {
    position: relative;
    margin-top: 6.25em;
  }
  #cta:before {
    display: none;
  }
  #cta:after {
    content: '';
    position: absolute;
    display: block;
    height: 69.25em;
    width: 125em;
    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;
  }
}
/*Portfolio Section*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #portfolio {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #portfolio .portfolio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 1.25em;
  }
  #portfolio .portfolio-wrapper .portfolio-content {
    margin-bottom: 1.25em;
  }
  #portfolio .portfolio-wrapper .portfolio-content .portfolio-index {
    font-size: 1em;
    color: var(--primaryShade);
  }
  #portfolio .portfolio-wrapper .portfolio-content .portfolio-title {
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary);
  }
  #portfolio .portfolio-wrapper .portfolio-content .portfolio-description {
    font-size: 1em;
    margin: 0.625em 0;
  }
  #portfolio .portfolio-wrapper .portfolio-content .portfolio-link {
    font-size: 1em;
    color: var(--secondary);
    text-decoration: none;
    padding: 0.625em 1.25em;
    background-color: var(--primaryDark);
    border-radius: 0.5em;
    display: inline-block;
  }
  #portfolio .portfolio-wrapper .portfolio-image img {
    width: 100%;
    max-height: 18.75em;
    object-fit: contain;
  }
}
/* Tablet */
@media only screen and (min-width: 48em) {
  #portfolio .portfolio-wrapper {
    flex-direction: row;
  }
  #portfolio .portfolio-wrapper .portfolio-content {
    width: 50%;
    text-align: left;
  }
  #portfolio .portfolio-wrapper .portfolio-image {
    width: 50%;
  }
  #portfolio .portfolio-wrapper .portfolio-image img {
    max-height: 25em;
  }
}
/* Desktop */
@media only screen and (min-width: 1300px) {
  #portfolio .portfolio-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5em;
    position: relative;
    margin-top: 0;
  }
  #portfolio .portfolio-wrapper .portfolio-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  #portfolio .portfolio-wrapper .portfolio-section:first-child {
    align-items: flex-start;
    text-align: left;
  }
  #portfolio .portfolio-wrapper .portfolio-section:last-child {
    align-items: flex-end;
    text-align: right;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section {
    margin-top: -13.75em;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-index {
    font-size: 1.125em;
    margin-bottom: 0.5em;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-title {
    font-size: 5.75em;
    line-height: 1.2;
    z-index: 3;
    color: #000;
    opacity: 0.9;
    display: inline-block;
    /* Restrict overlay to text size */
    position: relative;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section a {
    margin-top: 1em;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-link {
    font-size: 1.125em;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    padding: 0.5em 1em;
    transition: background 0.3s ease;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-link:hover {
    background: var(--primary);
    color: var(--secondary);
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-description {
    font-size: 1.25em;
    width: 53%;
  }
  #portfolio .portfolio-wrapper .portfolio-image-logo {
    position: absolute;
    top: 43%;
    left: 58%;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Behind other elements */
  }
  #portfolio .portfolio-wrapper .portfolio-image-logo img {
    width: 62.5em;
    /* Make the logo large */
    height: auto;
  }
  #portfolio .portfolio-wrapper .portfolio-description-section {
    margin-top: 10em;
  }
  #portfolio .portfolio-wrapper .portfolio-description-section .preview-image {
    max-width: 50%;
    height: auto;
    margin-bottom: 1.25em;
    margin-top: 5em;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1500px) {
  #portfolio .portfolio-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5em;
    position: relative;
    margin-top: 0;
  }
  #portfolio .portfolio-wrapper .portfolio-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  #portfolio .portfolio-wrapper .portfolio-section:first-child {
    align-items: flex-start;
    text-align: left;
  }
  #portfolio .portfolio-wrapper .portfolio-section:last-child {
    align-items: flex-end;
    text-align: right;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-index {
    font-size: 1.125em;
    margin-bottom: 0.5em;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-title {
    font-size: 6.75em;
    line-height: 1.2;
    z-index: 3;
    color: #000;
    opacity: 0.9;
    display: inline-block;
    /* Restrict overlay to text size */
    position: relative;
    padding-right: 0.25em;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section a {
    margin-top: 1em;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-link {
    font-size: 1.125em;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    padding: 0.5em 1em;
    transition: background 0.3s ease;
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-link:hover {
    background: var(--primary);
    color: var(--secondary);
  }
  #portfolio .portfolio-wrapper .portfolio-title-section .portfolio-description {
    margin-top: 1em;
    font-size: 1.25em;
  }
  #portfolio .portfolio-wrapper .portfolio-image-logo {
    position: absolute;
    top: 30%;
    left: 75%;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Behind other elements */
  }
  #portfolio .portfolio-wrapper .portfolio-image-logo img {
    width: 78.125em;
    /* Make the logo large */
    height: auto;
  }
  #portfolio .portfolio-wrapper .portfolio-description-section {
    margin-top: 5em;
  }
  #portfolio .portfolio-wrapper .portfolio-description-section .preview-image {
    max-width: 40%;
    height: auto;
    margin-top: 3.4375em;
  }
}
/*-- -------------------------- -->
<---   Interior Page Header     -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #project-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
    min-height: 30vh;
    padding-top: 6.25em;
  }
  #project-hero:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  }
  #project-hero video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
    object-position: 45% 48%;
    object-fit: cover;
  }
  #project-hero h1 {
    color: #fff;
    font-size: 1.33333333em;
    text-align: center;
    margin: 0 auto;
    position: relative;
    width: 96%;
    max-width: 10.9375em;
    margin-top: 1em;
    margin-bottom: 0.46875em;
  }
  #project-hero h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    z-index: -1;
    border-radius: 0.25em;
  }
  #project-hero p {
    color: #fff;
    text-align: center;
    max-width: 22.22222222em;
    margin: auto;
    margin-bottom: 1.66666667em;
    display: block;
    width: 96%;
  }
}
/* Tablet */
@media only screen and (min-width: 48em) {
  #project-hero {
    font-size: 16px;
  }
  #project-hero h1 {
    font-size: 4em;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #project-hero {
    min-height: 18.75em;
    height: auto;
    padding-top: 11.25em;
    padding-block-end: 6.25em;
    background-attachment: fixed;
    font-size: inherit;
  }
  #project-hero h1 {
    color: #fff;
    font-size: 3.33333333em;
    text-align: center;
    margin: 0 auto;
    position: relative;
    width: 96%;
    max-width: 12.5em;
    margin-top: 0.375em;
    margin-bottom: 0.625em;
  }
}
