/* Accordion Panel style */
.base-accordion > li > ul {
    width: 100%;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px 0 25px;
}

/* Accordion Panel style when active */
.base-accordion > li.active > ul {
    padding: 15px 10px 10px 25px;
    opacity: 1;
    height: auto;
    max-height: 1000px;
}

.base-accordion > li > :first-child {
    margin: 0 0 10px;
    cursor: pointer;
}

/* display media entries */
.base-media-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 1em;
    margin: 1em auto;
    justify-content: space-between;
}

.base-media-list::after {
    /* take up free space */
    content: "";
    flex: auto;
}

.base-media-list > li {
    height: auto;
    width: 50%;
    padding: 0.5em;
    box-sizing: border-box;
    text-align: center;
}

@media (min-width: 640px) {
    .base-media-list > li {
        width: 25%;
    }
}

.base-media-list > li img {
    width: 100%;
}

.base-media-list > li > a {
    display: inline-block;
    position: relative;
}

.base-media-list > li img.video+div.overlay {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: rgba(255, 255, 255, 0.5);
}

.base-media-list > li .play-button {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

/* pagination links */
.base-pagination a.prev, .base-pagination a.next, .base-pagination a.page {
    margin-right: 1em;
}

/* error message */
div.base-error {
    padding: 10px;
    color: #990000;
    border: 1px dashed #990000;
}
