/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {

    #RPsbs-458,
    #RPsbsr-458 {
        padding: var(--sectionPadding);
        padding-top: 28.875rem;
    }

    #RPsbs-458 .cs-container,
    #RPsbsr-458 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        align-items: center;
    }

    #RPsbs-458 .cs-content,
    #RPsbsr-458 .cs-content {
        text-align: left;
        width: auto;
        max-width: 40.625rem;
        margin: 0 1rem;
        margin-top: -18.75rem;
        /* 40px - 60px top and bottom */
        /* 20px - 60px left and right */
        padding: clamp(2.5rem, 7vw, 3.75rem) clamp(1.25rem, 5.5vw, 3.75rem);
        background-color: #fafbfc;
        /* prevents padding from affecting width and height */
        box-sizing: border-box;
        border-radius: 0.75rem;
        /* clips the pseudo element */
        overflow: hidden;
        box-shadow: 0px 24px 54px rgba(87, 107, 147, 0.12);
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
        position: relative;
        z-index: 10;
    }

    #RPsbs-458 .cs-content:before,
    #RPsbsr-458 .cs-content:before {
        /* green border top */
        content: "";
        width: 100%;
        height: 0.5rem;
        background: var(--primary);
        opacity: 1;
        position: absolute;
        display: block;
        top: 0;
        left: 0;
    }

    #RPsbs-458 .cs-text,
    #RPsbsr-458 .cs-text {
        margin-bottom: 1rem;
    }

    #RPsbs-458 .cs-text:last-of-type,
    #RPsbsr-458 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }

    #RPsbs-458 .cs-button-solid,
    #RPsbsr-458 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }

    #RPsbs-458 .cs-button-solid:before,
    #RPsbsr-458 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #D95620;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }

    #RPsbs-458 .cs-button-solid:hover:before,
    #RPsbsr-458 .cs-button-solid:hover:before {
        width: 100%;
    }

    #RPsbs-458 .cs-picture,
    #RPsbsr-458 .cs-picture {
        width: 100%;
        height: auto;
        height: 27.6875rem;
        /* clips the img corners */
        overflow: hidden;
        border-radius: 1.5rem;
        display: block;
        /* sends it to the top */
        order: -1;
        position: relative;
    }

    #RPsbs-458 .cs-picture img,
    #RPsbsr-458 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    #RPsbsr-458 .cs-picture img {
        top: -100px;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #RPsbs-458 {
        padding-top: 25.25rem;
    }

    #RPsbs-458 .cs-container,
    #RPsbsr-458 .cs-container {
        padding: 3.75rem 0;
        position: relative;
        align-items: flex-end;
        justify-content: center;
    }

    #RPsbs-458 .cs-content,
    #RPsbsr-458 .cs-content {
        width: 65%;
        margin: 0;
    }

    #RPsbs-458 .cs-picture,
    #RPsbsr-458 .cs-picture {
        /* 465px - 617px */
        width: clamp(29.0625rem, 53vw, 38.5625rem);
        position: absolute;
        left: 0;
        height: 100%;
    }

    #RPsbsr-458 .cs-picture img {
        left: 90px;
    }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #RPsbs-458 {
        padding-top: 11.625rem;
    }

    #RPsbs-458 .cs-content,
    #RPsbsr-458 .cs-content {
        /* 90px - 108px */
        margin-right: clamp(5rem, 8.5vw, 6.75rem);
    }

    #RPsbsr-458 .cs-picture img {
        left: 0;
    }
}

/*-- -------------------------- -->
<---   Side By Side Reverse     -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #RPsbsr-458 {
        background-color: #f7f7f7;
        padding-top: 2.875rem;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #RPsbsr-458 .cs-container {
        align-items: flex-start;
    }

    #RPsbsr-458 .cs-picture {
        left: auto;
        right: 0;
    }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #RPsbsr-458 .cs-content {
        margin-right: 0;
        /* 90px - 108px */
        margin-left: clamp(5rem, 8.5vw, 6.75rem);
    }
}

/*-- -------------------------- -->
<---          Gallery           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #gallery-404 {
        padding: var(--sectionPadding);
        overflow: hidden;
        position: relative;
    }

    #gallery-404 .cs-container {
        width: 100%;
        /* changes to 1280px at tablet */
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
    }

    #gallery-404 .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;
    }

    #gallery-404 .cs-content>div {
        display: block;
        margin: -50px auto 0;
    }

    #gallery-404 .cs-title {
        max-width: 20ch;
        margin: 0 auto;
    }

    #gallery-404 .cs-button-group {
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 0.5rem;
        column-gap: 2rem;
    }

    #gallery-404 .cs-button {
        font-size: 1rem;
        line-height: 1.5em;
        color: var(--bodyTextColor);
        background-color: transparent;
        border: none;
        transition: color 0.3s;
    }

    #gallery-404 .cs-button:hover {
        color: var(--primary);
        cursor: pointer;
    }

    #gallery-404 .cs-button.cs-active {
        color: var(--primary);
    }

    #gallery-404 .cs-gallery-wrapper {
        width: 100%;
        position: relative;
        z-index: 1;
    }

    #gallery-404 .cs-gallery {
        width: 100%;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        /* 16px - 20px */
        gap: clamp(1rem, 1.5vw, 1.25rem);
        transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s;
        /* makes the transform scaling origin the top left corner, dictates the direction by which the scale transforms animate towards */
        transform-origin: left top;
    }

    #gallery-404 .cs-gallery.cs-hidden {
        /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */
        visibility: hidden;
        /* prevents the mouse from interacting with it */
        pointer-events: none;
        /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */
        opacity: 0;
        /* this top and left value help control the animation, by setting it to position absolute and left 0, the gallery won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-container (left: 0). Same for the top:0 value, the gallery won't go past that position when it animates */
        top: 0;
        left: 0;
        position: absolute;
        /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */
        transform: scaleY(0) scaleX(0);
    }

    #gallery-404 .cs-gallery.cs-hidden .cs-image {
        /* when gallery is hidden, add these styles to the cs-image to animate from when cs-hidden is removed from the .cs-gallery */
        transform: translateY(2.1875rem);
        opacity: 0;
    }

    #gallery-404 .cs-image {
        border-radius: 1.25rem;
        width: 47%;
        aspect-ratio: 1;
        /* clips the image corners */
        overflow: hidden;
        display: block;
        position: relative;
        /* when .cs-hidden is removed from the .cs-gallery, reset these values and animate between their hidden styles */
        transform: translateY(0rem);
        opacity: 1;
        transition: opacity 0.6s, transform 0.6s;
    }

    #gallery-404 .cs-image:nth-of-type(1) {
        /* changes transition delays at desktop */
        /* these delays stagger the reveal of each image so they all go one after the other and not all at once */
        transition-delay: 0.15s;
    }

    #gallery-404 .cs-image:nth-of-type(2) {
        transition-delay: 0.3s;
    }

    #gallery-404 .cs-image:nth-of-type(3) {
        transition-delay: 0.45s;
    }

    #gallery-404 .cs-image:nth-of-type(4) {
        transition-delay: 0.6s;
    }

    #gallery-404 .cs-image:nth-of-type(5) {
        transition-delay: 0.75s;
    }

    #gallery-404 .cs-image:nth-of-type(6) {
        transition-delay: 0.9s;
    }

    #gallery-404 .cs-image img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* makes it act like a background image */
        object-fit: cover;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #gallery-404 .cs-container {
        max-width: 80rem;
    }

    #gallery-404 .cs-content {
        text-align: left;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    #gallery-404 .cs-title {
        margin: 0;
    }

    #gallery-404 .cs-image {
        width: 31.8%;
        aspect-ratio: 1;
    }
}

/* Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
    #gallery-404 .cs-flex {
        max-width: 34.375rem;
    }

    #gallery-404 .cs-gallery {
        align-items: stretch;
        justify-content: center;
    }

    #gallery-404 .cs-image {
        width: 39.375rem;
        max-width: 100%;
        height: 25rem;
    }

    #gallery-404 .cs-image:nth-of-type(2),
    #gallery-404 .cs-image:nth-of-type(3),
    #gallery-404 .cs-image:nth-of-type(4),
    #gallery-404 .cs-image:nth-of-type(5) {
        width: 19.0625rem;
    }

    #gallery-404 .cs-image:nth-of-type(1) {
        /* these delays stagger the reveal of each image so they all go one after the other and not all at once */
        transition-delay: 0.15s;
    }

    #gallery-404 .cs-image:nth-of-type(2) {
        transition-delay: 0.3s;
    }

    #gallery-404 .cs-image:nth-of-type(3) {
        transition-delay: 0.45s;
    }

    #gallery-404 .cs-image:nth-of-type(4) {
        transition-delay: 0.15s;
    }

    #gallery-404 .cs-image:nth-of-type(5) {
        transition-delay: 0.3s;
    }

    #gallery-404 .cs-image:nth-of-type(6) {
        transition-delay: 0.45s;
    }
}

/*-- -------------------------- -->
<---          Footer            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #cs-footer-266 {
        padding: var(--sectionPadding);
        /* Navigation Links */
        /* Contact Links */
    }

    #cs-footer-266 .cs-container {
        width: 100%;
        /* reset on tablet */
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        /* 68px - 100px */
        column-gap: clamp(4.25rem, calc(10%), 6.25rem);
    }

    #cs-footer-266 .cs-logo-group {
        /* takes up all the space, lets the other ul's wrap below it */
        width: 100%;
        position: relative;
    }

    #cs-footer-266 .cs-logo {
        /* 210px - 240px */
        width: clamp(13.125rem, 8vw, 15rem);
        height: auto;
        display: block;
        /* 28px - 44px */
        margin-bottom: clamp(1.75rem, 4.17vw, 2.75rem);
    }

    #cs-footer-266 .cs-logo-img {
        width: 100%;
        height: auto;
    }

    #cs-footer-266 .cs-logo-img.dark {
        display: none;
    }

    #cs-footer-266 .cs-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 2.5vw, 1rem);
        line-height: 1.5em;
        margin: 0;
        margin-bottom: 2rem;
        /* changes to 305px at desktop */
        max-width: 33.75rem;
        color: var(--bodyTextColor);
    }

    #cs-footer-266 .cs-nav {
        padding: 0;
        margin: 0;
    }

    #cs-footer-266 .cs-nav-li {
        list-style: none;
        line-height: 1.5em;
        margin-bottom: 0.5rem;
    }

    #cs-footer-266 .cs-nav-li:last-of-type {
        margin-bottom: 0;
    }

    #cs-footer-266 .cs-header {
        font-size: 1rem;
        line-height: 1.5em;
        font-weight: 700;
        margin-bottom: 0.875rem;
        color: var(--bodyTextColor);
        position: relative;
        display: block;
    }

    #cs-footer-266 .cs-nav-link {
        font-size: 1rem;
        text-decoration: none;
        line-height: 1.5em;
        color: var(--bodyTextColor);
        position: relative;
    }

    #cs-footer-266 .cs-nav-link:before {
        /* underline */
        content: "";
        width: 0%;
        height: 0.125rem;
        background: var(--bodyTextColor);
        opacity: 1;
        position: absolute;
        display: block;
        bottom: -0.125rem;
        left: 0;
        transition: width 0.3s;
    }

    #cs-footer-266 .cs-nav-link:hover:before {
        width: 100%;
    }

    #cs-footer-266 .cs-contact {
        margin: 0;
        padding: 0;
        width: auto;
        display: flex;
        flex-direction: column;
        align-self: stretch;
    }

    #cs-footer-266 .cs-contact-li {
        list-style: none;
    }

    #cs-footer-266 .cs-contact-link {
        font-size: 1rem;
        text-decoration: none;
        line-height: 1.5em;
        text-align: left;
        color: var(--bodyTextColor);
        display: inline-block;
    }

    #cs-footer-266 .cs-contact-link:hover {
        text-decoration: underline;
    }

    #cs-footer-266 .cs-address {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    #cs-footer-266 .cs-social-group {
        /* pushes away from the other flex items */
        margin-top: auto;
        margin-left: auto;
    }

    #cs-footer-266 .cs-social {
        display: inline-flex;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    #cs-footer-266 .cs-social-link {
        width: 1.5rem;
        height: 1.5rem;
        background-color: #4e4b66;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
        transition:
            transform 0.3s,
            background-color 0.3s;
    }

    #cs-footer-266 .cs-social-link:hover {
        background-color: var(--primary);
        transform: translateY(-0.1875rem);
    }

    #cs-footer-266 .cs-social-img {
        height: 0.8125rem;
        width: auto;
        display: block;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #cs-footer-266 .cs-container {
        max-width: 80rem;
        row-gap: 0;
    }

    #cs-footer-266 .cs-logo-group {
        width: auto;
        /* pushes everything to the right of it as far as possible in a flexbox */
        margin-right: auto;
    }

    #cs-footer-266 .cs-text {
        width: 80%;
        max-width: 19.0625rem;
        margin: 0;
    }

    #cs-footer-266 .cs-nav,
    #cs-footer-266 .cs-contact {
        /* 8px - 12px */
        margin-top: clamp(0.5rem, 1.2vw, 0.75rem);
    }
}