﻿.back-also-watch {
    width: 100%;
}

.container-also-watch {
    max-width: var(--normal);
    margin: 0 auto;
    padding: var(--padding-updown-desktop) var(--padding-sides-desktop);
    display: flex;
    justify-content: center;
}

.content-also-watch {
    width: 80%;
    height: 100%;
}

.content-also-watch-cards {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 1em;

    .content-also-watch-card:visited .content-also-watch-card-readmore,
    .content-also-watch-card.clicked .content-also-watch-card-readmore{
        color: purple;
    }
}

.content-also-watch-cards li {
    list-style: none;
    display: flex;
}

.content-also-watch-card {
    width: 100%;
    padding-top: 120%;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 15px rgb(0 0 0 / 20%);
    overflow: hidden;
    position: relative;
}

.content-also-watch-card-top {
    position: absolute;
    height: 50%;
    left: 0;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-blue);
}

.content-also-watch-card:hover .content-also-watch-card-top {
    background-color: var(--dark-blue);
}

.content-also-watch-card-top img {
    height: 80%;
}

.content-also-watch-card-bottom {
    background-color: white;
    position: absolute;
    height: 50%;
    left: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    padding-bottom: 2em;
}

.content-also-watch-card-container-text {
    overflow: hidden;
}

.content-also-watch-card-text {
    font-size: var(--font-small-text-desktop);
    color: var(--grey);
    flex: 1;
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.4rem;
    max-height: 4.2rem;
    /*hyphens: auto;*/
}

.content-also-watch-card-readmore {
    font-size: var(--font-text-desktop);
    color: var(--main-blue);
    text-decoration: underline;
    position: absolute;
    bottom: 0.5em;
}


.content-also-watch-card-title {
    width: 100%;
    margin-bottom: min(0%,0.25em);
}

    .content-also-watch-card-title h3 {
        font-size: var(--font-text-desktop);
        line-height: 1.3rem;
        max-height: 3.9rem;
        min-height: 2rem;
        /* min-height: 2.4rem; */
        color: var(--main-blue);
        overflow: hidden !important;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        margin-bottom: 0;
    }

.content-also-watch-info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2em 1.5em 2em;
}
.content-also-watch-title {
    display: flex;
}
    .content-also-watch-title h2 {
        font-size: var(--font-small-title-desktop);
        color: var(--main-blue);
        border-bottom: 1px solid var(--main-blue);
        font-weight: 700;
        margin-bottom: 1em;
        padding-bottom: 0.5em;
    }

.content-also-watch-text {
    font-size: var(--font-text-desktop);
    font-weight: 500;
    color: var(--dark-grey);
}

@media only screen and (max-width: 70em) {
    .container-also-watch {
        padding: var(--padding-updown-tablet) var(--padding-sides-tablet);
    }

    .content-also-watch {
        width: 100%;
    }

    .content-also-watch-cards {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-gap: 2rem;
    }

    .content-also-watch-card-text {
        -webkit-line-clamp: 2;
    }

    .content-also-watch-card-title {
        margin-bottom: 0.25em;
    }
}

@media only screen and (max-width: 45em) {
    .content-also-watch {
        width: 100%;
    }

    .container-also-watch {
        padding: var(--padding-updown-mobile) var(--padding-sides-mobile);
    }

    .content-also-watch-card {
        display: flex;
        width: 100%;
        padding-top: 35%;
    }

    .content-also-watch-card-top {
        height: 100%;
        left: 0;
        width: 50%;
    }

    .content-also-watch-card-bottom {
        padding: 0.5em;
        height: 100%;
        left: auto;
        right: 0;
        width: 50%;
    }

    .content-also-watch-cards {
        grid-template-columns: repeat(1,1fr);
        grid-gap: 1rem;
    }

    .content-also-watch-card-text {
        font-size: var(--font-text-mobile);
        -webkit-line-clamp: 3;
        line-height: 1.2rem;
        max-height: 3.6rem;
    }

    .content-also-watch-card-readmore {
        font-size: var(--font-small-text-mobile);
    }

    .content-also-watch-card-title h3 {
        font-size: var(--font-small-title-mobile);
        line-height: 1.1rem;
        min-height: 1.5rem;
        max-height: 2.2rem;
        margin-bottom: 0;
    }

    .content-also-watch-text {
        font-size: var(--font-text-mobile);
        line-height: 1rem;
    }

    .content-also-watch-title h2 {
        font-size: var(--font-title-mobile);
    }

    .content-also-watch-info-text {
        padding: 0 0 2em 0;
    }

    .content-also-watch-card-title {
        margin-bottom: 0;
    }
}
