*,*:after,*:before {
    box-sizing: border-box;
}
/*  PLACEHOLDER
----------------------*/
::-webkit-input-placeholder {
    color: #FFF;
}

:-moz-placeholder {
    color: #FFF;
}

::-moz-placeholder {
    color: #FFF;
}

:-ms-input-placeholder {
    color: #FFF;
}
/*  SCROLLBAR
-------------------*/
::-webkit-scrollbar {
    width: 0.2em;
    background: #484980;
}

::-webkit-scrollbar-track {
}

::-webkit-scrollbar-thumb {
    background: #fff;
}

::-webkit-scrollbar-thumb:window-inactive {
    background: #fff;
}
/*  SELECTION
-------------------*/
::-moz-selection {
    background: #999;
    color: #fff;
}
::selection {
    background: #999;
    color: #fff;
}

::-moz-selection {
    background: #999;
    color: #fff;
}
.Bmac-wrapper {
    margin: 1% auto;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
}

.Bmac-wrapper:before {
    content: "";
    display: table;
}

.Bmac-wrapper_inner {
    padding: 0.2em;
    margin: 0;
}

.Bmac-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 10px;
}

.Bmac-gallery_item {
    /*float: left;*/
    width: 100%;
    display: inline-flex;
    margin: 0 auto;
    margin-right: 0.25em;
    margin-bottom: 0.5em;
    padding: 0.5em;
    background: #FFF;
    border: 1px solid #F3F0F0;
    position:relative;
    box-shadow: 0 1px 2px #AFAFAF;
    border-radius: 5px;
}


.Bmac-gallery_item_preview {
    background: #fff;
    transition: all 0.5s ease;
}

.Bmac-gallery_item_preview a {
    position: relative;
    display: inline-block;
    padding: 0;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s ease;
}
.vamos{
    background: aqua !important;
}

.Bmac-gallery_item_preview a:hover {
    color: #304B9C;
    transition: all 0.5s ease;
}
.Bmac-gallery_item_preview a svg.Bmac-gallery_top{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:50px;
    stroke:none;
    transition: all 0.5s ease;
}
.Bmac-gallery_item_preview a:hover  svg.Bmac-gallery_top{
    top:-10em;
    transition: all 0.5s ease;
}
.Bmac-gallery_hide_top{
    top:-10em !important;
    transition: all 0.5s ease;
}

.Bmac-gallery_item_preview a:before {
    content: "View more";
    position: absolute;
    top: 0.5em;
    left: -30em;
    background-color: rgba(48, 75, 156, 0.9);
    color: #fff;
    padding: 0.56em 1em;
    border-radius: 5px 0 0 0;
    transition: all .5s ease;
}

.Bmac-gallery_item_preview a:hover:before {
    left: 0.5em;
    transition: all .5s ease;
}

.Bmac-gallery_item_preview a h3 {
    /*font-family: 'Leckerli One', cursive;*/
}

.Bmac-gallery_item_preview a img {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 5px;
    transition: all 0.5s ease;
}
.Bmac-gallery_item_full {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1000;
    overflow: hidden;
}

.Bmac-gallery_item_full img {
    display: block;
    width: 100%;
    max-height: 80%;
    /*Tamaño de la img del modal*/
    /*height: 80%;*/
}

.Bmac-box {
    margin: auto;
    background: #FFF;
    padding: 2em;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    width: 50%;
    text-align: left;
    border: 1px solid #DADADA;
}
.parrafos-box{
    box-sizing: border-box;
    padding: 10px 10px 0px 0px;
}
.parrafos-box h3, p{
    box-sizing: border-box;
    padding-bottom: 5px;
}
.parrafos-box p a{
    text-decoration: none;
}
/*.Bmac-box p{
    line-height: 16px;
}
.Bmac-box p a{
    text-decoration: none;
}*/

.Bmac-box h3 {
    /*font-family: 'Leckerli One', cursive;*/
    color: #304B9C;
}
.Bmac-box img {
    width: 100%;
}

.Bmac-cl {
    position: absolute;
    margin-top: 70px;
    margin-left: 20px;
    color: #777;
    text-decoration: none;
    display: inline-block;
    font-size: 2em;
}

.Bmac-cl:hover {
    color: #F88484;
}
/*  Responsive video 
=============================*/
.Bmac-video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.Bmac-video iframe,
.Bmac-video object,
.Bmac-video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/*  list style
=============================*/
.Bmac-icon_list {
    width: 30px;
    height: 30px;
    display: block;
    box-sizing: border-box;
    padding-top: 0.15em;
    text-decoration: none;
    line-height: 0.4em;
    background: #838383;
    color: #838383;
    border: 1px solid #C2C2C2;
    border-radius: 4px;
    /*position: absolute;*/
    margin-left: 20px;
    word-break: break-all;
    transition: all 0.5s ease;
}

.Bmac-icon_list:hover {
    background: #304B9C;
    color: #fff;
    border-color: #304B9C;
    transition: all 0.5s ease;
}

.Bmac-icon_list_open {
    background: #304B9C !important;
    color: #fff !important;
}

.Bmac-gallery_item_list {
    float: none !important;
    display: block !important;
    width: 50%;
    margin: auto;
    margin-top: 0.5em;
    transition: all 0.5s ease;
}

.Bmac-gallery_line {
    width: 130px !important;
    height: 100px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    float: left !important;
    margin-right: 1em !important;
    transition: all 0.5s ease;
}
/*	Simple animation
=======================*/
.Bmac-efIn {
    -webkit-animation: fx_in 0.65s 1 ease-in-out;
    animation: fx_in 0.65s 1 ease-in-out;
}

.Bmac-efOut {
    -webkit-animation: fx_out 0.7s 1 ease-in-out;
    animation: fx_out 0.7s 1 ease-in-out;
}




/*	Keyframes
==============*/
@-webkit-keyframes fx_in {
    from {
        width: 0;
        height: 0;
        -webkit-border-radius: 100%;
        opacity: 0;
    }

    50% {
        -webkit-box-shadow: inset 0 0 0 0  #fff;
    }

    to {
        width: 100%;
        height: 100%;
        -webkit-border-radius: 0;
        opacity: 1;
    }
}

@-webkit-keyframes fx_out {
    from {
        width: 100%;
        height: 100%;
        -webkit-border-radius: 0;
        -webkit-box-shadow: inset 0 0 0 0 #fff;
        opacity: 1;
    }

    50% {
        -webkit-box-shadow: inset 0 0 0 80em  #fff;
    }

    to {
        width: 0;
        height: 0;
        -webkit-border-radius: 100%;
        opacity: 0;
    }
}

/* moz */

/* o */

/* ms */

@keyframes fx_in {
    from {
        width: 0;
        height: 0;
        border-radius: 100%;
        opacity: 0;
    }

    50% {
        box-shadow: inset 0 0 0 0  #fff;
    }

    to {
        width: 100%;
        height: 100%;
        border-radius: 0;
        opacity: 1;
    }
}

@keyframes fx_out {
    from {
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: inset 0 0 0 0 #fff;
        opacity: 1;
    }

    50% {
        box-shadow: inset 0 0 0 80em  #fff;
    }

    to {
        width: 0;
        height: 0;
        border-radius: 100%;
        opacity: 0;
    }
}



/* Large desktop */
@media (min-width: 980px) {
    .Bmac-gallery_item_list {
        width: 50% !important;
    }

    .Bmac-gallery_item {
        width: 32%;
    }

    .Bmac-gallery_item_preview a img {
        height: 230px;
    }

    .Bmac-box {
        width: 60%;
        max-height: 550px;
    }
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
    .gBmac-allery_item_list {
        width: 60% !important;
    }

    .Bmac-gallery_item {
        width: 32.83%;
    }

    .Bmac-gallery_item_preview a img {
        height: 180px;
    }

    .Bmac-box {
        width: 70%;
        max-height: 550px;
    }
}
/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
    .Bmac-gallery_item_list {
        width: 70% !important;
    }

    .Bmac-gallery_item {
        width: 49.3%;
    }

    .Bmac-gallery_item_preview a img {
        height: 180px;
    }

    .Bmac-box {
        margin: auto;
        padding: 4em 1em 1em 1em;
        width: 80%;
        height: 500px;
    }

    .Bmac-cl {
        top: 10;
        right: 0.5em;
    }
}

@media (max-width: 560px) {
    .Bmac-gallery_item {
        width: 100%;
    }
    .Bmac-gallery_item_preview a img {
        height: 250px;
    }
}

/* Landscape phones and down */
@media (max-width: 480px) {
    .Bmac-gallery_item_list {
        width: 100% !important;
    }

    .Bmac-gallery_item {
        width: 100wh;
    }

    .Bmac-gallery_item_preview a img {
        height: 200px;
    }

    .Bmac-box {
        background: #F8F8F8;
        padding: 4em 1em 1em 1em;
        width: 100%;
        height: auto;
        z-index: -1;
    }

    .Bmac-cl {
        z-index: 1;
        margin-top: 20px;
    }

    .Bmac-gallery_item_list {
        width: 100% !important;
    }

}