/*
REVISTA APARTES - CÂMARA MUNICIPAL DE SÃO PAULO
AUTOR DO CSS: CCI.3 - CMSP
DATA: NOVEMBRO/2017
*/

/*RESET DAS MARGENS*/
* {
margin: 0;
padding: 0;
}

/*
=======================
CONFIGURAÇÃO DA GRADE
=======================
*/

.grade-1-3-1{
    border: 3px solid #fff;
	margin-top: -40px;
}

.grid-item-link {
    display: block;
    width: 99.9%;
    height: 300px;
    float: left;
    border: 3px solid #fff;
    display: table-cell;
/*    background-color: #000;*/
}

@media screen and (min-width: 800px) {

    /* Quadrados pequenos */
    .grid-item-link {
/*        background-color: #000;*/
        border: 3px solid #fff;
        display: table-cell;
        float: left;
        width: 33.3%;
        height: 320px;
        /*Abaixo, ótima configuração para padding e border serem incluídos no tamanho da caixa*/
        box-sizing: border-box;
    }

    /* Quadrados de tela cheia (1 a cada 4) */
    .grid-item-link:nth-of-type(4n+1) {
        display: block;
        width: 99.9%;
        height: 600px;
        font-size: 2.15em !important;
    }
}

article{
    height: 100%;
/*    background-size: cover;*/
/*    background-position: center center;*/
}
.novella-collection-item{
    background-size: cover;
    background-position: center center;
}

/*
================================
ESCURECIMENTO AO PASSAR DO MOUSE
================================
Foi utilizado :after para garantir que as classes filhas (títulos) não esmaecessem com o fundo. Para mais informação, confira aqui: 
https://jsfiddle.net/hzSG8/
*/

.novella-collection-item-wrap{
    vertical-align: middle;
    position: relative;
    display: table-cell;
    padding: 10%;
}

.novella-collection-item-wrap:after{
    content:'';
    background-color: #000;
    position: absolute;
    opacity: 0.3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-transition: opacity 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out;
    -moz-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
}

.novella-collection-item-wrap:hover:after {
    opacity: .6;
    -o-transition: opacity 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out;
    -moz-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
}

.novella-collection-item-wrap-inner{ 
    position:relative;
    z-index:1;
    text-align: center;
}

body{
    padding-top: 85px !important;
    
}

/* Remove a linha sob os links da home */
a:hover, a:focus{
    text-decoration: none !important;
}