@import "styles.css";

body {
    /* margin: 0; */

    /* .decoration_line {
        margin: 20px;
    } */
}

main {
    overflow: hidden;

    /* #decoration_line {
        width: 9.375rem;
        height: 0.0625rem;
        background-color: var(--grey);
        margin-bottom: var(--gapM);

    } */
}

main a {
    text-decoration: none;
}

main svg {
    width: 300px;
}

main .artist_cards {
    display: flex;
    flex-direction: column;
    /* gap: 3rem; */
}

main .artist_cards article {
    margin-bottom: 2rem;
}

main .artist_cards article h1 {
    font-size: 1rem;
}

main .artist_cards article section h1,
main .artist_cards article section p {
    margin-left: 4.5rem;
    max-width: 50%;
}

main .artist_cards article:nth-child(odd) {
    align-self: flex-end;
    transform: translate(25%);
}

main .artist_cards article:nth-child(even) {
    align-self: flex-start;
    transform: translate(-20%);
}

main .artist_cards article .img-frame {
    transition: filter 0.3s ease;
}

main .artist_cards article .img-frame:hover {
    filter: none;
}

/*main .artist_cards article.artist_card.dimmed {
    filter: blur(6px) brightness(0.7);
    opacity: 75%;
}
*/
main .artist_cards h1 {
    margin-top: var(--gapM);
}

main .hidden {
    display: none;
}

@media (min-width: 400px) {
    .artist_cards article:not(:first-of-type) {
        gap: 0;
        margin-top: -15%;
    }
}

@media (min-width: 550px) {
    main .artist_cards article:nth-child(even) {
        transform: translate(10%);
    }

    main .artist_cards article:nth-child(odd) {
        transform: translate(-10%);
    }
}

@media (min-width: 800px) {
    main svg {
        width: 330px;
    }

    /* margin: var(--gapM); */

    main .artist_cards {
        padding-left: 60px;
        padding-right: 60px;
        padding-top: 50px;
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        scrollbar-width: none;
        gap: 0;
        height: 625px;
    }

    main .artist_cards article {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    main .artist_cards article section h1,
    main .artist_cards article section p {
        max-width: none;
    }

    /* NOTE: originally nested inside `article {}`, which flattens to a
       descendant selector (article inside article). Kept literally as
       written — but this very likely should instead be a sibling rule
       like the min-width:400px block above:
       main .artist_cards article:not(:first-of-type) { ... } */
    main .artist_cards article article:not(:first-of-type) {
        margin-left: -20px;
        margin-bottom: 0;
    }

    /* svg {
    margin-bottom: var(--gapS);
} */

    main .artist_cards article h1 {
        margin-bottom: var(--gapXXS);
        margin-top: var(--gapS);
        font-size: 1.5rem;
    }

    /* if a is odd child of an article then */
    main .artist_cards article:nth-child(odd) {
        transform: none;
        justify-content: flex-end;
        margin-top: 0;
    }

    main .artist_cards article:nth-child(even) {
        transform: none;
        justify-content: flex-start;
        margin-top: 0;
    }
}