/*FEED*/
.daily-post--feed {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: -1em;
}

.daily-post {
    width: 24%;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 1em;
    display: flex;
}

.dpf-item-img--container {
    max-height: 324px;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.dpf-item-img--container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.dpf-item-details-container {
    padding: 1em;
    min-height: 172px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dpf-item--container {display: flex;flex-direction: column;}

/*MODAL*/

h5.modal-title {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 1em;
    min-height: 76px;
    max-height: 76px;
    overflow: hidden;
}

button.dpf-item-btn {
    padding: 1em 2em;
    font-weight: 700;
    text-transform: uppercase;
    border: 0;
    background: #038602;
    border-radius: 0;
    transition: .3s;
}

button.dpf-item-btn:hover {
    background: #037802;
    transition: .3s;
}

.modal-wrapper{display: none; }

.modal-wrapper{background: #00000057; position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 5;}

.modal-container{background: #fff; margin: auto; width: 65%; display: flex; flex-direction: row}

.modal-image-container {
    display: inline-flex;
    width: 80%;
	max-height: 756px;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-details-container {
    width: 40%;
    padding: 2em;
    border-left: 1px solid #eee;
}

.modal-details-container p {
    max-height: 516px;
    overflow-y: scroll;
    font-size: 14px;
    min-height: 516px;
    margin-bottom: 2em;
}

span.close {
    background: #038602;
    color: #fff;
    padding: 8px 32px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
}

.modal-details-container h4 {
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

span.close:hover {
    background: #037802;
}

@media only screen and (max-width: 1024px){
    .modal-container {
        flex-direction: column;
    }
    
    .modal-container > div {
        width: 100%;
    }
    
    .modal-image-container {
        max-height: 380px;
    }
    
    .modal-details-container p {
        min-height: auto;
    }
}

@media only screen and (max-width: 820px){
    .daily-post--feed {
        flex-wrap: wrap;
        margin: 0;
        justify-content: space-between;
    }
    
    .daily-post--feed > .daily-post {width: 44%;}
}

@media only screen and (max-width: 600px){
    .modal-details-container h4 {
        text-align: center;
    }

    .modal-image-container{
        min-height: 300px;
    }
    
    .modal-details-container p {
        text-align: center;
    }
    
    span.close {
        text-align: center;
    }
    
    .modal-details-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (max-width: 552px){
    .daily-post--feed > .daily-post {width: 100%;}
}