/* general */

ul{
    list-style-position: inside;
}

/* sidebar */

@media screen and (max-width: 1000px) and (min-width: 801px){
    .collapsable_filter{
        width: calc(33% - .3rem);
        height: 100%;
    }
}

@media screen and (max-width: 800px) and (min-width: 401px){
    .collapsable_filter_origin, .collapsable_filter_feature{
        width: calc(50% - .2rem);
        height: 100%;
    }
    
    .collapsable_filter_country{
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 400px){
    .collapsable_filter{
        width: 100%;
    }
}

@media screen and (max-width: 1000px) and (min-width: 801px){
    .collapsable_filter_origin{
		margin-right: .2rem;
    }
    
    .collapsable_filter_feature{
		margin-left: .2rem;
		margin-right: .2rem;
    }
    
    .collapsable_filter_country{
		margin-left: .2rem;
    }
}

@media screen and (max-width: 800px) and (min-width: 401px){
    .collapsable_filter_origin{
		margin-right: .2rem;
    }
    
    .collapsable_filter_feature{
		margin-left: .2rem;
    }
}

/* displayed cases */

.case_before_additional_informations{
    padding-top: .5rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.case_titlebar{
    display: flex;
    flex-direction: row;
}

.case_titlebar_title{
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: start;
}

.case_titlebar_right_part{
    flex-shrink: 0;
    margin-left: .5rem;
}

.case_description{
    margin-top: .5rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.case_description p{
    margin-bottom: .5rem;
}

.case_sources{
    margin-top: .5rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.case_sources_content{
    font-size: 0.85rem;
}

.case_pictures{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .5rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.case_pictures figure{
    margin: 0;
}

.case_pictures figure a img{
    display: block;
    width: auto;
    max-height: 30vh;
    margin: .5rem;
    object-fit: contain;
}

.case_pictures figure a:has(+ figcaption) img{
    margin-bottom: 0;
}

.case_pictures figure figcaption{
    max-width: 200px;
    margin-top: 0;
    margin-left: .5rem;
    margin-right: .5rem;
    text-align: center;
}

.case_additional_informations{
    display: flex;
    flex-direction: row;
    margin-top: .5rem;
    padding-top: .25rem;
    padding-left: .5rem;
    padding-right: .5rem;
    border-top: 1px solid var(--light-border-color);
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.2rem;
    text-wrap: balance;
}

.case_additional_information{   
    padding-bottom: .5rem;
}

.case_additional_information:not(:last-of-type){
    padding-right: .5rem;
}

.case_additional_information:not(:first-of-type){
    padding-left: .5rem;
}

.case_additional_information_title{
    margin-bottom: .25rem;
    font-style: italic;
}

.case_additional_information_origin{
    flex-shrink: 0;
    width: 25%;
}

.case_additional_information_feature{
    flex-shrink: 0;
    width: 25%;
}

.case_additional_information_country{
    flex-shrink: 0;
    width: 25%;
}

.case_additional_information_last_updated{
    flex-grow: 1;
}
