.services-section {
    position: relative;
    z-index: 2;
    top: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    overflow-x: hidden;
    background-color: white;
}

.services-full {
    display: flex;
    position: relative;
    width: max-content;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y;
    will-change: transform;
    overflow: hidden;
    flex-wrap: nowrap;
}

.service-item {
    width: 80vw;
    flex-shrink: 0;
    height: auto;
    padding: 2rem;
    margin-right: 10em;
    border-radius: 8px;
    background-color: rgba(251, 241, 228, 0.5);
    transition: 1s box-shadow, 1s color;
    overflow-wrap: break-word;
    hyphens: none;
    color: #ddd;
}

.service-item.focused {
    color: #555;
    box-shadow: 1em 1em rgba(251, 241, 228, 0.9);
}

.service-main-head {
    width: 100%;
    font-family: 'Playfair Display';
    font-weight: 200;
    font-size: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    padding-top: 3rem;
}

.service-head {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 2rem;
    text-align: center;
}

.service-contact {
    display: block;
    width: fit-content;
    padding: 0.5rem;
    margin-top: 2rem;
    font-weight: 600;
    text-align: center;
    background-color: #555;
    color: rgba(251, 241, 228, 1);
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .services-section {
        display: flex;
        position: relative;
        padding: 0;
        z-index: 2;
        top: 100vh;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        width: 100vw;
        height: auto;
        overflow-x: hidden;
    }

    .services-full {
        height: calc(auto + 2em);
        padding: 10%;
        justify-content: center;
        transition: transform 0.5s ease-in-out;
        flex-wrap: nowrap;
    }

    .service-item {
        width: 80vw;
        flex-shrink: 0;
        height: auto;
        padding: 2rem;
        margin-right: 10em;
        border-radius: 8px;
        background-color: rgba(251, 241, 228, 0.5);
        transition: box-shadow 2s ease-in-out, color 2s;
        hyphens: none;
        color: #ddd;
        font-size: 0.9rem;
    }

    #backButton,
    #nextButton {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
        cursor: pointer;
        font-size: 1.5rem;
        color: #999;
        /* background-color: #ddd; */
        background-color: rgba(251, 241, 228, 1);
        border: none;
        border-radius: 50%;
        padding: 0.5rem;
    }

    #backButton {
        left: 20px;
    }

    #nextButton {
        right: 20px;
    }

    #backButton:disabled {
        display: none;
    }

    #nextButton:disabled {
        display: none;
    }
}

@media (min-width: 786px) {
    .services-full {
        width: 100%;
        padding: 2rem;
        justify-content: space-between;
        transform: none !important;
    }

    .service-item {
        width: 30%;
        margin-right: 0;
        flex-shrink: 1;
        color: #555;
        box-shadow: 1em 1em rgba(251, 241, 228, 0.9);
    }

    #backButton,
    #nextButton {
        display: none;
    }
}