nav {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

nav .nav-list-item:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.mary-hero {
    width: 100%;
    padding: 50px 0;
}

.mary-hero .text-container {
    width: fit-content;
    text-align: center;
    max-width: 80%;
    margin: auto;
}

.mary-hero .text-container>* {
    color: var(--light-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 80%;
    margin: auto;
    gap: 40px;
}

.card-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.card-container .card-background {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.card-container .card-time {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--secondary-color);
    color: var(--light-color);
    width: fit-content;
    padding: 10px 20px;
}

.card-container .card-info-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    backdrop-filter: blur(15px);
    background: linear-gradient(273.31deg, hsla(0, 0%, 100%, .2) -1.15%, hsla(0, 0%, 100%, .2) 101.01%), linear-gradient(93.99deg, hsla(0, 0%, 100%, .4) -7.55%, hsla(0, 0%, 100%, .4) 89.23%);
    text-align: center;
}

.treatment-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 20px;
    width: fit-content;
    max-width: 80%;
    margin: 0 auto;
}

.treatment-container .treatment-description .treatment-type-info {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.treatment-container .treatment-description .treatment-goal-title {
    font-weight: bold;
    margin-bottom: 20px;
}

.treatment-container .treatment-description .treatment-goal-description {
    margin-bottom: 10px;
}

.treatment-container .treatment-description .treatment-info-list {
    margin: 20px 0 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.treatment-container .treatment-description .treatment-info-list .list-item {
    padding: 5px 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.treatment-container .treatment-description .treatment-info-list .list-item {
    border-left: 3px solid var(--secondary-color);
}

.treatment-container .treatment-image {
    position: relative;
    max-height: 650px;
}

.treatment-container .treatment-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.treatment-container .treatment-image .treatment-image-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: fit-content;
    max-width: 250px;
    height: fit-content;
    padding: 20px 40px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.treatment-container .treatment-image .treatment-image-overlay h3 {
    color: inherit;
}

.treatment-device-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 70%;
    margin: 0 auto;
}

.treatment-device-container .treatment-device-description {
    max-width: 70%;
}

.treatment-device-container .treatment-device-description>* {
    color: inherit;
}

.treatment-device-container .treatment-device-description>p {
    margin-bottom: 20px;
}

.treatment-device-container .treatment-device-image {
    height: auto;
    width: 200px;
}

.treatment-device-container .treatment-device-image img {
    width: 100%;
}

.backlink-container {
    width: 80%;
    padding: 20px 0 0 20px;
    margin: 0 auto;
}

.backlink {
    color: var(--secondary-color);
    width: fit-content;
    margin: 0 auto;
}

section.less-top-space {
    padding: 30px 30px 60px 30px;
}

iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 1280px;
    height: auto;
    margin: 0 auto;
}


/* RESPONSIVENESS */

@media only screen and (max-width: 1100px) and (min-width: 601px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: unset;
    }
    .treatment-container {
        grid-template-columns: 40% 60%;
        max-width: unset;
    }
    .backlink-container {
        width: 100%;
        padding: 20px 0 0 30px;
    }
    .treatment-container .treatment-image .treatment-image-overlay {
        font-size: 80%;
    }
    .treatment-device-container {
        max-width: 80%;
    }
}

@media only screen and (max-width: 750px) and (min-width: 501px) {
    .mary-hero {
        padding: 0;
    }
    .text-container {
        max-width: unset;
    }
    .cards-container {
        width: 100%;
        margin: 0 auto;
    }
    .treatment-container {
        grid-template-columns: 1fr;
    }
    .treatment-container .treatment-image {
        height: fit-content;
        max-height: unset;
    }
}

@media only screen and (max-width: 750px) {
    .treatment-container .treatment-image .treatment-image-overlay {
        position: unset;
        font-size: unset;
        width: 100%;
        max-width: unset;
    }
    .treatment-container .treatment-description .treatment-info-list {
        margin: 20px 0 0 -20px;
        flex-direction: row;
    }
    .treatment-container .treatment-description .treatment-info-list .list-item {
        border-left: none;
    }
    .treatment-container .treatment-description .treatment-info-list .list-item:not(:last-of-type) {
        border-right: 3px solid var(--secondary-color);
    }
}

@media only screen and (max-width: 600px) {
    .mary-hero {
        padding: 0;
    }
    .mary-hero .text-container {
        max-width: unset;
    }
    .cards-container {
        grid-template-columns: 1fr;
        max-width: unset;
    }
    .treatment-container {
        grid-template-columns: 1fr;
        max-width: unset;
    }
    .treatment-container .treatment-image {
        height: fit-content;
        max-height: unset;
    }
    .treatment-container .treatment-image .treatment-image-overlay {
        position: unset;
        font-size: unset;
        width: 100%;
        max-width: unset;
    }
    .treatment-device-container {
        max-width: unset;
        flex-direction: column;
        gap: 20px;
    }
    .backlink-container {
        width: 100%;
        padding: 20px 0 0 30px;
    }
    .treatment-device-container .treatment-device-description {
        max-width: unset;
    }
}