.cmsmasters_tabs .cmsmasters_tabs_wrap {
    overflow: visible !important;
}

.cmsmasters_tabs .cmsmasters_tab_inner {
    overflow: visible !important;
}

.jplist-panel .jplist-drop-down .jplist-dd-panel {
    width: 100%;
}

.custom-grid-main {
    display: block;
}

.custom-grid-main .hidden {
    display: none;
}

.jplist-panel.panel-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.custom-grid-main .list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    display: -ms-grid;
    /*background: gray;*/
    /*border: blue;*/
    -ms-grid-columns: auto 100px 1fr 2fr;
    -ms-grid-rows: 50px 5em auto;
}

.custom-grid-main .list .list-item {
    /*border: 2px blue solid;*/
    float: left;
    padding: 10px;
}

.custom-grid-main .list .col-3 {
    width: 33%;
}

.jplist-panel .col-2 {
    width: 50%;
}

/*.jplist-panel .col-3{
    width: 32%;
}*/

.jplist-panel .jplist-drop-down,
.jplist-panel .text-filter-box {
    width: 97%;
}

.jplist-panel .col-4 {
    width: 23.45%;
}

.custom-grid-main .resultados {
    display: block;
}

.custom-grid-main .resultados-list {
    background-color: #efeff1;
    overflow: hidden;
    margin-bottom: 15px;
    font-size: 19px;
    padding: 0px !important;
}

.custom-grid-main .resultados-list .col-3 {
    float: left;
}

.custom-grid-main .resultados-list .resultados-panel2 {
    float: right;
    width: 66%;
    padding: 30px 0 0 29px;
}

.custom-grid-main .resultados-list .title1 {
    color: #808080;
    font-weight: 600;
}

.custom-grid-main .resultados-list .title2 {
    color: #989898;
}

.custom-grid-main .resultados-list .title3 a {
    text-transform: uppercase;
    color: #1b5fa6;
    margin-top: 10px;
}

.custom-grid-main .resultados-list img {
    width: 100%;
    max-height: 195px;
}

/*Filtros*/
.custom-grid-main .jplist-panel .filter {
    font-family: "Hind", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 15px;
    font-weight: 100 !important;
    color: #868686 !important;
    border: 1px #dddddd solid;
    border-top-color: #2d4d8e;
    border-top-width: 3px;
    height: 52px;
}

.custom-grid-main .jplist-panel .filter .text-filter {
    font-weight: 100 !important;
    color: #868686 !important;
    border: none !important;
}

.custom-grid-main .jplist-panel .filter .date-picker {
    font-weight: 100 !important;
    color: #868686 !important;
    border: none !important;
}

.jplist-drop-down .jplist-dd-panel:after {
    content: "\23F7";
    color: #868686;
    display: inline-block;
    position: absolute;
    right: 10px;
    z-index: 1000;
}

/*Filtros end*/

.custom-grid-main .list .col-2 img {
    width: 100%;
    /*height: 300px;*/
}

.custom-grid-main .cc-labels-container {
    position: relative;
    top: -24px;
    margin-top: -50px;
}

.custom-grid-main .cc-labels-container .overlay {
    background: rgba(0, 0, 0, 0.4);
    position: relative;
}

.custom-grid-main .title {
    color: #fff;
    text-align: center;
    font-size: 15px;
}

.custom-grid-main .subtitle {
    color: #fff;
    text-align: center;
    font-size: 12px;
}

.custom-grid-main .noticias .title {
    border-top: 3px blue solid;
    border-left: 1px #929292 solid;
    border-bottom: 1px #929292 solid;
    border-right: 1px #929292 solid;
    height: 90px;
    font-size: 1.1em;
    text-align: center;
    text-transform: uppercase;
    padding: 10px;
    overflow: hidden;
    margin-top: 0px;
    color: #797979;
}

.custom-grid-main .list-item .labels {
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.75em;
    text-align: center;
}

.custom-grid-main .list .polos .labels {
    font-size: 12px;
}

.custom-grid-main .list .polos .labels .horarios {
    padding-right: 5px;
}

.custom-grid-main .list-item .labels .label {
    margin-left: 5px;
}

.jplist-panel {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 15px;
}

.jplist-panel.bottomFullPagination {
    display: block;
}

/*VIDEOS*/

.custom-grid-main .videos .image,
.noticias .image {
    max-height: 250px;
    overflow: hidden;
    border: 1px #929292 solid;
}

.custom-grid-main .videos .labels-container {
    border-top: 3px blue solid;
    border-left: 1px #929292 solid;
    border-bottom: 1px #929292 solid;
    border-right: 1px #929292 solid;
    height: 90px;
    font-size: 1.1em;
    text-align: center;
    text-transform: uppercase;
    padding: 10px;
    overflow: hidden;
    margin-top: 0px;
    color: #797979;
}

.custom-grid-main .videos .labels-container .labels .title {
    color: #797979;
    margin: 0px;
}

.custom-grid-main .videos .labels-container .labels .label {
    color: #797979;
    margin: 0px;
}

.videos .cc-overlay {
    border: 1px red solid;
    margin: 10px auto;
    width: 80%;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;

    border-left: 55px solid green;
}

.custom-grid-main .fotos-item {
    margin-bottom: 15px;
}

/*Lightbox*/

#lightbox {
    position: fixed;
    /* keeps the lightbox window in the current viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /*opacity: 0.8;*/
    text-align: center;
    color: red;
    z-index: 9999;
    display: none;
}

#lightbox p {
    text-align: right;
    color: #fff;
    margin-right: 20px;
    font-size: 12px;
}

#lightbox #cc-iframe {
    width: 800px;
    height: 500px;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*Styles Passeio cultural*/

.p-roteiro-main .list {
    display: block;
}

.custom-grid-main .list .list-roteiros {
    width: 100%;
    display: block;
}

.custom-grid-main .list .p-roteiro {
    background-color: #e6e6e6;
    padding: 0px;
    margin-bottom: 8px;
}

.custom-grid-main .list .p-roteiro .imagem-destacada {
    width: 35%;
    float: left;
    margin-right: 10px;
}

.custom-grid-main .list .p-roteiro .p-content {
    padding: 10px 5px 5px 0;
    overflow: auto;
    font-size: 15px;
    line-height: 20px;
}

.custom-grid-main .list .p-roteiro .p-content .p-title {
    font-size: 20px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    line-height: 22px;
}

/*Passeio cultural END*/

/*INSCRIÇÕES*/

.inscricoes-wrapper .inscricoes-item {
    margin-right: 15px;
}

.inscricoes-wrapper .inscricoes-item .inscricoes-content {
    border: 1px solid #c1bfbf;
    padding: 20px;
}

/*/REVISTA*/
.revista .list {
    width: 100%;
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    display: -ms-grid;
    /* background: gray; */
    /* border: blue; */
    -ms-grid-columns: auto 100px 1fr 2fr;
    -ms-grid-rows: 50px 5em auto;
}

.custom-grid-main .revista_thumb {
    width: 100%;
    border: 1px solid #d0cfcf;
}

.custom-grid-main.revista .labels-container {
    position: relative;
    top: -100px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px;
}

/*INSCRIÇÕES  END*/

@media only screen and (max-width: 1366px) {
    .custom-grid-main .list .p-roteiro .p-content {
        padding: 10px 5px 5px 0;
        overflow: auto;
        font-size: 11px;
        line-height: 13px;
    }
}

@media only screen and (max-width: 1024px) {
    .custom-grid-main .list .col-xs-12 {
        width: 100%;
        /*min-height: 331px;*/
    }

    .jplist-panel {
        width: 100%;
        display: block;
    }

    .custom-grid-main .list {
        display: flex;
        flex-direction: column;
    }
}

.jplist-panel .jplist-pagination .jplist-pagingprev button,
.jplist-panel .jplist-pagination .jplist-pagingnext button {
    font-size: 20px;
    font-family: Lato, sans-serif;
    background-color: #ec6916;
    color: white;
    border: none;
}

.jplist-pagesbox {
    display: flex;
}

/* ========================================= */

/* Classe para o rótulo "ENCERRADO" */
.data-passada .label-encerrado {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    /* Certifique-se de que esteja por cima de outros elementos */
}

/* Classe para a sobreposição acinzentada */
.data-passada .overlay-cinza {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000004a;
    color: white;
    font-size: 24px;
    z-index: 9;
    text-align: center;
    opacity: 0.6;
    display: none;
}

/* Classe que estiliza o item quando a data já passou */
.data-passada {
    position: relative;
}

.data-passada img.polos_thumb {
    opacity: 1;
    filter: grayscale(1);
}

.custom-grid-main .list.bomEspetaculo .list-item {
    position: relative;
    padding: 0;
}

.custom-grid-main .list.bomEspetaculo {
    grid-gap: 10px;
}

.custom-grid-main .list.bomEspetaculo .cc-labels-container {
    position: absolute;
    margin-top: 0px;
    left: 0;
    right: 0;
    bottom: 7;
    top: unset;
    min-height: unset;
}