/* GENERAL */
body a:focus {    outline: none; }
/* HEADER */
body #portal-top #portal-header .myStickMenu:hover #portal-logo img { opacity: 0;}
body #portal-top #portal-header .myStickMenu.toTop:hover #portal-logo img { opacity: 1;}

/* FAQ */
.accordion .accordion-title {  padding: 1.25rem 2rem 1.25rem 1rem; }

/* INFO */
#content-core h2 { font-size: 1.75rem; font-weight: bolder; margin-top: 1.5em; clear:left; }
#content-core h2.newsItem__title{font-size: 1.25rem;} 
div.two-columns + .two-columns { margin-top: 1em; }
#content-core iframe { width: 100%; height: calc(56vw - 30px); max-height:658px; }
#portal-column-content iframe { width: 100%; height: calc(56vw - 30px); max-height:658px; }
@media screen and (min-width: 40em) {
   #content-core h2 { font-weight: normal; font-size: 2.25rem; }
}

/* TABLES */
table.responsive { max-width: 100%; }
table.responsive, 
table.responsive tbody,
table.responsive tr, 
table.responsive th,
table.responsive td { display: block; }
@media screen and (min-width: 40em) {
    table.responsive { display: table;  }
    table.responsive tbody { display: table-row-group; }
    table.responsive tr { display: table-row; }
    table.responsive th,
    table.responsive td { display: table-cell; }
}

@media screen and (max-width: 641px) {
    table.invisible td { padding: 0 !important; font-size:14px;line-height:1.25em; }
    #portal-column-content table.invisible td .image-inline { margin: 0; }
}

table.adaptative { max-width: 100%; }
table.adaptative tbody { border: none; }
table.adaptative tbody tr:nth-child(even) { background-color: transparent; }
table.adaptative td { vertical-align: top; padding: .25em; }
@media screen and (max-width: 641px) {
    table.adaptative { font-size: 12px; line-height:1.25em; }
    table.adaptative p { margin-bottom: 1em;}
    table.adaptative td { padding: 1em .25em; }
    table.adaptative td p { margin-bottom: 0;}
    table.adaptative tr td:nth-child(even) { background-color:#f3f3f3;}
    @supports (display: grid) {
        table.adaptative { display: block; }
        table.adaptative tbody { display: grid; grid-template-columns: 1fr 1fr; }
        table.adaptative tr { display: flex; justify-content: space-around; flex-direction:column;}
        table.adaptative tr td:nth-child(even) { background-color:transparent;}
    }
}

/* FORMS */
form .label { white-space: normal; }
input[type="checkbox"].is-invalid-input,
input[type="checkbox"].is-invalid-input + label,
input[type="checkbox"].is-invalid-input + label a { color: #c60f13 !important; text-decoration: underline; }
.template-portada_view .stickyFilter #searchbox button[type="submit"] { top: 0px; right: 5px}
.specialButton { position:absolute; top: 5px !important; right: 8px !important; font-size: 22px; }

/* SECOND LEVEL MENU */
.subMenu > .row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: center; justify-content: center; }
.subMenu a:active { background-color: rgba(27,27,27,0.33); color: #FFFFFF; }

/* INTERPRETERS */
@media screen and (max-width: 30em) {
    .interpretes__list li { display:block !important; white-space: normal !important; }
}

/* LISTS */
div.listingBar { clear: both; }
body div.listingBar span.current { padding: 0.25em 0.5em; height: 36px; display: inline-block; border: 0.1em solid #b4c7cb; }
body div.listingBar a:hover { background-color: #b4c7cb; border-color: #b4c7cb; }

/* NEWS */
#content-core h2.newsItem__title { margin-top: 0; }


@media only screen and (max-width: 769px) {

  /* COOKIES */
  #cookie-bar.fixed { width: 90% !important; }
  #cookie-bar.fixed.bottom { margin-right: 5%;}
 
  /* ANCHORS */
  .jumptarget::before { height:120px !important; margin:-80px 0 0 0 !important; }
}
@media only screen and (max-width: 641px) {
  /* ANCHORS */
  .jumptarget::before { height:81px !important; margin:-81px 0 0 0 !important; }
}

/* FILTER */
  .title-bar button { position: relative;}
  .title-bar button:before { content: ""; display: block; width: 60px; height: 1.25em; position: absolute; left: -60px; top: -9px; z-index: 500; }

/* TEXT */
@media only screen and (max-width: 400px) {
  div[id^="parent-fieldname-texto"] img { float: none !important; width: 100%; height:auto; margin-left:0 !important;margin-right:0 !important; }

}

#portal-top #portal-header #portal-inaem-brand a {
    background: url(logoINAEM-OCNE.svg?i=2) no-repeat 0 0 / contain transparent !important; margin-top:7px;
}
body #portal-top #portal-header #portal-inaem-brand { height: 46px; max-width: 350px; background-image:none !important;}
@media (min-width:40em){ 
    body #portal-top #portal-header #portal-inaem-brand {max-width: 510px;}

    /*.obrasList .item .info .interpreters{
        min-height: 3.25em !important;
        max-height: 3.25em !important;
    } */

}
.obrasList .item a.image {display:block;}
.gallery__list a { display:block;min-height:100%;background-size:cover;background-repeat:no-repeat;background-position:center center;}

.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin-bottom: 20px;
}
.video-responsive iframe {
    border: 0;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    margin: 0;
}

/* SLIDER PORTADA MOBILE */
#sliderMobile .sliderMobile__item__image {  
  height: calc(100vh - 120px);
}
#sliderMobile .bgimage {
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center top;
}
#sliderMobile .bx-wrapper .bx-pager.bx-default-pager a.active{ 
 background-color: black !important;
  transform: scale(1.25);
}
#sliderMobile .mySlider__box {
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  top: 47.5vw;
  justify-content: center;
}
#sliderMobile .bx-wrapper .bx-pager {
  bottom: 0 !important;
}

.telegram-icon img { 
  height: auto;
  width: 18px;
}
