.pagination {
    justify-content: flex-end;
    margin-bottom: 10px ;
}

.webcast-notes {
    margin-bottom: 20px;
}

#library {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

#library .library-item {
    width: 49%;
    margin-bottom: 20px;
    border: solid 1px #CCC;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

#library .library-item .swap-block {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    color: #fff;
    z-index: 1;
}

#library .library-item .swap-block .fa-rotate {
    cursor: pointer;
}
#library .library-item .swap-block .fa-rotate:hover{
    color: #0a53be;
}

#library .library-item.item-ongoing {
    border-color: cornflowerblue;
}
#library .library-item.item-ongoing .swap-block {
    background-color: cornflowerblue;
    justify-content: flex-start;
}

#library .library-item.item-passed {
    border-color: rgba(255, 136, 136, 0.87);
}
#library .library-item.item-passed .swap-block {
    background-color: rgba(255, 136, 136, 0.87);

}

#library .library-item a {
    display: block;
    position: relative;
    z-index: 1;
}

#library .library-item .trial-forbidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

#library .library-item:not(:nth-child(2n+2)) {
    margin-right: 2%;
}

#library .library-item .ceu-eligible {
    position: absolute;
    z-index: 10;
    top: 2px;
    right: 2px;
}


#library .library-item .library-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#library .library-item .image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

#library .library-item a {
    text-decoration: none;
}

#library .library-item .title {
    color: black;
    font-weight: 600;
    margin-top: 10px;
}

#library .library-item .description {
    color: #212529;
    margin-top: 20px;
    font-size: 0.75rem;
}

@media screen and (min-width: 800px) {
    #library .library-item {
        width: 32%;
    }

    #library .library-item:not(:nth-child(2n+2)) {
        margin-right: inherit;
    }

    #library .library-item:not(:nth-child(3n+3)) {
        margin-right: 2%;
    }

}

@media screen and (min-width: 1024px) {
    #library .library-item {
        width: 19%;
    }

    #library .library-item:not(:nth-child(3n+3)) {
        margin-right: inherit;
    }

    #library .library-item:not(:nth-child(5n+5)) {
        margin-right: 1.24%;
    }

    #library .library-item .image {
        min-height: 258px;
    }
}

