/* ORGANISM - NEWS INDEX */

/** MOLECULE - NEWS FILTERS **/

.post-index__filters,
.aggregator__catlist {
    z-index: 6;
    width: 100%;
    float: left;
    position: relative;
}

.aggregator__filter-button {
    width: 100%;
    border: 0;
    padding-right: 2rem;
    float: right;
    text-transform: none;
    text-align: right;
    background: url(assets/img/dropdown-bg-dark.png) 99% center / 13px 8px
        no-repeat;
    cursor: pointer;
}

.bg-gradient--secondary .aggregator__filter-button,
.bg-tertiary .aggregator__filter-button {
    color: #fff;
    background: url(assets/img/dropdown-bg.png) 99% center / 13px 8px no-repeat;
}

.aggregator__catlist ul {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 70%;
    max-width: 250px;
    height: auto;
    padding: 0.4rem 0;
    z-index: 10;
    background: #262626;
    -webkit-box-shadow: 0 10px 10px -3 rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0 10px 10px -3 rgba(0, 0, 0, 0.75);
    box-shadow: 0 10px 10px -3 rgba(0, 0, 0, 0.75);
}

.aggregator__catlist ul:before {
    content: "";
    position: absolute;
    top: -0.5rem;
    right: 0.5rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px;
    border-color: transparent transparent #262626 transparent;
}

.aggregator__catlist ul li {
    display: block;
    padding: 0.4rem 1rem;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.aggregator__catlist ul li:hover,
.aggregator__catlist ul li.active {
    background: #b40808;
    color: #fff;
}

/** MOLECULE - NEWS AGGREGATOR **/

.post-item {
    width: 100%;
}

.post-item__container {
    position: relative;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
}

.post-item--large {
    flex-wrap: wrap;
}

.post-item > * {
    position: relative;
    z-index: 1;
}

.post-item__labels {
    position: relative;
}

.post-item .post-item__link:before,
.video-item .post-item__link:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

.post-item__link:focus {
    border: none;
    text-decoration: underline;
}

.post-item .post-item__description,
.post-item--large .post-item__description {
    width: 95%;
    margin: -1rem auto 0;
    display: flex;
    flex-wrap: wrap;
    z-index: 5;
    background: #fff;
    -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}

.post-item .post-item__image-container {
    width: 100%;
}

.post-item .post-item__image-container img {
    height: auto;
}

.playlist__post-list
    .post-item
    .post-item__image-container
    img:not(.post-item__image--max-res) {
    top: -2.1rem;
}

.post-item .post-item__description .post-item__title {
    flex: 0 1 100%;
    order: 1;
    margin-bottom: 1.5rem;
    width: 100%;
}

.post-item .post-item__description .post-item__meta {
    flex: 0 1 40%;
    order: 3;
    text-align: right;
}

.post-item.item-ticket .post-item__description .post-item__meta {
    flex: 0 1 75%;
}

.post-item .post-item__description .post-item__meta--no-cat {
    flex: 0 1 100%;
}

.post-item .post-item__description .post-item__meta--playlist {
    flex: 0 1 100%;
}

.post-item .post-item__description .post-item__labels {
    flex: 0 1 60%;
    order: 2;
    position: relative;
    bottom: 0;
    left: 0;
}

.post-item.item-ticket .post-item__description .post-item__labels {
    flex: 0 1 25%;
}

.post-item__type {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.2rem 0.3rem 0.2rem 0.6rem;
    height: 22px;
    background: #b40808;
    color: #fff;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
}

.post-item__type:after {
    content: "";
    position: absolute;
    right: -5px;
    top: 0;
    width: 10px;
    height: 22px;
    background: #b40808;
}

.post-item__type[data-type="video"],
.post-item__type[data-type="video"]:after,
.post-item__type[data-type="gallery"],
.post-item__type[data-type="gallery"]:after {
    background: #373737;
}

.post-item__icon {
    display: none;
}

.post-item[data-type="video"] .post-item__icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.post-item__labels label,
.home__latest-tags label {
    width: auto;
    position: relative;
    margin: 0;
    padding: 0.3rem 0.6rem;
    border: 0;
    border-radius: 2px;
    font: 700 0.75rem / 1rem "Gotham", Arial, sans-serif;
    overflow: hidden;
    background-color: #1D1D1B !important;
}

.post-item__label-link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.post-item__labels label > span,
.home__latest-tags label > span {
    display: block;
    z-index: 5;
}

.post-item__label-block {
    padding: 0;
    width: 12px;
    height: 10px;
    margin: 0 0.3rem 0 0;
}

.bg-gradient--secondary .post-item__labels label,
.bg-tertiary .post-item__labels label {
    background: #262626;
}

.bg-gradient--secondary .post-item__labels label > span,
.bg-tertiary .post-item__labels label > span,
.home__latest-tags label > span {
    color: #bdbdbd;
}

.bg-gradient--secondary .post-item__description,
.bg-tertiary .post-item__description {
    color: #fff;
}

.bg-tertiary .post-item__labels label > span {
    color: #fff;
}

.aggregator__error {
    color: #313131;
}

.bg-tertiary .aggregator__error {
    color: #fff;
}

.footer__news-container {
    padding: 1rem;
}

.footer__news-button .button {
    padding: 0.4rem 4rem;
}

.post-item--large {
    width: 100%;
}

[data-playlist-modal]:focus {
    outline: none;
}

[data-playlist-modal]:focus .post-item__image-container i {
    color: #5e5e5e;
}

.post-item__image-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.post-item__image-container i {
    position: absolute;
    left: 50%;
    top: 45%;
    width: auto;
    font-size: 3rem;
    color: #fff;
    z-index: 20;
    cursor: pointer;
}

.playlist__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.playlist__header [data-dismiss] {
    font-size: 1.8rem;
    cursor: pointer;
}

.post-item .post-item__description .post-item__title p {
    width: 100%;
    overflow: hidden;
    word-break: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/**************************
* Youtube Playlist template
***************************/
.page-template-page-youtube-playlist .content__header--banner {
    height: 300px;
    overflow: hidden;
}
.page-template-page-youtube-playlist .content__header--banner .backgroundImage {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.page-template-page-youtube-playlist .content__header--banner.top img {
    object-position: top;
}
.page-template-page-youtube-playlist .content__header--banner.centre img {
    object-position: center;
}
.page-template-page-youtube-playlist .content__header--banner.bottom img {
    object-position: bottom;
}

.single-document .article__document-content {
    margin: 2rem 0;
}

/* (tablet, 768px and up) */
@media (min-width: 48em) {
    .aggregator {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }

    .content__body--aggregator {
        padding: 0 0.5rem;
    }

    .post-item {
        width: 49%;
    }

    .post-item--large {
        width: 49%;
    }

    .post-item.post-item--large {
        width: 49%;
        margin-bottom: 2rem;
    }

    .footer__news-container {
        display: flex;
        justify-content: space-between;
    }

    .playlist__post-list
        .post-item
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -2.3rem;
    }
}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {
    .aggregator:after {
        content: "";
        width: 31%;
    }

    .post-item {
        width: 31%;
    }

    .post-item--large {
        width: 49%;
    }

    .aggregator--tickets .post-item {
        width: 49%;
    }

    .post-item .post-item__description .post-item__title h3 {
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .post-item--large .post-item__description .post-item__title h3,
    .post-item--full .post-item__description .post-item__title h3 {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }

    .playlist__post-list
        .post-item
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -1.8rem;
    }

    .playlist__post-list
        .post-item--large
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -2.8rem;
    }
}

/* (laptop, 1232px and up) */
@media (min-width: 77em) {
    .post-item--large .post-item__description .post-item__title {
        margin-bottom: 2.5rem;
    }

    .post-item--large .post-item__description h3 {
        font-size: 1.6rem;
        line-height: 2rem;
    }

    .footer__latest-news {
        padding: 1rem 1rem 2rem;
    }

    .footer__news-container
        .post-item--large:last-child
        .post-item__image-container {
        margin-right: 400px;
        margin-left: 0;
    }

    .footer__news-container
        .post-item--large:last-child
        .post-item__description {
        right: 0;
    }

    .footer__news-container {
        padding: 0;
    }

    .playlist__post-list
        .post-item
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -2.2rem;
    }

    .playlist__post-list
        .post-item--large
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -3.5rem;
    }
}

/* (laptop, 1366px and up) */
@media (min-width: 85.375em) {
    .playlist__post-list
        .post-item
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -2.7rem;
    }

    .playlist__post-list
        .post-item--large
        .post-item__image-container
        img:not(.post-item__image--max-res) {
        top: -4.1rem;
    }
}

/** ATOM - LOAD MORE **/

.aggregator__load {
    width: 100%;
}

.aggregator__load-button {
    width: 100%;
    max-width: 190px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
}

.aggregator__load-button:focus {
    background: #7f7c7c;
}

.aggregator__load .aggregator__load-button--deactive {
    background: #7f7c7c;
    line-height: 1.3rem;
}
