/*-- -------------------------- -->
<---         Portfolio          -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #portfolio {
    padding-top: 3.125em;
    padding-bottom: 35%;
    position: relative;
    z-index: 5;
    text-align: center;
  }
  #portfolio h1 {
    font-size: 3.625em;
    margin-bottom: 1em;
    color: var(--primary);
  }
  #portfolio .container {
    width: 96%;
    max-width: 82.625em;
    padding: 0;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5em, 1fr));
    gap: 1.875em;
    justify-items: center;
    align-items: stretch;
  }
  #portfolio .container .client-item {
    width: 17.5em;
    /* Set a fixed width for all items */
    height: 21.875em;
    /* Set a fixed height for all items */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25em;
    box-shadow: 0 0.375em 0.625em rgba(23, 108, 168, 0.4);
    border-radius: 0.5em;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
  }
  #portfolio .container .client-item a {
    text-decoration: none;
    color: black;
  }
  #portfolio .container .client-item:hover {
    box-shadow: 0 0.375em 1em rgba(23, 108, 168, 0.8);
  }
  #portfolio .container .client-item img {
    width: 12.75em;
    height: 9.25em;
    margin-bottom: 0.5em;
    object-fit: contain;
    padding: 0.5em;
  }
  #portfolio .container .client-item h2 {
    font-size: 1.75em;
    color: black;
    margin-bottom: 0.5em;
  }
  #portfolio .container .client-item h3 {
    font-size: 1.25em;
    color: black;
    opacity: .7;
    margin: 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #portfolio {
    padding: 9.375em 0;
  }
  #portfolio .container {
    gap: 2.625em;
  }
}
/*-- -------------------------- -->
<---    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;
  }
}
/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #sidebyside {
    padding: 50px 0;
  }
  #sidebyside .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  #sidebyside .content {
    order: 2;
    margin: auto;
    margin-top: 4.6875em;
    max-width: 38.1875em;
  }
  #sidebyside .content h1 {
    font-size: 2.625em;
    text-align: left;
    color: var(--primary);
    margin-bottom: 0.33333333em;
  }
  #sidebyside .content h3 {
    font-size: 2em;
    margin-bottom: 0.875em;
    text-align: left;
    color: black;
  }
  #sidebyside .content p {
    margin-bottom: 1.11111111em;
  }
  #sidebyside .content ul {
    padding-left: 1.25em;
    margin-bottom: 1.25em;
  }
  #sidebyside .content ul li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  #sidebyside .content ul li img {
    margin-right: 0.625em;
    margin-top: 0.22222222em;
  }
  #sidebyside .content .button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  #sidebyside .content .button-container .button-solid {
    margin-top: 1.78571429em;
    align-self: center;
    margin-left: 1em;
  }
  #sidebyside .image-box {
    display: block;
    position: relative;
    margin: auto;
    width: 50.6875em;
    height: 41.3125em;
    font-size: min(1.4vw, 1em);
  }
  #sidebyside .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
}
/* Inbetween */
@media only screen and (min-width: 666px) {
  #sidebyside {
    padding: 6.25em 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 1300px) {
  #sidebyside {
    padding: 3.125em 0;
  }
  #sidebyside .container {
    max-width: 86.9375em;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  #sidebyside .content {
    margin: 0;
    width: 60%;
    margin-left: 6.25em;
  }
  #sidebyside .content h2 {
    font-size: 3em;
    margin-bottom: 0.875em;
  }
  #sidebyside .content h1 {
    font-size: 3.625em;
    text-align: left;
    color: var(--primary);
    margin-bottom: 0.33333333em;
  }
  #sidebyside .content h3 {
    font-size: 2.625em;
    margin-bottom: 0.875em;
    text-align: left;
    color: black;
  }
  #sidebyside .image-box {
    margin: 0;
    width: 22.5625em;
    height: 22.5625em;
    font-size: min(1.4vw, 1em);
  }
}
/*-- -------------------------- -->
<---   Side By Side Reverse     -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #sidebyside-reverse {
    padding: 50px 0;
  }
  #sidebyside-reverse .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  #sidebyside-reverse .content {
    order: 2;
    margin: auto;
    margin-top: 4.6875em;
    max-width: 38.1875em;
  }
  #sidebyside-reverse .content h1 {
    font-size: 2.625em;
    text-align: left;
    color: var(--primary);
    margin-bottom: 0.33333333em;
  }
  #sidebyside-reverse .content h3 {
    font-size: 2em;
    margin-bottom: 0.875em;
    text-align: left;
    color: black;
  }
  #sidebyside-reverse .content p {
    margin-bottom: 1.11111111em;
  }
  #sidebyside-reverse .content ul {
    padding-left: 1.25em;
    margin-bottom: 1.25em;
  }
  #sidebyside-reverse .content ul li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  #sidebyside-reverse .content ul li img {
    margin-right: 0.625em;
    margin-top: 0.22222222em;
  }
  #sidebyside-reverse .content .button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  #sidebyside-reverse .content .button-container .button-solid {
    margin-top: 1.78571429em;
    align-self: center;
  }
  #sidebyside-reverse .image-box {
    display: block;
    position: relative;
    margin: auto;
    width: 50.6875em;
    height: 41.3125em;
    font-size: min(1.4vw, 1em);
  }
  #sidebyside-reverse .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
}
/* Inbetween */
@media only screen and (min-width: 666px) {
  #sidebyside-reverse {
    padding: 6.25em 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 1300px) {
  #sidebyside-reverse {
    padding: 3.125em 0;
  }
  #sidebyside-reverse .container {
    max-width: 86.9375em;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  #sidebyside-reverse .content {
    margin: 0;
    width: 50%;
    order: 1;
  }
  #sidebyside-reverse .content h2 {
    font-size: 3em;
    margin-bottom: 0.875em;
  }
  #sidebyside-reverse .content h1 {
    font-size: 3.625em;
    text-align: left;
    color: var(--primary);
    margin-bottom: 0.33333333em;
  }
  #sidebyside-reverse .content h3 {
    font-size: 2.625em;
    margin-bottom: 0.875em;
    text-align: left;
    color: black;
  }
  #sidebyside-reverse .image-box {
    margin: 0;
    margin-left: 6.25em;
    order: 2;
    width: 22.5625em;
    height: 22.5625em;
    font-size: min(1.4vw, 1em);
  }
}
