/* LISTS */
section.list {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    height: auto;
}

section.list .item {
    box-sizing: border-box;
    flex: 0 0 100%;
    position: relative;
    margin: var(--very-tight) var(--very-tight) 0 0;
    padding: var(--very-tight);
    border: 1px solid var(--matte-blue-60);
    transition: var(--fast);
}

section.list .item:hover {
    border-color: var(--matte-blue-80);
}

section.list .item picture {
    width: 100%;
    height: auto;
    padding: 0 0 56.25% 0;
    margin: 0 0 .75rem 0;
}

@media screen and (min-width:1000px)
{
    section.list .item {
        flex: 0 0 calc(25% - var(--very-tight));
    }
    section.list .item picture {
        width: 100%;
        height: auto;
        padding: 0 0 56.25% 0;
        margin: 0 0 .75rem 0;
    }
}

section.list .item h2 {
    font-size: 1.25rem;
    margin-bottom: -.25em;
}

section.list .item p,
section.list .featured p {
    margin-top: .5em;
    margin-bottom: 0;
    font-size: .9rem;
}

section.list .tags {
    font-size: .9rem;
    color: var(--matte-blue-dark);
    margin-top: 1rem;
}




/* timestamp for news */
.news-list .time {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: auto;
    height: auto;
    padding: .50rem .75rem;
    background: var(--matte-blue);
    color: white;
    text-align: center;
}

.news-list .time div {
    text-align: center;
    font-size: .9rem;
    margin-bottom: -.25em;
}

.news-list .time div:first-child {
    font-size: 1.4rem;
    font-weight: 900;
}


/* timestamp for books */
.book-list .time {
    font-size: .9rem;
    color: var(--matte-blue-dark);
}


/* labels for events */
.event-list .labels {
    display: block;
}

.event-list .free,
.event-list .online {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: var(--soft);
    font-size: 1rem;
    font-weight: 900;
    width: fit-content;
    margin: 0 .5rem .5rem 0;
}

.event-list .list .free,
.event-list .list .online {
    margin-bottom: 0;
    margin-top: 1rem;
}

.event-list .free {
    background: var(--bright-yellow);
}

.event-list .online {
    background: var(--bright-blue);
}

.event-list .item .place,
.event-list .item .time,
.event-list .item .tags {
    font-size: .9rem;
    color: var(--matte-blue-dark);
}

.event-list .place svg,
.event-list .time svg,
.event-list .tags svg {
    height: 1em;
    fill: var(--bright-blue);
    margin-right: .2em;
    transform: translate(.1em,.1em);
}

.event-list .item.sticky 
{
    background: var(--matte-blue-20);
    border-color: var(--matte-blue-20);
}




/* ITEMS */


/* news */
.news-item p.timestamp,
.news-item p.author,
.news-item p.credits {
    font-size: .9rem;
    color: var(--bright-green);
    letter-spacing: .05rem;
    margin: 0 0 .25rem 0;
}

.news-item .details {
    padding-bottom: 0;
}

.news-item .content {
    display: block;
    column-count: 1;
}

@media screen and (min-width:1000px) 
{
    .news-item .content {
        column-count: 2;
        column-gap: 4rem;
        column-rule: 1px solid var(--matte-blue-40);
    }    
}

.news-item .contact {
    font-size: .9rem;
    color: var(--matte-blue);
    letter-spacing: .05rem;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;

}

.news-item .boilerplate {
    color: var(--matte-blue);
    font-size: .8rem;
    column-count: 2;
    column-gap: var(--tight);
    column-rule: 1px solid var(--matte-blue);
}


/* book */
.book-item .download {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
}

.book-item .download .item {
    position: relative;
    flex: 0 0 100%;
    padding: var(--very-tight);
    margin: 0 var(--very-tight) var(--very-tight) 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    background: var(--drc-red-80);
    border-radius: var(--soft);
    display: flex;
    flex-flow: row nowrap;
    justify-content: stretch;
    transition: var(--fast);
    color: white;
}

@media screen and (min-width:1000px)
{
    .book-item .download .item {
        flex: 0 0 calc(25% - var(--very-tight));
    }
}

.book-item .download .item:hover {
    background: var(--drc-red);
}

.book-item .download .item a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.book-item .download .item .text {
    flex: 1 1 70%;
    font-weight: 900;
    padding: 0 .5em 0 0;
}

.book-item .download .item .meta {
    flex: 0 0 auto;
    font-weight: 400;
    border-left: 1px solid white;
    padding: 0 0 0 .5em;
}

.book-item p.timestamp,
.book-item p.author,
.book-item p.credits {
    font-size: .9rem;
    color: var(--bright-green);
    letter-spacing: .05rem;
    margin: 0;
}

.book-item .content {
    display: flex;
}


/* event */

section.event-notice {
    display: block;
    width: 100%;
    height: auto;
    background: var(--bright-yellow);
    box-sizing: border-box;
}

section.event-notice p.notice-heading {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

section.event-notice p.notice-content {
    font-weight: 400;
    font-size: 0.9rem;
}



.event-item .info {
    display: flex;
    flex-flow: row wrap;
    padding: 0;
    box-sizing: border-box;
}

.event-item .info .signup {
    flex: 1 0 50%;
    background: var(--drc-red-20);
    padding: var(--loose);
    box-shadow: var(--shadow);
    z-index: 9;
}

@media screen and (max-width: 1000px)
{
    .event-item .info .signup {
        padding: var(--tight);
    }
}


.event-item .info .signup .date {
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0 0 -0.5rem 0;
}

.event-item .info .signup .time {
    font-size: 1.5rem;
    font-weight: 300;
    margin: -.5rem 0 2em 0;
}

.event-item .info .signup .date .label {
    display: block;
    font-weight: 300;
    font-size: 1rem;
    margin: 0 0 -.5rem 0;
}


.event-item .info .signup .price {
    font-weight: 900;
    font-size: 1.4rem;
    margin: 0 0 -0.5rem 0;
}

.event-item .info .signup .price .label {
    display: block;
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: -.5rem;
}

.event-item .info .signup .button {
    margin: 0;
}

.event-item .info .signup .event-item .expired {
    text-decoration: line-through;
    opacity: .25;
}

.event-item .info .signup .price.free {
    display: inline-block;
    background: var(--bright-yellow);
    padding: .5rem 1rem;
    margin: 0 0 1rem 0;
    border-radius: var(--soft);
    box-shadow: var(--shadow);
}



.event-item .info div.venue {
    flex: 1 0 50%;
    background: var(--matte-blue-40);
    padding: var(--loose);
}

@media screen and (max-width: 1000px)
{
    .event-item .info div.venue {
        padding: var(--tight);
    }
}

.event-item .info .venue {
    font-weight: 900;
    font-size: 1.4rem;
}

.event-item .info .venue .label {
    font-weight: 300;
    font-size: 1rem;
    display: block;
    margin: 0 0 -0.25rem 0;
}

.event-item .info .venue a {
    font-weight: 900;
    font-size: 1rem;
    display: inline-block;
    margin-top: .5rem;
    margin-bottom: 2rem;
    text-transform: none;
}

.event-item .info .venue .event-link-missing {
    font-weight: 900;
    font-size: 1rem;
    display: inline-block;
    margin-top: .5rem;
    margin-bottom: 2rem;
    text-transform: none;
    color: var(--matte-blue);
}


.event-item .agenda {
    background: whitesmoke;
}

.event-item .agenda ul,
.event-item .agenda li {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: block;
}

.event-item .agenda.day {
    color: var(--matte-blue);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: .1em;
    padding: 0;
    margin: 2.5rem 0 0 0;
}

.event-item .agenda.time {
    display: inline-block;
    padding: .25em .50em;
    border-radius: var(--soft);
    background: var(--matte-blue);
    color: white;
    font-weight: 300;
    font-size: .9rem;
    margin: 1rem auto -0.5rem auto;
}

.event-item .agenda.title {
    color: black;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: none;
    padding: 0;
    margin: .5rem 0 -0.5rem 0;
}

.event-item .agenda.description {
    color: black;
    font-weight: 400;
    font-size: 1rem;
    text-transform: none;
    padding: 0;
    margin: .5rem 0 .5rem 0;
}

.event-item .speakers ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 100%;
}

.event-item .speakers li {
    flex: 0 0 33%;
    display: block;
    padding: var(--tight);
    text-align: center;
}

.event-item .speakers li picture {
    width: 100px;
    height: 100px;
    min-height: auto;
    overflow: hidden;
    margin: 0 auto var(--very-tight) auto;
    border-radius: 50%;
    background: var(--matte-blue-20);
}









/* featured */
.featured {
    background: var(--drc-red-20);
}

.featured article {
    display: flex;
    flex-flow: row wrap;
    min-height: 30vh;
}

.featured article picture {
    flex: 0 0 100%;
    padding: 0 0 66% 0;
}

.featured article div.txt {
    flex: 0 0 100%;
    padding: var(--very-tight);
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

@media screen and (min-width:1000px)
{
    .featured article picture {
        flex: 0 0 50%;
        padding: 0 0 33% 0;
    }
    .featured article div.txt {
        flex: 0 0 50%;
    }
}

.featured .label {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: .5rem;
}
    

/* pagination */
.pagination {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: var(--very-tight) 0;
}

@media screen and (min-width:1000px)
{
    .pagination {
        justify-content: flex-start;
    }    
}

.pagination > a.left,
.pagination > a.right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 .1em -.5em .1em;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--fast);
    background: var(--matte-blue-80);
    color: white;
}

@media screen and (min-width:1000px){
    .pagination > a.left,
    .pagination > a.right {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }    
}


.pagination > a.left:hover,
.pagination > a.right:hover {
    background: var(--matte-blue);
    color: white;
}


/* prev + next */
.prev_next {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
}

.prev_next .left,
.prev_next .right,
.prev_next .none {
    flex: 0 0 calc(50% - .25rem);
    display: flex;
    align-items: center;
}

.prev_next .left {
    flex-flow: row nowrap;
    justify-content: flex-start;
}

.prev_next .right {
    flex-flow: row-reverse nowrap;
    justify-content: flex-end;
}

.prev_next a:link,
.prev_next a:visited {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 2rem;
    margin: 0 0 -.5em 0;
    color: white;
    background: var(--matte-blue-80);
    transition: var(--fast);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    text-decoration: none;
}

.prev_next a:hover,
.prev_next a:active {
    background: var(--matte-blue);
}

.prev_next .text {
    flex: 1 1 auto;
    font-weight: 900;
    font-size: 1rem;
    padding: 0 1rem;
    margin: 0 0 -.5em 0;
    color: var(--matte-blue);
    transition: var(--slow);
}

.prev_next .time {
    font-weight: 400;
    font-size: .9rem;
    margin-bottom: 1rem;
    transition: var(--slow);
}

.prev_next .left .text {
    text-align: left;
}    

.prev_next .right .text {
    text-align: right;
}    

.prev_next a:hover ~ .text {
    color: black;
}

.prev_next a:hover ~ .text .time {
    letter-spacing: .1rem;
}



/* filter */
section.filter {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background: var(--black-ish);
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: white;
}

section.filter .heading {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 5rem 0 0;
    margin: 0 0 -.5em 0;
    font-weight: 300;
    font-size: 1.2rem;
}

section.filter .options {
    flex: 0 0 33%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
}

section.filter .name {
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 1rem;
    padding: .9rem .5rem .9rem 0;
    margin-right: .2rem;
    margin-bottom: -.5em;
    border-right: 1px solid;
}

section.filter .drop {
    flex: 1 1 auto;
    position: relative;
}

section.filter .list {
    position: absolute;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: auto;
    height: 2.8rem;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: .2rem;
    border-radius: var(--soft);
    z-index: 20;
    transition: var(--fast);
}

section.filter .list:hover {
    height: auto;
    max-height:50vh;
    background: white;
    box-shadow: var(--shadow);
    overflow-y:auto;
}

section.filter .list::-webkit-scrollbar {
    width: .5rem;
    height: 0;
}

section.filter .list::-webkit-scrollbar-thumb {
    background: var(--matte-blue-60);
}

section.filter .list::-webkit-scrollbar-track {
    background: var(--matte-blue-20)
}

section.filter a {
    display: inline-block;
    padding: .5em;
    margin: .25em .25em -.5em .25em;
    border: 1px solid;
    border-radius: var(--soft);
    color: var(--matte-blue-80);
    text-decoration: none;
    font-weight: 900;
    transition: var(--fast);
    text-align: left;
    order: 1;
}

section.filter a:hover {
    color: var(--matte-blue);
}

section.filter a.current,
section.filter a.current:hover {
    background: var(--bright-green);
    border-color: var(--bright-green);
    color: white;
    order: 0;
}

section.filter a.clear {
    letter-spacing: .05em;
    transition: var(--fast);
    color: var(--drc-red-60);
}

section.filter a.clear:hover {
    color: var(--drc-red-80);
}

section.filter span.counter {
    font-weight: 300;
    position: relative;
    top: -4px;
    right: -2px;
    font-size: .8em;
}




/* LIBRARY FILTER 3 */
    
section.filter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: var(--black-ish);
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: white;
}

.filter div {
    margin-right: var(--loose);
    height: 3rem;
}

.filter .label {
    font-weight: 300;
    font-size: .9rem;
    text-transform: uppercase;
    margin-right: .5rem;
    letter-spacing: .05rem
}

.filter select {
    background-color: transparent;
    color: white;
    font-weight: 900;
    padding: .5rem;
    border-width: 1px;
    border-color: grey;
    outline: none;
    height: 3rem;
    width: 12rem;
    text-transform: capitalize;
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
}

.filter select option {
    background-color: var(--dark-grey);
    color: var(--white-ish);
}

select::-webkit-scrollbar {
    width: 8px;
}
 
select::-webkit-scrollbar-track {
  background-color: var(--dark-grey);
}
 
select::-webkit-scrollbar-thumb {
  background-color: silver;
  outline: none;
  border: none;
  border-radius: 4px;
}

#filtersearch {
    height: 3rem;
    display: flex;
    align-items: center;
}

#filtersearch form {
    border: 1px solid grey;
    padding: 0 .5rem;
}

#filtersearch input[type="text"] {
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    background-color: transparent;
    color: white;
    font-weight: 900;
    padding: .5rem;
    height: 3rem;
    width: 9rem;
}

#filtersearch input[type="text"]::placeholder {
    color: white;
}

#filtersearch button {
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto;
    height: 2rem;
    background-color: transparent;
    color: grey;
    border-width: 0 0 0 1px;
    border-color: grey;
    font-weight: 300;
    padding: 0 .5rem 0 1rem;
    text-transform: uppercase;
    transition: var(--fast);
    cursor: pointer;
    font-size: .8rem;
}

#filtersearch button:hover {
    color: white;
}

#clearAll {
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto;
    height: 3rem;
    background-color: transparent;
    color: grey;
    border: none;
    font-weight: 300;
    font-size: .8rem;
    padding: 0;
    text-transform: uppercase;
    transition: var(--fast);
    cursor: pointer;
}

#clearAll:hover {
    color: var(--bright-orange);
}

@media screen and (max-width: 1000px)
{
    section.filter {
        flex-wrap: wrap;
    }
    section.filter div {
        flex: 0 0 100%;
        margin-bottom: var(--very-tight);    
    }
    section.filter .label {
        width: 5rem;
        display: inline-block;
    }
    section.filter select {
        width: calc(100% - 6rem);
    }
    #filtersearch form {
        margin-left: 0.2rem;
        width: calc(100% - 6rem);
    }
    #filtersearch input[type="text"] {
        width: calc(100% - 3rem);
    }
    section.filter div:last-of-type {
        text-align: center;
        margin-bottom: 0;
        
    }
}
    