.galVert {
    margin: 0;
    /* padding: 2rem 0px 0px; */
    background: url("../imagens/paisagem2.jpg");
    overflow: hidden;
}

.galVert .galTitulo {
    display: flex; display: -ms-flexbox; -moz-display: flex;;
    justify-content: center;
    align-items: center;
    /* z-index: -3; */
}

.galVert .galTitulo a {
    cursor: pointer;
}

.galVert .galTitulo h2 {
    font-size: 4rem;
    text-align: center;
    color: #1b293e;
    margin: 2rem;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    display: none;
}

.galVert .galTitulo a h2:after {
    content: '';
    position: absolute;
    height: 5px;
    border: 5px solid #1b293e;
    border-top: none;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: calc(100% + 10px);
}

.galVertCont {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: -ms-grid;
    -ms-grid-columns: auto;
    -ms-grid-rows: auto;
}

.galVertCont div {
    display: ruby;
    align-items: center;
    color: white;
    background: #444;
}

.galVertCont div img {
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: 0.5s;
    cursor: pointer;
    max-width: 400px;
    max-height: 400px;
}
.galVertCont div.horizontal:hover img, .galVertCont div.vertical:hover img{
 opacity: 0.5
}
.galVertCont div.horizontal:hover:before, .galVertCont div.vertical:hover:before{
content:"+";
position:absolute;

}
.galVertCont .horizontal {
    grid-column: span 2; -ms-grid-column-span: 2;
}

.galVertCont .vertical {
    /* grid-row: span 2; -ms-grid-row-span: 2; */
}

.galVertCont div .big {
    grid-column: span 2; -ms-grid-column-span: 2;
    grid-row: span 2; -ms-grid-row-span: 2;
}

.galVert .mostrarImagem {
    display: flex; display: -ms-flexbox; -moz-display: flex;;
    justify-content: center;
    align-items: center;
    flex-direction: column; -ms-flex-direction: column;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 3;
    background: linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8));
    cursor: pointer;
    padding: 2rem 0;
    transition: all 0.5s ease-out;
}
.galVert .fa-times-circle {
    cursor: pointer;
}

.galVert .mostrarImagem p {
    cursor: pointer;
    text-align: center;
    margin: 0 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    float: right;
    position: relative;
    color: white;
/*  background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%; */
    font-family: sans-serif;
    align-self: flex-end
}


.galVert .mostrarImagem img {
    margin-top: 1rem;
    width: calc(100vw);
    height: calc(90% - 2rem);
    object-fit: contain;
    object-position: center;
    border: none;
    padding: 0 2rem;
    transition: all 0.5s ease;
    transform: scale(0.8);
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}


@media (max-width: 580px){
    .galVert .mostrarImagem img {
        width: calc(100vw - 40px);
        margin: 0 10px;
        padding: 0;
    }
    .galVert .mostrarImagem {
        padding: 2rem 0;
    }
}

@supports (display: grid) {

    .galVert {
        margin: 0;
        /* padding: 2rem 0px 0px; */
        background: url("../imagens/paisagem2.jpg");
        overflow: hidden;
    }

    .galVert .galTitulo {
        display: flex; display: -ms-flexbox; -moz-display: flex;;
        justify-content: center;
        align-items: center;
        /* z-index: -3; */
    }

    .galVert .galTitulo a {
        cursor: pointer;
    }

    .galVert .galTitulo h2 {
        font-size: 4rem;
        text-align: center;
        color: #1b293e;
        margin: 2rem;
        text-transform: uppercase;
        cursor: pointer;
        position: relative;
        display: none;
    }

    .galVert .galTitulo a h2:after {
        content: '';
        position: absolute;
        height: 5px;
        border: 5px solid #1b293e;
        border-top: none;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: calc(100% + 10px);
    }

    .galVertCont {
        margin: 0;
        padding: 0;
        display: grid; display: -ms-grid; -moz-display: grid;;
        grid-gap: 1px; -ms-grid-gap: 1px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: auto; -ms-grid-auto-rows: auto;
        grid-auto-flow: dense; -ms-grid-auto-flow: dense;
        overflow: hidden;
    }

    .galVertCont div {
        display: flex; display: -ms-flexbox; -moz-display: flex;;
        justify-content: center;
        align-items: center;
        font-size: 2em;
        color: white;
        background: #444;
        font-size: 3rem;
    }

    .galVertCont div img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: 0.5s;
        /* box-shadow: 0px 0px 1px black; */
        cursor: pointer;
        /* border-bottom: 1px solid #ccc; */
    }
    .galVertCont div.horizontal:hover img, .galVertCont div.vertical:hover img{
     opacity: 0.5
    }
    .galVertCont div.horizontal:hover:before, .galVertCont div.vertical:hover:before{
    content:"+";
    position:absolute;

    }
    .galVertCont .horizontal {
        grid-column: span 2; -ms-grid-column-span: 2;
    }

    .galVertCont .vertical {
        /* grid-row: span 2; -ms-grid-row-span: 2; */
    }

    .galVertCont div .big {
        grid-column: span 2; -ms-grid-column-span: 2;
        grid-row: span 2; -ms-grid-row-span: 2;
    }

    .galVert .mostrarImagem {
        display: flex; display: -ms-flexbox; -moz-display: flex;;
        justify-content: center;
        align-items: center;
        flex-direction: column; -ms-flex-direction: column;
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 3;
        background: linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8));
        cursor: pointer;
        padding: 2rem 0;
        transition: all 0.5s ease-out;
    }
    .galVert .fa-times-circle {
        cursor: pointer;
    }

    .galVert .mostrarImagem p {
        cursor: pointer;
        text-align: center;
        margin: 0 2rem;
        margin-bottom: 1rem;
        cursor: pointer;
        float: right;
        position: relative;
        color: white;
    /*  background: white;
        width: 40px;
        height: 40px;
        border-radius: 50%; */
        font-family: sans-serif;
        align-self: flex-end
    }


    .galVert .mostrarImagem img {
        margin-top: 1rem;
        width: calc(100vw);
        height: calc(90% - 2rem);
        object-fit: contain;
        object-position: center;
        border: none;
        padding: 0 2rem;
        transition: all 0.5s ease;
        transform: scale(0.8);
        -moz-user-select: none;
        -webkit-user-select: none;
        user-select: none;
    max-width: 100%;
    max-height: 100%;
    }
}
