@import url("global_vars.css");

@media screen and (orientation: landscape){
    .owl_box{
        height: calc(var(--box_dimensions) / 2) !important;
    }


    .owl_picture_box{
        width:50%;
 
    }
    .owl_descrition{
    width:50%;
    margin-left: 50% !important;
    bottom: none !important;
    border-radius: 0;
    background: none;
    }
    .owl_datebox{
        height: 3vw;
    width: 25%;
    }
    .owl_text_date{
        margin-top: 1.5vh;
        font-size: 1vw;
    }

    .owl_text{
        font-size: 1.3vw;
    }
    .owl_text_excerpt{
        font-size: 1vw;
    }
}





@media screen and (orientation: portrait) {

    .owl_box{
        height:500px !important;
    }


    .owl_picture_box{
        width:100%;
 
    }
    .owl_descrition{
    width:100%;
    margin-left: 0% !important;
    bottom: 10px !important;
    border-radius: 0.5vw;
    background: rgba(0, 0, 0, 0.8);;
    }

    .owl_datebox{
        height: 12vw;
    width: 35%;
    }
    .owl_text_date{
        margin-top: 0.75vh;
        font-size: 5vw;
    }

    .owl_text{
        font-size:25px;
    }
    .owl_text_excerpt{
        font-size:20px;
    }

}

.owl_box{
    margin-top: 1vh;
    width: 100%;

    display: flex;
    justify-content: left;
    align-items: flex-start;
    overflow: hidden;
    background:rgba(29, 29, 29, 0.8);
    border-radius: 0.5vw;
    box-shadow: 10px 7px 0px 3px #CD5C5C;
    margin-bottom: 10px;
}



.owl_picture_box{
    float: left;
    height:100%;

}

.owl_picture{
    object-fit: cover !important;
}

.owl_descrition{
    position: absolute;
}

.owl_textbox{
    position: relative;
    width: 100%;
    /* margin-left: 50%; */
    /* padding: -100px; */
    background: linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0) 99%);
    display: block;
    word-break: normal;
    border-radius: 0 0.5vw 0 0;
}

.owl_excerptbox{
    position: relative;
    width: 100%;
    /* padding: -100px; */
    /* margin-left: 50%; */
    display: block;
    word-break: normal;
    margin-top: 0vw;
}

.owl_datebox{
    position: absolute;
    /* padding: -100px; */
    background: linear-gradient(rgba(234, 26, 67, 0.5), rgba(234, 26, 67, 0) 99%);
    display: block;
    word-break: break-all;
    border-radius: 0.5vw 0 0 0;
}

.owl_text{
    color: white;
    margin-top: 0;
    margin-left: 0.3vw;
}

.owl_text_date{
    color: white;    
    margin-bottom: 0;
    margin-left: 0.3vw;
    margin-right: 0.3vw;
}

.owl_text_excerpt{
    color: white;
    margin-top: 0.0vh;
    margin-bottom: 0;
    margin-left: 0.3vw;
    margin-right: 0.3vw;
}

.owl_datum{
    position: absolute;
}