/* Fonts */
.item .name {
    margin-bottom: 5px;
}
.item .type {
    margin-bottom: 15px;
}
.item .subtitle {
}
.item .surtitle {
    font-size: 14px;
}
.item .theme,
.item .more .short {
    display: none;
}

/* Flex */
@media only screen and (min-width: 768px) {
    .flex {
        display: flex;
        column-gap: 10px;
        flex-wrap: nowrap;
    }
}

/* Grid */
.grid .item {
    width: 100%;
}
.grid {
    margin-bottom: var(--big-spacing);
}
@media only screen and (min-width: 768px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: var(--grid-gap);
        /*grid-auto-rows: minmax(100px, auto);*/
    }
}
@media only screen and (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Items */
.item {
    width: 100%;
    margin-bottom: var(--default-spacing);
}
.item .remove {
    /*display: none;*/
}
.item .thumbnail {
    position: relative;
    padding-top: 100%;
    margin-bottom: 10px;
}
.item .thumbnail .wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.item .thumbnail .wrapper video,
.item .thumbnail .wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item .thumbnail .wrapper svg rect {
    fill: var(--current-shape-color);
}
.item .thumbnail.empty .icon {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}
.item.movie .thumbnail.empty .icon {
	background: url('../img/movie.svg') no-repeat center center;
    background-size: 20%;
}
.item.audio .thumbnail.empty .icon {
	background: url('../img/audio.svg') no-repeat center center;
    background-size: 20%;
}
.item.audio audio {
    position: absolute;
    bottom: 0;
    z-index: 10;
}
.item.pdf .thumbnail.empty .icon {
	background: url('../img/pdf.svg') no-repeat center center;
    background-size: 20%;
}
.item.closed {
    background: #f2f2f2;
}
.item.closed .name,
.item.closed .subtitle,
.item.closed .places,
.item.closed .thumbnail {
    opacity: 0.5;
}
.item.closed .closed_message {
    color: red;
}
.item.closed .details {
    padding: 0 5px 5px 5px;
}
@media only screen and (min-width: 768px) {
    .item {
        width: 50%;
        margin-bottom: 0;
    }
    .item.year {
        grid-column: span 2;
        border-bottom: 0 !important;
    }
}
@media only screen and (min-width: 1024px) {
    .item {
        width: 33.33%;
    }
    .item.year {
        grid-column: span 4;
    }
}
@media only screen and (min-width: 1280px) {
    .item {
        width: 25%;
    }
    .item.year {
        grid-column: span 5;
    }
}