/* card_list.css
A CSS file for the card list template.
A card list is a list of cards, each of which contains an image, a title, and a description.
They are typically used display a list of items to select, such as a list of organizations or a list of themes.
The card are arranged in a grid, with each row containing a maximum of X cards, where X is the number of cards that can fit in a row.
*/

/* ================================================================================================================== */
/* General Style for the Card grid                                                                                    */
/* ================================================================================================================== */

.card-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-grid__container {
    display: block;
    padding: 1rem;
}

@media only screen and (min-width: 40rem) {
    .card-grid__container {
        width: 50%;
    }
}

@media only screen and (min-width: 56rem) {
    .card-grid__container {
        width: 33.3333%;
    }
}

.card-grid__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    width: 100%;

    background: var(--eco-emerald);
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    cursor: pointer;
    text-decoration: none;
    transition: all .8s;
}

.card-grid__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

}

/* ================================================================================================================== */
/* Style for the Organization cards
/* ================================================================================================================== */

.card-grid__card.org {
    overflow: hidden;
    max-height: 300px;
    /* Fonts & colors */
    font-family: sans-serif;
    text-align: left;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    padding-bottom: 20px;
}

.card-grid__card.org h5 {
    display: block;
    margin: 20px;
    text-align: center;
    color: #ffff;
}

.card-grid__card.org img {
    height: 50%;
    width: 100%;
    object-fit: contain;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ffff;
}

.card-grid__card.org .card-socials {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.card-grid__card.org .card-socials a {
    text-decoration: none;
    color: #ffffff;
    padding-left: 5px;
    padding-right: 5px;
    transition: all .3s
}

.card-grid__card.org .card-socials a>img {
    margin: auto;
    width: 35px;
    height: auto;
    background-color: transparent;
}


/* ================================================================================================================== */
/* Style for the Map Cards
/* ================================================================================================================== */

.card-grid__card.map {
    overflow: hidden;
    /* Fonts & colors */
    text-align: left;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.card-grid__card.map img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

.card-grid__card.map .card-content {
    padding: 15px 25px 33px;
    display:flex;
    flex-direction: column;
}


.card-grid__card.map .card-metadata {
    font-size: 12px;
    display:flex;
    width: 100%;
    padding-bottom: 1em;
}

.card-grid__card.map .card-metadata__divider {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.card-grid__card.map .card-metadata__authors {
    display: flex;
    align-items: center;
}

.card-grid__card.map .card-metadata__authors a {
    text-decoration: none;
    color:#fff;
}

.card-grid__card.map .card-metadata__authors img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    margin-bottom: 1px;
    vertical-align: middle;
}

.card-grid__card.map .card-metadata__authors a:hover {
    text-decoration: underline;
}
