/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #999999;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #999;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


html {
    width: 100%;
    min-height: 100%;
    margin: auto;
    position: relative;
    font-family: 'Catamaran', serif;
    color: #999999;
    font-size: 16px;

}

body {
    min-height: 100%;
    transition: background-color .5s;
    background: white;
}


.no-desktop, .bio_pdf_short.no-desktop, .bio_pdf_long.no-desktop {
    display: none;
}

/*
 * scommentare la direttiva quando si vuole nascondere log in e lingua
 */
.nascondi {
    display: none !important;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    float: left;
    padding: 10px;
    font-size: 0.9em;
}

li a {
    display: block;
    color: #999999;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}

a {
    color: #999999;
    text-decoration: none;
}

.footer_hr {
    width: 100%
}

.login_submit {
    margin: 12px;
}

.sottotitolo {
    width: 100%;
    font-size: 1.5em;
    text-align: center;
    font-weight: lighter;
    margin-top: 20px;
    margin-bottom: 50px;

}

.opere_container, .dipinti_container, .press_container, .eventi_container, .flex_contatti {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

}

.flex_contatti {
    width: 70%;
    margin: auto;
    margin-bottom: 20px;
}

.press_container, .eventi_container {
    margin-top: 20px;
}

.press_testo, .evento_testo {
    color: #999999;
    text-decoration: none;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 5px;
}

.dipinto, .press, .evento {
    width: 23.5%;
    height: 300px;
    margin-bottom: 50px;
    text-decoration: none;
}

.press {
    margin-bottom: 80px;
}

.dipinto_img, .press_img, .evento_img {
    width: 100%;
    background-size: contain;
    height: 300px;
    background-repeat: no-repeat;
    background-position: center;
}

.opera {
    width: 48.5%;
    height: 400px;
    margin-bottom: 70px;
    text-decoration: none;
}

.opera_testo {
    text-align: center;
    color: #999999;
    padding-top: 20px;
    font-size: 1.2em
}

.opera_img {
    background-size: contain;
    width: 100%;
    height: 400px;
    background-repeat: no-repeat;
    background-position: center;
}

.img_index {
    width: 100%;
    height: 400px;
    background-size: contain;
    margin-top: 100px;
    margin-bottom: 150px;
    background-repeat: no-repeat;
    background-position: center;
}

.opere_layout, .dipinti_layout, .opera_layout, .bio_container,
.press_layout, .evento_layout, .evento_layout, .contatti_layout,
.carrello_layout {
    width: 94%;
    margin: auto;
    min-height: 600px;
}

.main_layout {
    background: white;
}

.filter {
    width: 200px;
}

.seleziona_anno {
    text-align: center;
    margin-top: 15px;
}

.seleziona_anno_opere {
    text-align: center;
    margin-top: 15px;
}

.seleziona_vendita {
    text-align: center;
}

.filtri {
    text-align: center;
    margin: 18px;
}

.filtri div {
    display: inline;
    margin: 10px;
}

.bio_immagine {
    float: right;
    width: 35%;
    height: 300px;
    margin-bottom: 50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.bio_nome {
    font-size: 1.2em;
}

.bio_dettaglio {
    float: right;
    width: 48.5%;
    margin-left: 3%;
}

.bio_pdf_long, .bio_pdf_short {

    display: inline-block;
    width: 230px;
    background-color: #999999;
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
    height: 25px;
    font-size: 0.8em;
    line-height: 26px;
    padding: 2px;
    margin-left: 5px;
}

.pulsante_indietro, .contatti_submit, .remove_cart_submit {
    margin: auto;
    width: 100px;
    background-color: #999999;
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
    height: 25px;
    font-size: 0.8em;
    line-height: 26px;
}

.pulsante_indietro_href {
    text-decoration: none;
}

.contatti_submit {
    border: 0;
    margin-bottom: 50px;
    margin-top: 20px;
}

.remove_cart_submit {
    border: 0;
    margin-bottom: 50px;
    margin-top: 20px;
    background-image: url("/site/img/cancella.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pulsante_aggiungi_carrello {
    width: 150px;
    background-color: #999999;
    color: #ffffff;
    text-align: center;
    margin: auto;
    margin-top: 20px;
    height: 25px;
    font-size: 0.8em;
    line-height: 26px;
    padding: 2px;
    text-decoration: none;
    display: block;

}

.pulsante_contatti_inline {
    display: inline-block;
    width: 120px;
    background-color: #999999;
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
    height: 25px;
    font-size: 0.8em;
    line-height: 26px;
    padding: 2px;
    margin-left: 5px;
}

.social_opera {
    margin-top: 50px;
}

.opera_immagine {
    height: 500px;
    margin-bottom: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.opera_dettaglio_pagina {
    /*    column-count: 2;
        column-gap:50px;*/
    margin-bottom: 50px;
    margin-top: 50px;
}

.opera_dettaglio_pagina .no_a_capo {
    width: 46%;
    float: left;
}

.opera_testo_dettaglio {
    width: 46%;
    padding-top: 20px;
    float: right;
}

.opera_dettaglio_intro {
    /* margin-top:150px; */
}

.opera_dettaglio_testo {
    margin-top: 20px;
}

.opera_dettaglio_prezzo {
    margin-top: 20px;
    font-size: 1.2em;
}

select {
    background-color: white;
    width: 80px;;
    box-sizing: border-box;
    text-align-all: center;
    text-align-last: center;
    margin: auto;
}

option {
    backgroundo-color: white;
    text-align: center;
}

#header {

    display: flex;
    justify-content: space-between;
}

#footer, #header {
    width: 94%;
    margin: auto;
}

.header_dx {
    /*width:200px;*/
    text-align: right;
    padding-right: 15px;
    margin-top: 35px;
    position: relative;
}

.header_dx > div {
    display: inline-block;
    margin-left: 20px;
}

.freccia_giu, .freccia_su {
    width: 10px;
    height: 5px;
    background: url("../img/down.png");
    background-size: contain;
    display: inline-block;
    margin-bottom: 3px;
    margin-left: 5px;
    background-repeat: no-repeat;
}

.freccia_su {
    background-image: url("../img/up.png");
}

.footer_links {
    float: left;
}

.footer_social {
    float: right;
    margin-right: 50px;
}

.logo_social {
    width: 25px;
    height: 25px;
    float: left;
    margin-top: 5px;
    background-size: contain;
    margin-left: 10px;

}

.logo_social_body {
    width: 25px;
    height: 25px;
    float: left;
    margin-top: 5px;
    background-size: contain;
    margin-right: 10px;

}

.hamburger_div {
    margin-top: 20px;
    float: left;
}

/*
.hamburger {
    padding-right: 145px;
}
*/

.title {
    padding-top: 15px;
    font-size: 2.5em;
    text-align: center;
    font-weight: lighter;
    margin-left: -50px;
}

.title img {
    max-height: 70px;
}

.evento_dettaglio {
    column-count: 2;
    column-gap: 50px;
    margin-bottom: 50px;
}

.evento_dettaglio_gallery {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.evento_dettaglio_gallery_element {
    width: 280px;
    min-width: 280px;
    height: 150px;
    margin-top: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.opera_dettaglio_pagina .evento_dettaglio_gallery_element {
    width: auto;
    min-width: auto;
}

.no_a_capo {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.evento_dettaglio_immagine {
    width: 100%;
    height: 400px;
    /*float: left;*/
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.evento_dettaglio_testo {
    display: inline-block;
    /* width: 50%;
     float: left;*/
}


.form_contatti {
    text-align: center;
}

.carrello_info {
    text-align: left;
    padding-left: 100px;
}

.carrello_nome_opera {
    text-align: left;
    padding-left: 10px;
}

.carrello_img {
    width: 200px;
}

.small_text {
    text-align: center;
    margin-bottom: 20px;
}

.contatti_textarea {
    width: 70%;
    height: 250px;
}

.table_carrello {
    width: 100%;

}

.carrello_row {
    border-top: 1px solid #999999
}

.carrello_header th {
    font-size: 1.1em;
    font-weight: lighter;
    padding-bottom: 20px;
}

.img_carrello {
    width: 150px;
    padding: 10px;
}

.img_rimuovi {
    width: 20px;
}

.carrello_rimuovi, .carrello_prezzo {
    text-align: center;
    width: 150px;
}

.carrello_footer {
    background-color: #999;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    text-align: right;
}

.carrello_totale {
    color: #2a5d4a;
    float: right;
    font-size: 1.2em;
    margin-top: 20px;
}

.totale_euro {
    width: 150px;
    display: inline-block;
    text-align: center;
}

.carrello_pulsante_acquisto {
    float: right;
    margin-top: 20px;
    width: 300px;
    background-color: #999;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

.a_menu, .a_menu:focus, .a_menu:visited,
button, button:focus, button:visited {
    outline: none;
}

.press_img {
    position: relative;
}

.press_img img {
    position: absolute;
    display: block;
    height: 60px;
    width: 60px;
    left: 50%;
    top: 50%;
    margin: -30px 0 0 -30px;
}

.cart img {
    width: 20px;
}

.nav_list {
    float: none;
    width: 80%;
    margin: auto;
}

.selected {
    font-weight: bold;
}

.mm-menu {
    background-color: #999;
    color: #fff;
    font-size: 1.1em;
}

.mm-listview > li:not(.mm-divider):after {
    border: 1px solid #fff;
}


.lg-toolbar {
    background-color: transparent;
}

.lg-toolbar > *, #lg-counter {
    display: none;
}

.lg-toolbar .lg-close {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.45);
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content, .modal-content_full {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.modal-content_full {
    width: 40%;
    margin-top: 250px;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.login, .lingua {
    cursor: pointer;
}

#login, #lingue {
    position: absolute;
    background-color: white;
    border: 1px solid #999999;
    padding: 20px;
    top: 30px;
}

#login {
    right: 130px;
    width: 325px;
    display: none;
}

#lingue {
    right: 10px;
    display: none;
}

#lingue li {
    float: none;
    text-align: center;
}

.login_control {
    padding-bottom: 20px;
}

.login_control input {
    margin-left: 10px;
}

.profile {
    float: left;
}

#login .login_control:last-of-type {
    padding-bottom: 0;
}

.fab {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: url("/site/img/up.png") white center no-repeat;
    background-size: 60%;
    cursor: pointer;
}

.evento_dettaglio_gallery_button{
    display: none;
}
.noteSpedizioni{
    padding: 15px;
    font-size: 12px;
    max-width: 400px;
    display: inline-block;
}

@media only screen and (max-width: 480px) {
    body {
        min-height: 100px;
    }

    #login {
        right: 10px;
        width: 325px;
        display: none;
    }


    .no-desktop {
        display: inherit;
    }

    .bio_pdf_long.no-desktop, .bio_pdf_short.no-desktop {
        display: inline-block;
    }

    .title {
        font-size: 1.8em;
        padding-top: 25px;
        margin-left: 0px;
    }

    .dipinto_mobile {
        display: contents;
        margin-bottom: 20px;
    }

    .seleziona_anno_opere {
        text-align: center;
        width: 100%;
        margin-top: 15px;
        font-size: 12px;
    }

    .seleziona_anno {
        text-align: right;
        width: 100%;
        margin-top: 15px;
        font-size: 12px;
    }

    .seleziona_vendita {
        text-align: right;
        width: 100%;
        font-size: 12px;
    }

    .filter_anno, .filter_order, .filter_vendita {
        margin-left: 5px;
        margin-right: 5px;
    }

    .filtri div {
        display: block;
        margin: 10px;
    }

    .title img {
        width: 100%;
    }

    .hamburger {
        padding-right: 30px;
    }

    .header_dx {
        /*width:60px;*/
        position: relative;
    }

    .img_index {
        margin-top: 20px;
        /*min-height: 100%;
        height:700px;
        background-size: cover;*/
        background-position: center;
        margin-bottom: 0;
    }

    .sottotitolo {
        margin-top: 10px;
        margin-bottom: 10px;

    }

    .opera_dettaglio_pagina {
        column-count: 1;
        font-size: 1.2em;
        margin-bottom: 0px;
        margin-top: 0px
    }

    .opera_dettaglio_pagina .no_a_capo {
        width: auto;
        float: none;
    }

    .opera_img {
        background-size: cover;
        background-position: center;
        width: 94%;
        height: 300px;
        position: relative;
        margin: 0 auto 10px;
    }

    .opera_immagine {
        float: none;
        width: 100%;
        height: 300px;
        margin-top: 30px;
        background-size: contain;
    }

    .opera_testo_dettaglio {
        text-align: center;
        float: none;
        width: 100%;
        font-size: 1.1em;
    }

    .opera_dettaglio_testo {
        text-align: left;
        margin-left: 30px;
        margin-right: 30px;
    }

    .opera_dettaglio_intro {
        margin-top: 30px;
    }

    .opera {
        position: relative
    }

    .opera_testo {
        position: absolute;
        top: 50%;
        left: 50%;
        color: #fff;
        font-size: 1.9em;
        font-weight: lighter;
        transform: translate(-50%, -50%);
    }

    .pulsante_indietro, .pulsante_aggiungi_carrello, .pulsante_contatti_inline, .contatti_submit, .remove_cart_submit {
        height: 30px;
        width: 150px;
        font-size: 1.2em;
        line-height: 31px;
        text-decoration: none;
    }

    .remove_cart_submit {
        background-color: #ffffff;
        width: unset;
    }


    .pulsante_aggiungi_carrello {
        width: 250px;
        font-size: unset;
        margin: auto;
        margin-bottom: 20px;
    }

    .dipinto_img {
        width: 94%;
        margin: auto;
        margin-bottom: 15px;
    }

    .opere_layout, .dipinti_layout {
        width: 100%;
    }

    .opere_container, .dipinti_container, .eventi_container, .press_container {
        display: block;
        margin: 0;
        margin-top: 15px;
    }

    hr {
        display: none;
    }

    .no-mobile {
        display: none;
    }

    #header .no-mobile {
        display: none;
    }

    .social_opera {
        margin-bottom: 30px;
        margin-top: 30px;
        text-align: center;
    }

    .logo_social_body {
        float: none;
        display: inline-block;
        margin-right: 20px;
    }

    .social_opera .logo_social_body:last-of-type {
        margin-right: 0;
    }

    .bio_immagine {
        float: none;
        width: 94%;
        margin: auto;
        height: 300px;
    }

    .bio_dettaglio {
        float: none;
        width: 94%;
    }

    .bio_pdf_long, .bio_pdf_short {
        text-decoration: none;
        width: 43%;
        float: left;
    }

    .bio_pdf_long {
        float: right;
        margin-right: 10px;
    }

    .bio_pdf_short {
        margin-left: 10px;
    }

    .evento_img {
        margin-top: 20px;
    }

    .evento_testo {
        font-size: 1.2em;
    }

    .evento_dettaglio {
        column-count: 1;
        font-size: 1.2em;
    }

    .press_img {
        margin-top: 20px;
    }

    .carrello_header {
        display: none;
    }

    .carrello_row {
        border: 0;
    }

    .carrello_rimuovi {
        width: 25px;
    }

    .carrello_prezzo {
        width: 65px;
    }

    .carrello_img {
        width: 100px;
    }

    .img_carrello {
        width: 100px;
    }

    .carrello_totale {
        font-size: 1.3em;
    }

    .carrello_pulsante_acquisto {
        float: none;
        margin: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .evento_dettaglio_gallery {
        display: none;
    }

    .flex_contatti {
        margin-bottom: 0;
    }

    .small_text {
        width: 100%;
    }

    .evento_dettaglio_gallery_button{
        display: block;
        text-align: right;
        margin-right: 20px;
    }
}

@media only screen and (max-width: 768px) and (min-width: 481px) {
    body {
        min-height: 100px;
    }

    .no-desktop, a .no-desktop {
        display: inherit;
    }

    .bio_pdf_long.no-desktop, .bio_pdf_short.no-desktop {
        display: inline-block;
    }

    .title {
        font-size: 1.8em;
    }

    .hamburger {
        padding-right: 30px;
    }

    .header_dx {
        width: 60px;
        position: relative;
    }

    .img_index {
        margin-top: 20px;
        min-height: 100%;
        height: 700px;
        background-size: cover;
        background-position: center;
        margin-bottom: 0;
    }

    .sottotitolo {
        margin-top: 10px;
        margin-bottom: 10px;

    }

    .opera_img {
        background-size: cover;
        background-position: center;
        width: 94%;
        height: 300px;
        position: relative;
        margin: 0 auto 10px;
    }

    .opera_immagine {
        float: none;
        width: 100%;
        height: 300px;
        background-size: contain;
    }

    .opera_testo_dettaglio {
        text-align: center;
        /*float:none;
        width: 100%;*/
        float: left;
        width: 46%;
        font-size: 1.1em;
    }

    .opera_dettaglio_pagina .evento_dettaglio_gallery_element {
        width: auto;
        min-width: auto;
    }

    .opera_dettaglio_testo {
        text-align: left;
        margin-left: 30px;
        margin-right: 30px;
    }

    .opera_dettaglio_intro {
        margin-top: 30px;
    }

    .opera {
        position: relative
    }

    .opera_testo {
        position: absolute;
        top: 50%;
        left: 50%;
        color: #fff;
        font-size: 1.9em;
        font-weight: lighter;
        transform: translate(-50%, -50%);
    }

    .dipinto, .press {
        width: 49.5%;
        margin-bottom: 30px;
    }

    .pulsante_indietro, .pulsante_aggiungi_carrello, .pulsante_contatti_inline, .contatti_submit, .remove_cart_submit {
        height: 30px;
        width: 150px;
        font-size: 1.2em;
        line-height: 31px;
        text-decoration: none;
    }

    .pulsante_aggiungi_carrello {
        width: 250px;
        margin: auto;
        margin-top: 20px;
    }

    .dipinto_img {
        width: 94%;
        margin: auto;
        margin-bottom: 15px;
    }

    .opere_layout, .dipinti_layout {
        width: 100%;
    }

    .opere_container, .eventi_container {
        display: block;
        margin: 0;
        margin-top: 15px;
    }

    hr {
        display: none;
    }

    .no-mobile {
        display: none;
    }

    #header .no-mobile {
        display: none;
    }

    .social_opera {
        margin-bottom: 30px;
        margin-top: 30px;
        text-align: center;
    }

    .logo_social_body {
        float: none;
        display: inline-block;
        margin-right: 20px;
    }

    .social_opera .logo_social_body:last-of-type {
        margin-right: 0;
    }

    .bio_immagine {
        float: none;
        width: 94%;
        margin: auto;
        height: 300px;
    }

    .bio_dettaglio {
        float: none;
        width: 94%;
    }

    .bio_pdf_long, .bio_pdf_short {
        text-decoration: none;
        width: 45%;
        float: left;
    }

    .bio_pdf_long {
        float: right;
        margin-right: 10px;
    }

    .bio_pdf_short {
        margin-left: 10px;
    }

    .evento_img {
        margin-top: 20px;
    }

    .evento_testo {
        font-size: 1.2em;
    }

    .evento_dettaglio {
        column-count: 1;
        font-size: 1.2em;
    }

    .press_img {
        margin-top: 20px;
    }

    .carrello_header {
        display: none;
    }

    .carrello_row {
        border: 0;
    }

    .carrello_rimuovi {
        width: 45px;
    }

    .carrello_prezzo {
        width: 85px;
    }

    .carrello_img {
        width: 150px;
    }

    .img_carrello {
        width: 150px;
    }

    .carrello_totale {
        font-size: 1.3em;
    }

    .carrello_pulsante_acquisto {
        float: none;
        margin: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .img_rimuovi {
        width: 23px;
    }

    .flex_contatti {
        margin-bottom: 0;
    }

    .small_text {
        width: 100%;
    }

}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
