/***********************************
************************************
STYLES FOR INITIATIVES
************************************
***********************************/

/* FILTER LINKS */
#initiative-filters {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
#initiative-filters li {
    margin: 3px;
}
#initiative-filters li:first-child {
    margin-left: 0;
}
#initiative-filters li:last-child {
    margin-right: 0;
}
#initiative-filters li a {
    background-color: #506ba4;
    color: #ffffff;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
}
#initiative-filters li.selected a,
#initiative-filters li a:hover {
    background-color: #ffcb05;
    color: #000000;
}

/* INITIATIVES */
#initiatives-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
#initiatives-list .initiative {
    display: none;
}
#initiatives-list .initiative.visible {
    width: 33%;
    display: block;
    margin: 15px 0;
    padding: 0 15px;
    /*animation: fadeIn .3s ease-in-out .3s forwards;*/
    /*opacity: 0;*/
}
#initiatives-list .initiative .featured-image {
    background-color: #00274c;
    position: relative;
    overflow: hidden;
    padding-bottom: 75%;
    background-size: cover;
}
#initiatives-list .initiative .no-image {
    width: 100%;
    padding-bottom: 75%;
    background-color: #00274c;
    position: relative;
    overflow: hidden;
}
#initiatives-list .initiative .no-image .icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    height: 100%;
    width: 100%;
}
#initiatives-list .initiative .featured-image .icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    background-color: rgba(0,39,76,.7);
}
#initiatives-list .initiative .featured-image i,
#initiatives-list .initiative .no-image i {
    color: #fff;
    font-size: 35px;
    line-height: 1;
}
#initiatives-list .initiative a:hover .featured-image .icon-wrapper,
#initiatives-list .initiative a:hover .no-image .icon-wrapper {
    opacity: 1;
 }
#initiatives-list .initiative h5 {
    margin-top: .3125em;
}
#initiatives-list .initiative .featured-image img {
    transition: opacity 0.3s;
    opacity: 1;
}
#initiatives-list .initiative a:hover .featured-image img {
    opacity: .3;
}
#initiatives-list .initiative.visible span {
    display: block;
}

#accordion a.mobile {
    display: none;
}
.no-js #accordion {
    border: none;
}
.no-js #accordion a.mobile {
    display: none;
}
.no-js #accordion #initiative-filters {
    display: block;
    padding: 0;
}




/* KEYFRAMES */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (min-width: 640px) {
    #initiative-filters {
        display: flex !important;
    }
}

@media only screen and (max-width: 850px) {
    #initiatives-list .initiative.visible {
       width: 48%;
    }
}

@media only screen and (max-width: 640px) {
    #accordion {
        border: solid 1px #506ba4;
    }
    #accordion a.mobile {
        display: block;
        padding: 10px;
        background-color: #506ba4;
        color: #ffffff;
        text-decoration: none;
    }
    #initiative-filters {
        flex-direction: column;
        margin: 0;
        padding: 15px;
        display: none;
    }
    #accordion a.mobile i {
        transition: all 0.3s ease;
    }
    #accordion.active a.mobile i {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #initiative-filters li {
        margin: 10px 0 ;
    }
    #initiative-filters li:first-child {
        margin-top: 0;
    }
    #initiative-filters li:last-child {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 450px) {
    #initiatives-list .initiative.visible {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}






