.media-container {
    width: 100%;
    height: 100%;
    padding: 1rem;

    display: flex;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
}

.media-container > .media-utils {
    width: 100%;
    height: 32px;
    margin-bottom: 1rem;

    display: flex;
    flex-direction: row;
    /*justify-content: space-between; Should be space-between when download all media link is implemented*/
    justify-content: flex-start;
    align-items: center;
}

.media-utils > .search {
    width: 600px;
    margin: 0 50px 0 0 !important;
}

.media-utils .back-button {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.back-button img {
    height: 100%;
}

.media-utils .back-button:hover {
    cursor: pointer;
}

.media-utils > .download-link {
    color: var(--link);
    white-space: nowrap;

    cursor: pointer;
}

.media-utils > .download-link.underline {
    text-decoration: none;
    position: relative;
}

.media-utils > .download-link.underline::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;

    width: 100%;
    height: 1px;

    background: var(--link);
}

.media-items span.text {
    align-self: center;
    margin: 0 auto;
}

.hidden-media-item {
    display: none;
}

.media-container > .media-items {
    width: 100%;
    height: calc(100% - 32px - 4rem);

    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;

    overflow-y: scroll;
}

.media-container .media-items>.media-item {
    width: 200px;
    max-height: 225px;
    margin: 0 1rem 1rem 0;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 2px 20px  rgba(142,156,170,0.2);
}

.media-items .media-item:hover {
    cursor: pointer;
}

.media-item .media-img-wrap {
    background-color: white;
    border-radius: 0.5rem;
    width: inherit;
    height: 75px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.media-item .media-img {
    max-width: 190px;
    max-height: 70px;
}

.media-item .media-info {
    max-height: 150px;
    width: 200px;
    padding: 0.5rem;

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-info .media-info-primary {
    width: calc(200px - 1rem);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.media-info .media-info-secondary {
    width: calc(200px - 1rem);
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

.media-info .media-info-tertiary {
    width: calc(200px - 1rem);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.media-link {
    height: 16px;
    margin-top: 4px;
}

.media-container .link {
    color: var(--link);
    text-decoration: none;
}

.media-info .media-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 1rem;
}

.media-info .media-group, .media-info .media-size {
    font-size: 0.9rem;
}