/* Mobile - 360px- Contains Hover State */
@media only screen and (min-width: 0rem) {
    #services-279 {
        padding: var(--sectionPadding);
        position: relative;
        z-index: 1;
        background-color: var(--bgcolor);
    }
    #services-279 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(3rem, 6vw, 4rem);
    }
    #services-279 .cs-content {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #services-279 .cs-topper {
        color: var(--primary);
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }
    #services-279 .cs-title,
    #services-279 .cs-text {
        color: var(--headerColor);
    }
    #services-279 .cs-title {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 1.5rem;
    }
    #services-279 .cs-text {
        max-width: 50rem;
        line-height: 1.6;
        color: var(--bodytextColor);
    }
    #services-279 .cs-card-group {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        column-gap: 1.25rem;
        row-gap: 3.75rem;
    }
    #services-279 .cs-item {
        list-style: none;
        margin: 0;
        width: 80%;
        max-width: 21.75rem;
    }
    #services-279 .cs-item:hover .cs-picture:before {
        height: 100%;
    }
    #services-279 .cs-item:hover .cs-picture img {
        transform: scale(1.1);
    }
    #services-279 .cs-picture {
        aspect-ratio: 348/348;
        position: relative;
        display: block;
        overflow: hidden;
    }
    #services-279 .cs-picture:before {
        content: "";
        position: absolute;
        display: block;
        height: 0%;
        width: 100%;
        background: var(--primary);
        opacity: 0.8;
        top: 0;
        left: 0;
        z-index: 1;
        transition: height 0.3s;
    }
    #services-279 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.7s;
    }
    #services-279 .cs-box {
        text-align: center;
        width: 90%;
        margin: 0 auto;
        margin-top: calc(clamp(2rem, 7vw, 3rem)*-1);
        padding-top: 1.5rem;
        background: var(--bgcolor);
        position: relative;
        z-index: 10;
    }
    #services-279 .cs-h3 {
        font-size: clamp(1.25rem, 2vw, 1.5625rem);
        text-align: center;
        line-height: 1.2em;
        font-weight: bold;
        color: var(--headerColor);
        margin: 0 0 1.75rem;
    }
    #services-279 .cs-button-transparent {
        font-size: 1rem;
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: var(--primary);
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: transparent;
        border: 1px solid var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        box-sizing: border-box;
        transition: color 0.3s, border-color 0.3s, background-color 0.3s;
    }
    #services-279 .cs-button-transparent:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #services-279 .cs-button-transparent:hover {
        color: #fff;
        border-color: #000;
        background-color: #000;
    }
    #services-279 .cs-button-transparent:hover:before {
        width: 100%;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #services-279:before {
        height: clamp(28.125rem, 45vw, 36.25rem);
    }
    #services-279 .cs-card-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    #services-279 .cs-item {
        margin: 0;
        max-width: 100%;
        flex: 0 0 calc(33.333% - 1rem);
    }
}
/* Desktop - 1024px - Adjust for 5 items */
@media only screen and (min-width: 64rem) {
    #services-279 .cs-item {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

