.services {
    display: flex;
}

.services > * {
    padding: var(--tile-padding);
}

.services__aside {
    display: flex;
    flex-direction: column;
    min-width: min-content;
    height: 100%;
    gap: 1.25rem;
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.services__list > h2 {
    width: 100%;
    word-break: keep-all;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    opacity: 50%;
    transition-duration: var(--anim-dur);
    border-bottom: 1px solid rgba(0,0,0,0);
}

.services__list > h2:hover {
    opacity: 100%;
}

.services__list > h2:active {
    opacity: 30%;
}

.services__list > h2.active {
    opacity: 100%;
    border-bottom: 1px solid var(--border-gray);
}

.services__main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    border-left: 1px solid var(--border-gray);
}

.services__buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.services__buttons #next, .services__buttons #prev {
    font-weight: bold;
    font-size: .7rem;
    padding: .5rem 1rem;
}

.services__buttons #next {
    margin-left: auto;
}

.services__up {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.services__desc {
    font-size: 1rem;
}

.services__up > div {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.services__up > img {
    max-width: 40%;
    min-width: 40%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
}

@media screen and (max-width: 836px) {
    .main {
        padding: 0 !important;
    }
    .services {
        flex-direction: column;
    }

    .services__main {
        border: none;
        border-top: 1px solid var(--border-gray);
        gap: 4rem;
    }

    .services__up {
        flex-direction: column-reverse;
    }

    .services__aside {
        height: auto;
    }

    .services__list > h2 {
        border-bottom: none;
    }

    .services__list > h2.active {
        opacity: 100%;
        border-bottom: none;
    }
}