.media-container {
    display: flex;
    gap: clamp(10px, 2vw, 32px);
    height: 85vh;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    flex-direction: row;
}

.media-container .item {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: var(--main-bg-color);
    display: flex;
    overflow: visible;
    z-index: 0;
}

.tile-link {
    display: grid;
    grid-template-rows: 1fr auto;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.thumb {
    grid-row: 1 / 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item .label {
    grid-row: 2 / 3;
    margin: 8px 0 0 0;
    padding: 0 12px 0 4px;
    text-align: right;
    color: var(--text-color);
}

.collection-manifest {
    display: none;
    text-align: right;
    padding: 0 12px 0 4px;
}

@media (orientation: portrait) and (max-width: 1180px) {
    .media-container {
        gap: calc(clamp(10px, 2vw, 32px) * 4);
        flex-direction: column;
        height: auto;
    }

    .media-container .item {
        flex: 1 1 auto;
        height: 80vh;
    }

    .collection-manifest {
        display: block;
    }
}