/*
Theme Name: ecasals
Author: Nico
Author URI: https://sites.ecasals.net/
Description: Història de l'art
Version: 1.0
Tested upto: 5.4
*/
:root
{
    --color1: #43AF95;
    --color2: #CBE4DD;
}
@font-face 
{
    font-family: 'Nunito Sans Light';
    font-style: normal;
    src: url(/wp-content/themes/ecasals/assets/fonts/NunitoSans-Light.ttf) format('truetype');
}
@font-face 
{
    font-family: 'Nunito Sans Regular';
    font-style: normal;
    src: url(/wp-content/themes/ecasals/assets/fonts/NunitoSans-Regular.ttf) format('truetype');
}
@font-face 
{
    font-family: 'Nunito Sans Bold';
    font-style: normal;
    src: url(/wp-content/themes/ecasals/assets/fonts/NunitoSans-Bold.ttf) format('truetype');
}
html,body
{
    height: 100%;
    margin: 0;
}
body
{
    font-family: 'Nunito Sans Regular';
    font-size: 16px;
    line-height: 22px;
    /* font-weight: 600; */
}
#page 
{
    display: flex;
    flex-flow: column;
    height: 100%;
}
a, a:hover, a:visited
{
    text-decoration: none;
    color: black;
}
.text-big
{
    font-family: 'Nunito Sans Bold';
    font-size: 29px;
    line-height: 30px;
}
.text-medium
{
    font-family: 'Nunito Sans Bold';
    font-size: 20px;
    /* font-weight: 700; */
    line-height: 27px;
}
.text-light
{
    font-family: 'Nunito Sans Light';
    /* font-weight: 300; */
}
.text-small
{
    font-family: 'Nunito Sans Light';
    font-size: 14px;
    /* font-weight: 300; */
    line-height: 19px;
}
.text-very-small
{
    font-family: 'Nunito Sans Light';
    font-size: 9.5px;
    /* font-weight: 300; */
    line-height: 14.5px;
}
.link-container
{
    background-color: rgb(0, 0, 0, 0.15);
    width: 38px;
    height: 38px;
    cursor: pointer;
}
.arrow-left 
{
    width: 12px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    margin-top: 12px;
    margin-left: 15px;
}
.arrow-right 
{
    width: 12px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin-top: 12px;
    margin-left: 10px;
}
.barres-menu
{
    display: none;
}
#header
{
    display: flex;
    /* De moment no hi ha usuaris 
    justify-content: space-between; */
    justify-content: start;
    height: 56px;
    color: white;
    background-color: var(--color1);
    align-items: center;
}
#header > *
{
    margin: 0 9px;
}
#headerimg
{
    width: 75%;
}
#header-user
{
    display: none; /* De moment no hi ha usuaris */
    padding: 18px 40px;
    border: 2px solid white;
    border-top: 0;
    border-bottom: 0;
}
#header-quadres
{
    display: none; /* De moment no hi ha usuaris */
    width: 29px;
    padding: 10.5px 0;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}
#header-quadres:hover
{
    -webkit-filter: none;
    filter: none;
}
#content
{
    display: flex;
    height: 100%;
    overflow: hidden;
}
#sidebar
{
    display: flex;
    flex-direction: column;
    width: 34%;
    background-color: var(--color2);
}
#main
{
    width: 66%;
    padding: 20px 40px 20px 60px;
    overflow-x: hidden;
    overflow-y: auto;
}
#main .posts-list
{
    padding: 20px 0 0 0;
}
#main .posts-list li
{
    display: inline-block;
    width: 126px;
    vertical-align: top;
    padding: 0 20px 0 0;
    list-style: none;
}
#main .posts-list li figure
{
    text-align: left;
}
#main .posts-list li figure img
{
    width: 126px;
    height: 84px;
}
#main .posts-list li figure figcaption
{
    width: 126px;
    text-align: center;
}
#main .descripcionPost
{
    text-align: justify;
    margin-top: 20px;
}
#main .post-content a
{
    text-decoration: underline;
}
#main .arrow-back-container
{
    display: none;
}
#main .gallery
{
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
}
#main .gallery figure 
{
    display: inline-block;
    margin: 0;
}
#main .gallery figure img
{
    object-fit: contain;
    height: 243px;
    width: 100%;
}
#sidebar .close-container
{
    display: none;
}
#sidebar .categories-paraules
{
    font-family: 'Nunito Sans Regular';
    /* font-weight: 600; */
    text-align: center;
    white-space: wrap;
}
#sidebar .categories-paraules a:hover, #sidebar .categories-paraules a.active
{
    font-family: 'Nunito Sans Bold';
}
#sidebar .categories-paraules .text-big
{
    margin: 20px 0;
}
#sidebar .menu-categories
{
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    margin: 0px;
    padding: 0px;
}
#sidebar .menu-categories::-webkit-scrollbar
{
    width: 10px;
    background-color: transparent;
}
#sidebar .menu-categories::-webkit-scrollbar-thumb
{
    background-color: var(--color1);
    border-radius: 10px;
}
#sidebar .menu-categories .menu-posts 
{
    margin: 0px;
    padding: 0px;
}
#sidebar .menu-categories > li 
{
    list-style: none;
    border-bottom: 1px solid #CBCBCB;
   
}
#sidebar .menu-categories li, #sidebar .menu-categories li div
{
    display: flex;
    flex-direction: column;
}
#sidebar .menu-categories li div a
{
    margin-left: -30px;
    padding-left: 30px;
    z-index: 1;
}
#sidebar .menu-categories li .menu-posts li, #sidebar .menu-categories li div
{
    height: 40px; 
    padding-left: 60px;
    justify-content: center;
}
#sidebar .menu-categories li .menu-posts li
{
    border-top: 1px solid white;
}
#sidebar .menu-categories li .menu-posts li:first-child
{
    border-top: 0px;
}
#sidebar .menu-categories > li > div:before
{
    content: '';
    width: 0;
    margin-left: -30px;
    margin-bottom: -15px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid black;
}
#sidebar .menu-categories li:not([class*="active"]) .menu-posts 
{
    display: none;
}
#sidebar .menu-categories li:not([class*="active"]) div:before
{
    transform: rotate(-90deg);
}
#sidebar .menu-categories li.active:not([class*="single"]) > div, #sidebar .menu-categories .menu-posts li.active
{
    background-color: white;    
}
#sidebar .searchform input#s
{
    width: 90%;
    height: 40px;
}
#sidebar > div
{
    width: 86%;
    margin: 20px 7%; 
}
#sidebar form > div 
{
    display: flex;
    width: 86%;
    margin: 20px 7%; 
    height: 40px;
    color: black;
    background-color: white;
    align-items: center;
}
#sidebar form #searchsubmit 
{
    text-indent: -999px;
    overflow: hidden;
    width: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent url("./assets/images/search.svg") no-repeat center;
    cursor: pointer;
    opacity: 0.7;
}
#sidebar form #s 
{
    border: none;
    background: transparent;
    margin: 0;
    padding: 7px 8px;
    color: inherit;
    border: 0;
    border-radius: inherit;
}
#sidebar form #searchsubmit:hover 
{
    opacity: 1;
}
#sidebar form #searchsubmit:focus, #sidebar form #s:focus 
{
    box-shadow: none;
    outline: none;
}
#sidebar .search-message
{
    height: 40px;
    padding: 20px 0;
}
#modal 
{
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}
#modal .modal-content 
{
    display: flex;
    flex-direction: column;
    width: 80%;
    background-color: white;
    margin: auto;
    border: 1px solid #888;
}
#modal .modal-content .close 
{
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
#modal .modal-content .modal-header .close:hover, #modal .modal-content .modal-header .close:focus 
{
    color: #000;
    cursor: pointer;
}
#modal .modal-content figcaption
{
    display: flex;
    justify-content: space-between;
    white-space: wrap;
    padding-right: 20px;
}
#modal .modal-content .modal-mobile-icones
{
    display: none;
    position: fixed;
    width: 80%;
    top: 42%;
    justify-content: space-between;
}
#modal .modal-content .modal-mobile-icones .link-container
{
    margin: 0 10px;
}
#modal .modal-content .modal-header, #modal .modal-content .modal-footer
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
#modal .modal-content .modal-footer .modal-footer-icones
{
    display: flex;
}
#modal .modal-content .modal-footer .modal-footer-icones .icona-activa
{
    background-color: var(--color1);
    width: 38px;
    height: 38px;
    margin: 0 5px;
}
#modal-image
{
    text-align: center;
}
#modal-image img
{
    width: 100%;
    object-fit: contain;
}
#footer
{
    display: flex;
    flex-direction: column;
    background-color: var(--color1);
    color: white;
}
#footer .footer-img
{
    display: flex;
    justify-content: space-between;
    margin: 20px 20px 25px 20px;
}
#footer .footer-img .footer-quadre-segells
{
    display: flex;
}
#footer .footer-img .footer-quadre-segells div
{
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}
#footer hr
{
    margin: 0 20px;
}
#footer .footer-text
{
    display: flex;
    justify-content: space-between;
    margin: 10px 20px;
}
#footer .footer-text a, #footer .footer-text a:hover, #footer .footer-text a:visited 
{
    font-family: 'Nunito Sans Bold';
    /* font-weight: 700; */
    color: white;
}
#footer .footer-img .footer-quadre-segells .footer-quadre-segells-row
{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
}
#footer .footer-img .footer-quadre-segells .footer-quadre-segells-row a 
{
    margin: 0 20px 0 0;
}
@media (max-width: 565px) 
{
    html,body
    {
        height: unset;
    }
    .barres-menu
    {
        display: block;
    }
    #header .link-container .arrow-left 
    {
        display: none;
    }
    #content .posts-list li
    {
        width: 50%;
        padding: 0;
    }
    #sidebar
    {
        display: none;
        position: absolute;
        width: 85%;
        overflow: hidden;
    }
    #sidebar .close-container
    {
        display: block;
        text-align: right;
    }
    #main 
    {
        overflow: hidden;
        width: 80%;
        padding: 20px 10%;
    }
    #main .arrow-back-container
    {
        display: flex;
        justify-content: end;
    }
    #modal .modal-content .modal-mobile-icones
    {
        display: flex;
    }
    #modal .modal-content .modal-footer .modal-footer-icones 
    {
        display: none;
    }
    #modal .modal-content figcaption 
    {
        padding-right: 0
    }
    #modal-image 
    {
        overflow-x: auto;
    }
    #modal-image img 
    {
        width: unset;
        object-fit: unset;
    }
}