﻿ul, li {
    padding: 0;
    margin: 0;
}

ul.list {
    list-style: none;
}

.list li {
    margin-bottom: 3em;
    height: 44em;
}

.item-link, .m-portlet, .m-portlet__body, .item-content-wrapper {
    height: 100%;
}

.item-link {
    z-index: 10;
    display: block;
    transition: .3s ease-in-out;
}

    .item-link:hover {
        height: 100%;
        text-decoration: none;
    }


.item-content-wrapper {
    display: flex;
    flex-direction: column;
}

.item-img-wrapper {
    max-height: 11em;
    display: flex;
}

    .item-img-wrapper img {
        width: 100%;
        object-fit: contain;
    }

.item-content {
   flex: 1;
   display: flex;
   flex-direction: column;
   justify-content: center;
   overflow: hidden;
}

    .item-content .item-content-title {
        margin-bottom: .6em;
        font-size: 1.1em;
        font-weight: bold;
    }

    .item-content .item-content-text {
        flex: 1;
        text-align: justify;
        margin-bottom: .6em;
        overflow: hidden;
    }

.item-date {
    text-align: center;
    margin: 2em 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.item-content-footer {
    display: flex;
    flex-direction: column;
}

    .item-content-footer div:not(:last-child) {
        margin-right: 1.3em;
    }

    .item-content-footer div i {
        margin-right: .2em;
    }

@media (min-width: 680px) {
    .item-content-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 850px) {
    .item-content-wrapper {
        flex-direction: row;
    }

    .item-img-wrapper {
        flex: 1 1 8.5em;
        max-height: 100%;
        height: 100%;
        order: 1;
    }

    .item-content {
        padding: 0 2.2rem;
        flex: 3 34em;
        order: 2;
    }

        .item-content .item-content-text {
            flex: 0 1 auto;
        }

    .item-date {
        order: 3;
        flex: 0 1 10em;
        margin: 0;
    }

    .list li {
        min-height: 13em !important;
        height: 13em !important;
    }

    .item-content-footer {
        justify-content: flex-start;
    }
}


@media (min-width: 1025px) {
    .item-link:hover {
        transform: scale(1.02);
    }
}

@media (min-width: 1200px) {
    .item-link:hover {
        transform: scale(1.03);
    }
}

@media (min-width: 1400px) {
    .item-link:hover {
        transform: scale(1.06);
    }
}
