/************************************************************************************
smaller than 980
*************************************************************************************/

@media screen and (max-width: 960px) {
    .wrap {
        box-sizing: border-box;
        width: auto;
    }
    content#layout-default,
    content#layout-ipad,
    .audio-player-wrapper,
    header#default {
        display: none;
    }
    header#responsive,
    content#layout-mobile{
        display: block;
    }
    content#layout-mobile section.bl1 figure.ilustra-g1 figcaption,
    content#layout-mobile section.bl1 figure.ilustra-g2 figcaption {
        width: 40%;
    }
    content#layout-mobile section.bl .img-fixed p {
        margin-bottom: 10px;
    }

    /* colorbox responsive */
    #colorbox, #cboxOverlay, #cboxWrapper {
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
    }
    #cboxOverlay {
        background-color: rgba(0, 0, 0, 1);
    }
    #cboxContent {
        height: 100% !important;
        width: 100% !important;
        position: absolute;
    }
    #cboxLoadedContent {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .cboxPhoto {
        border: medium none !important;
        height: 100% !important;
        margin: 0 !important;
        width: auto !important;
        padding: 0 !important;
    }
    .eventos .cboxPhoto {
        height: auto !important;
        width: 100% !important;
    }
    #cboxPrevious {
        left: 16px;
    }
    #cboxNext {
        right: 16px;
    }
    #cboxClose {
        right: 16px;
        top: 16px;
    }
}

@media screen and (max-width: 650px) {
    content#layout-mobile section.bl1 figure figcaption p br {
        display: none;
    }
    content#layout-mobile section.bl .img-fixed p {
        font-size: 100%;
    }
}

@media screen and (max-width: 340px) {
    content#layout-mobile section.bl1 figure.ilustra-g1 figcaption,
    content#layout-mobile section.bl1 figure.ilustra-g2 figcaption {
        top: 45px;
    }
    content#layout-mobile section.bl1 figure.ilustra-g1 figcaption p,
    content#layout-mobile section.bl1 figure.ilustra-g2 figcaption p {
        font-size: 100%;
    }
}
