@media only screen and (min-width: 0em) {
    #gallery {
        text-align: center;
        padding: var(--sectionPadding);
        position: relative;
        overflow: hidden;
    }

    #gallery .cs-container {
        width: 100%;
        max-width: 82.625em;
        margin: auto;
    }

    #gallery .cs-image-group {
        font-size: min(1.1vw, 1em);
        width: 100%;
        max-width: 82.625em;
        margin: 0 auto 3.75rem;
        padding: 0;
        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 {
        display: block;
        position: relative;
        width: 26.25em;
        height: 30.75em;
    }

    #gallery .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    #gallery .cs-row-1 .cs-picture1 {
        width: 26.25em;
        height: 30.75em;
    }

    #gallery .cs-row-1 .cs-picture2 {
        width: 26.25em;
        height: 30.75em;
    }

    #gallery .cs-row-1 .cs-picture3 {
        width: 26.25em;
        height: 30.75em;
    }

    #gallery .cs-row-2 .cs-picture1 {
        width: 26.25em;
        height: 30.75em;
    }

    #gallery .cs-row-2 .cs-picture2 {
        width: 26.25em;
        height: 32.3125em;
    }

    #gallery .cs-row-2 .cs-picture3 {
        width: 26.25em;
        height: 39.3125em;
    }

    #gallery .cs-row-3 .cs-picture1 {
        width: 26.25em;
        height: 39.0625em;
    }

    #gallery .cs-row-3 .cs-picture2 {
        width: 26.25em;
        height: 28.25em;
    }

    #gallery .cs-row-3 .cs-picture3 {
        width: 26.25em;
        height: 39.3125em;
    }
}

@media only screen and (min-width: 48em) {
    #gallery .cs-row {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 1.875em;
    }
}

@media only screen and (min-width: 0em) {
    .services {
        width: 90%;
        max-width: 82.5em;
        margin: auto;
        margin-top: 0.3125em;
        margin-bottom: 3.125em;
        padding: 3.125em 1.25em;
        background: #fff;
        box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
        border-top: 0.375em solid var(--primary);
        border-radius: 0.3125em;
        position: relative;
        z-index: 100;
    }

    .services .card {
        width: 100%;
        max-width: 22.3125em;
        margin: auto;
        margin-bottom: 3.125em;
        display: block;
    }

    .services .card:last-of-type {
        margin-bottom: 0;
    }

    .services .card picture {
        width: 5.5em;
        height: 5.5em;
        margin: auto;
        margin-bottom: 1.4375em;
        background: var(--primary);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .services .card picture img {
        width: 4.375em;
        height: 3em;
    }

    .services .card h2 {
        font-size: 1.25em;
        font-weight: 700;
        line-height: 1.35em;
        text-align: center;
        margin-bottom: 0.65em;
        color: #1a1a1a;
    }

    .services .card ul {
        display: inline-block;
        margin: 0;
        padding-left: 3em;
    }

    .services .card ul li {
        font-size: 0.875em;
        margin: 0;
        padding: 0;
        line-height: 1.3333333333em;
        text-align: left;
        width: 100%;
        opacity: 0.7;
    }

    .services .card p {
        line-height: 1.3333333333em;
        text-align: center;
        width: 100%;
        opacity: 0.7;
        margin-bottom: 0.8em;
    }

    .services .card .cs-button-solid {
        display: flex;
        align-items: center;
        width: 9rem;
        margin: 1em auto 0 auto;
        /*margin: auto;*/
        justify-content: center;
    }
}

@media only screen and (min-width: 768px) {
    .services {
        font-size: min(1.8vw, 1em);
        width: 98%;
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
    }

    .services .card {
        max-width: 20.3125em;
        margin: 0;
    }
}

@media only screen and (min-width: 1300px) {
    .services {
        padding: 3.125em 5em;
    }

    .services .card {
        max-width: 22.3125em;
    }
}

@media only screen and (min-width: 0em) {
    body.dark-mode .services {
        background: var(--medium);
    }

    body.dark-mode .services picture {
        background: var(--primaryDark);
    }

    body.dark-mode .services h2 {
        font-weight: bold;
        color: #fff;
    }
}

/*.services-list {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/

