/*******************************
    RESPONSIVE
/*******************************/

/* 1300  */

@media (max-width: 1300px) {
    .right.cajas-artes-elements {
        align-items: start;
    }
    .content-video-txt-artes-elements {
        height: fit-content;
    }
    .right.cajas-artes-elements {
        display: block;
    }
    .right.cajas-artes-elements .read-more {
        position: relative;
        bottom: initial;
        left: initial;
    }
    .simple-button-plugin {
        min-width: initial;
    }
}


@media screen and (max-width:768px){
    .logo-esa {
        right: 0;
        width: 100%;
        text-align: right;
        padding-right: 1.5rem;
    }
    .logo-esa img{
        width: 70px;
    }
    .block-views-blockartes-elements-highlighted-on-home-block-1 .view-content{
        flex-wrap: wrap;
    }
    .path-calendar .calendar-calendar {
        width: 100%;
        margin: 3rem auto;
    }
}

@media (max-width: 767px){
    .content-img-home h2, 
    .content-img-artes-elements h2 {
        width: 100%;
    }
    .left.cajas-artes-elements {
        min-height: 350px;
    }

    .form-checkboxes.bef-nested>ul {
        column-count: 1;
    }
    .path-funding .bef-exposed-form > .form--inline{
        display: flex;
        flex-direction: column;
    }
    .path-funding .bef-exposed-form .form-actions {
        margin: 2em 0.5em 0em;
        float: none;
        clear: both;
    }
    .path-funding .bef-exposed-form .form-actions input#edit-submit-tenders{
        width: 100%;
        margin: 0.5rem 0;
    }
    .path-funding .bef-exposed-form .form-actions input#edit-reset{
        width: 90%;
        margin: 0.5rem 0;
    }
    .path-funding .bef-exposed-form .form-actions i.fa-times{
        height: 36px;
        position: relative;
        top: 1px;       
    }
    .path-funding fieldset#edit-field-tenderstatus-value--wrapper {
        width: 100% !important;
    }
    .path-funding ul.view-list .metadata-list li {
        display: block;
        width: 100%;
    }
    .path-funding ul.view-list .metadata-list-status li {
        display: block;
        margin: 0;
        width: 100%;
        float: none;
        display: flex;
    }
    .page-node-type-open-tender .metadata-list-status, 
    .page-node-type-tender .metadata-list-status{
        display: flex;
        flex-direction: column;
    }
    .page-node-type-open-tender .metadata-list-status li, 
    .page-node-type-tender .metadata-list-status li {
        display: block;
        margin: 0;
        width: 100%;
        float: none;
        display: flex;
        flex-direction: row;
    }
    .page-node-type-open-tender .metadata-list-status li > .field--label-inline, 
    .page-node-type-tender .metadata-list-status li > .field--label-inline {
        display: flex;
        flex-direction: row;
    }
    .page-node-type-tender li.metadata-tenders > div, .page-node-type-open-tender li.metadata-tenders > div {
        width: 100%;
    }

     /* SEARCH */
    .content-form-search .search-artes {
        width: 100%;
        background: var(--background-blue-alpha);
        padding: 1rem; 
    }
    .fixed .content-form-search {
        padding:0px;
    }
    .header i.fa-search {
        color: var(--whiteLight);
        display: inline-flex;
        align-items: center;
        font-size: 1.7rem;
        position: relative;
        top: 7px;
        right: 4rem;
        margin-left: auto;
        cursor: pointer;
    }
    .content-search-menu i.fa-search:hover {
        cursor: pointer;
        opacity: 0.8;
    }
    .fixed .content-search-menu i.fa-search {
        top: 2px;
    }
    .content-form-search-mobile input#edit-submit {
        background-color: var(--light-blue);
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 0;
        background-image: url('../img/search-solid.png');
        background-repeat: no-repeat;
        background-size: countain;
        background-position: center;
        width: 100%;
    }
    .content-form-search nav {
        display: none;
    }
    .content-form-search-mobile {
        position: fixed;
        right: 0;
        padding: 10px 20px;
        width: 100%;
        z-index: 10;
    }
   .content-form-search-mobile input[type="search"] {
        background-color: rgb(255 255 255 / 40%);
    }

    .content-form-search div#block-bootstrapartes-search-form {
        width: 100%;
    }

    .content-form-search-mobile, 
    .content-form-search, 
    .content-form-search-mobile .navbar-nav {
        display: none;
    }
    .content-form-search {
        position: absolute;
        border-top: 4px solid var(--background-blue);
        padding: 0;
    }
    .page-node-type-company .related-projects-list .item-list ul {
        flex-direction: column;
    }
    .page-node-type-company .related-projects-list .item-list ul li {
        width: 100%;
    }
    .opportunity-header .opportunity-metadata  > ul {
        padding: 0;
        margin: 1.6rem 0;
    }
}

@media (max-width: 732px) and (max-height: 480px) {
    /* SUPERIOR BLUE BAR */

    /*******************************
        HEADER
    /*******************************/

    /* Top Bar */

    .col-lg-6.col-md-6.row.content-txt-barra-superior.d-flex {
        width: 40%;
    }

    /* TXT Header  */

    .content-main-txt-header {
        margin: 80px 0 20px 0;
        padding: 20px;
    }

    .content-img-home, 
    .content-img-artes-elements {
        display: flex;
        height: auto!important;
    }


    /* SEARCH */

    .content-form-search-mobile input#edit-submit {
        background-color: var(--light-blue);
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 0;
        background-image: url('../img/search-solid.png');
        background-repeat: no-repeat;
        background-size: countain;
        background-position: center;
        width: 100%;
    }
    .content-form-search nav {
        display: none;
    }

    .content-form-search-mobile {
        position: fixed;
        top: 135px;
        right: 0;
        background-color: rgba(1, 49, 70,0.85);
        padding: 10px 20px;
        width: 100%;
        z-index: 10;
    }
    .content-form-search-mobile input[type="search"] {
        background-color: var(--dark-blue) !important;
    }

    .content-form-search div#block-bootstrapartes-search-form {
        width: 100%;
    }

    .content-form-search-mobile, 
    .content-form-search, 
    .content-form-search-mobile .navbar-nav {
        display: none;
    }

    

    /* MENU */

    nav#block-bootstrapartes-main-menu {
        max-height: 250px!important;
        /*overflow-y: scroll;*/
        padding-right: 20px;
    }

    /* Open menu animation */
    @keyframes animated-open-menu {
        from { width: 0; padding: 0;}
        to { width: 100%; 
            padding: 80px 40px;
        }
    }
    /* Close menu animation */
    @keyframes animated-close-menu {
        from { width: 100%; 
                padding: 80px 40px;
            }
        to  { width: 0; padding: 0;}
    }


    .content-btn-menu {
        padding: 20px 0 0 0;
    }

    .bg-close-menu-screen {
        display: none!important;
    }

    .open-menu {
        animation-name: animated-open-menu;
        animation-duration: .3s;
        animation-timing-function: cubic-bezier(.07,.78,.09,.9);
        width: 100%!important;

    }

    .content-btn-menu {
        display: flex!important;
    }

    .content-headerlogo a img {
        width: 80%;
    }

    /* HOME */

    /* Carrousell */

    a.jcarousel-control-next {
        right: 0!important;
    }

    a.jcarousel-control-prev {
        left: 0!important;
    }

    .slideshow-view .views-slideshow-controls-bottom {
        display: none;
    }

    /* NEWS */
    .latest-news-wrapper .latest-news-rows {
        flex-direction: row!important;
    }
    div.latest-news-wrapper .latest-news-rows .latest-news-item {
        max-width: 100%!important;
        width: 50%!important;
    }

    /*******************************
        ARTES ELEMENTS
    /*******************************/

    .content-summary-artes-elements {
        padding: 120px 10% 0 10%;
    }

    .content-summary-artes-elements h2.h2-cabecera {
        font-size: 22px;
        padding: 15px 15px 15px 0;
    }

    .content-summary-p {
        width: 100%!important;
    }

    .content-image-header-artes-elements img { 
        width: auto;
        height: 100%;
    }

   .content-summary-artes-elements {
        margin: 0 30px;
        min-height: 350px;
    }

    .right.cajas-artes-elements {
        min-height: 400px;
    }

    /* Contacts Artes Elements */

    .field--name-field-spl-contacts {
        margin: 20px 0;
    }

    /* Related contents Artes Elements */

    .field--name-field-spl-contacts .field__item,
    .field.field--name-field-related-banners.field--type-entity-reference.field--label-above .field__item,
    .field--name-field-related-content .field__item {
        padding: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    /* Related banners and related contents */
    .field--name-field-related-banners,
    .field--name-field-related-banners .field__items,
    .field--name-field-related-banners .field--name-field-rsp-image,
    .field--name-field-related-content,
    .field--name-field-related-content .field__items,
    .field--name-field-spl-documents .field__items {
        flex-direction: column;
    }
    
    /* Adds to prod  ***********************************************/
      /* menu  */
      .close-btn {
        top: -40px;
        right: -5px;
      }
      
    /* Home */
    .content-main-txt-header {
        margin: 80px 0!important;
    }
    .latest-news-home .view-footer .more-link a {
        width: 100%;
        height: auto;
        text-align: center;
        padding: 10px 0;
    }
    /* What we do  */
    .page-node-type-page iframe,
    .page-node-type-artes-elements iframe { /* Styles to iframe for all artes elements */
        max-width: 100%;
    }
    /* 5g-6g */
    .field--name-field-spl-contacts .field__items {
        flex-direction: row;
    }
    .field--name-field-related-content {
        flex-direction: row;
    }
    .field--name-field-related-content .field__items {
        flex-direction: row;
    }
    .field--name-field-related-content .field__item {
        width: calc(33.33% - 20px);
    }
    .header-artes-elements-420 {
        height: auto!important;
    }
    .cajas-artes-elements iframe {
        max-width: 100%;
    }
    .right.cajas-artes-elements {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .right.cajas-artes-elements .read-more {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 40px;
        width: 100%;
    }
    .right.cajas-artes-elements .read-more a {
        width: 50%;
        text-align: center;
    }
    .field--type-text-with-summary h4 a {
        font-size: 16px;
        display: flex;
        flex-direction: column;
        padding: 10px 0 20px 0;
    }
    .content-video-txt-artes-elements {
        height: auto;
    }
    /* filter projects */
    .path-projects select#edit-sort-bef-combine {
        margin-bottom: 20px;
    }
    /* Filters partners  */
    .path-contractors .bef-exposed-form .bef-select-all-none {
        display: flex;
        padding: 10px 0 0 0;
        padding: 6px 12px;
        flex-wrap: wrap;
        align-items: flex-start;
        flex-direction: column;
        align-content: flex-start;
    }
    .path-contractors ul.view-list > li {
        overflow: hidden;
    }
    /* Footer */
    div#block-footerfatmenu ul li {
        padding: 5px 0;
    }
    div#block-footerfatmenu ul li a {
        font-size: 16px;
    }
    /* Video popup */
    .content-popup-videos-carrusel {
        padding: 0 40px;
    }
    .video-carrusel-popup {
        width: 90%;
    }
    .content-popup-videos-carrusel i {
        right: 20px;
        top: 60px;
    }
}

@media screen and (max-width:640px){
    .hightlighted-item{
        width: 100%;
        margin: 1rem 0 !important;
    }
    .highlighted-img > div, .hightlighted-item .node__content > div {
        margin: 0;
    }
    .page-node-type-artes-elements .showcase-grid .jcarousel-item {
        height: fit-content;
    }
    .page-node-type-artes-elements .showcase-grid .jcarousel-item .image  {
        margin: 0;
    }
    .page-node-type-artes-elements .showcase-grid .jcarousel-item .image img {
        height: revert-layer;
    }
    .showcase-grid .slider-arrows__prev, 
    .showcase-grid .slider-arrows__next {
        top: 115%;
    }
    .field--name-field-spl-contacts .field__items {
        flex-direction: column;
    }
    .field--name-field-spl-contacts .field__items > .field__item {
        width: 100%;
        margin: 1rem 0;
    }
    .field--name-field-related-banners .field__items {
        flex-direction: column;
    }
    .field--name-field-related-banners .field__items > .field__item {
        width: 100%;
        margin: 1rem 0;
    }
    .content-wrapper-news-events .image-news-events, 
    .content-wrapper-news-events .image-tax-terms{
        display: none;
    }
    article[about="/national-delegations"] table td:nth-child(2), 
    article[about="/national-delegations"] table td:nth-child(4) {
        display: block;
        width: fit-content;
        position: relative;
    }
    .bef-exposed-form .bef-checkboxes > .form-type-checkbox {
        width: calc(50% - 1rem);
    }
    .spotlight-on-block .spotlight-on-home .spotlight-on-row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .user-logged-in header {
        top: 100px;
    }
    #sliding-popup .popup-content {
        max-width: 100%;
    }
    #sliding-popup .popup-content > div:nth-child(1):after {
        display: none;
    }
    #sliding-popup .popup-content > div {
        padding: 0;
        margin: 2rem 0 0;
    }
    #sliding-popup .popup-content .eu-cookie-compliance-categories-buttons {
        width: 100%;
    }
    .header i.fa-search {
        right: 0.5rem;
        top: 0rem;
    }
    .content-headerlogo {
        zoom: 94%;
    }
    .content-headerlogo a img {
        height: auto;
        width: 90% !important;
    }
    .content-form-search {
        margin: 0 !important;
    }
    .content-form-search .search-artes {
        background: var(--background-blue);
        border-bottom: 2px solid var(--whiteLight);
    }
    .header-navigation {
        width: 70px;
        height: 70px;
    }
    .header-navigation.menu-open .mobile-menu-button {
        position: fixed;
        top: 3.5rem
    }
    .header-navigation .menu-container ul.menu {
        padding: 5.3rem 1rem 2rem 2.5rem;
    }
    .col-lg-6.col-md-6.row.content-txt-barra-superior.d-flex {
        width: 40%;
    }
    div.content-main-txt-header {
        margin: 0 0 20px 0;
        padding: 20px;
    }
    .content-img-home, 
    .content-img-artes-elements {
        display: flex;
    }
    .content-img-artes-elements h2 {
        width: 100%;
    }
    .field--name-field-spl-contacts .field__items > .field__item {
        background-position: right 1rem top 1rem;
        background-size: 70px;
    }
    .content-img-home h2 {
        background-color: var(--dark-blue-transparency);
        width: 86%;
        padding: 10px;
        text-align: center;
    }
    .content-img-home h2 .first-title {
        background-color: transparent;
        font-size: 50px;
    }
    .content-img-home h2 .second-title {
        font-size: 50px;
    }
    .content-btn-desplegable-menu {

    }
    .fixed .content-btn-menu {
        padding: 10px 0 0 0;
    }
    @keyframes animated-open-menu {
        from { width: 0; padding: 0;}
        to { width: 100%; 
            padding: 80px 40px;
        }
    }
    @keyframes animated-close-menu {
        from { width: 100%; 
                padding: 80px 40px;
            }
        to  { width: 0; padding: 0;}
    }
    .content-btn-menu {
        padding: 20px 0 0 0;
    }
    button.mobile-menu-button {
        left: 0;
    }
    .bg-close-menu-screen {
        display: none!important;
    }
    div.open-menu {
        animation-name: animated-open-menu;
        animation-duration: .3s;
        animation-timing-function: cubic-bezier(.07,.78,.09,.9);
        width: 100%!important;
        padding: 60px 40px!important;

    }
    .content-btn-menu {
        display: flex!important;
    }
    .content-video-txt-artes-elements {
        height: auto;
    }
    .highlighted-home {
        margin-top: 2rem;
    }
    .cajas-artes-elements {
        height: 250px;
    }

    .content-summary-artes-elements h2.h2-cabecera {
        font-size: 22px;
        padding: 15px;
    }

    .content-summary-p {
        width: 100%!important;
    }

    .content-image-header-artes-elements img { 
        width: auto;
        height: 100%;
    }
    .content-img-home, .content-img-artes-elements {
        min-height: 100vh !important;
        height: fit-content !important;
    }
    .content-summary-artes-elements {
        margin: 5rem 1.6rem !important;
        min-height: fit-content;
        max-width: 100%;
    }

    .right.cajas-artes-elements {
        min-height: 25rem;
    }

    .field--name-field-related-content .field--name-title {
        justify-content: center;
        width: 100%;
    }

    .carousel .more-link > a {
        width: 100%;
        text-align: center;
    }
    .field--name-field-related-content .field__items {
        margin-top: 0;
    }

    .field--name-field-related-content .field__label, .field--name-field-spl-contacts .field__label {
        margin: 0;
    }

    

    /* Contacts Artes Elements */

    .field--name-field-spl-contacts {
        margin: 20px 0;
    }
    .field--name-field-spl-contacts .field__items > .field__item{
    	margin:16px 0;
	    padding: 42px 16px 16px;
	    width: 100%;
    }
    .field--name-field-spl-contacts .node__content .field__item{
    	margin: 0;
    }

    /* Related contents Artes Elements */

    
    .field.field--name-field-related-banners .field--name-field-rsp-image{

    }
    .field--name-field-related-content .field__item {
	    width: 100%;
	    margin: 16px 0 0;
    }    
    .field--name-field-spl-contacts > .field__items, 
    .field--name-field-related-banners > .field__items > .field__item{
    	width: 100%;
        min-height: 280px;
    }


    /* Related banners and related contents */
    .field--name-field-related-banners,
    .field--name-field-related-banners .field__items,
    .field--name-field-related-banners .field--name-field-rsp-image,
    .field--name-field-related-content,
    .field--name-field-related-content .field__items,
    .field--name-field-spl-contacts .field__items,
    .field--name-field-spl-documents .field__items {
        flex-direction: column;
    }

    /* NEWS */

    /* image news & events */
    .field.field--name-field-news-image.field--type-image.field--label-hidden.field__item,
    .content-img-project,
    .content-wrapper-news-events .image-news-events,
    div#block-mainpagecontent img {
        /*display: none;*/
    }

    .node--view-mode-teaser img {
        display: none;
    }

    /* full content */

    .node--view-mode-full img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0!important;
    }

    .node--view-mode-teaser .field--name-field-description-teaser1,
    .content-info {
        padding-left: 0;
        width: 100%;
    }

    .content-node-personalize .node-readmore {
        display: none;
    }

    .node--type-news-and-events .h2-enlace-bloque {
        line-height: 22px;
    }

    /* Projects */

    .node--type-projects img {
        display: flex;
        width: 100%;
        height: auto;
    }    

    ul.projects.metadata-list-program, .content-info .contractor ul, .content-info .subcontractor ul {
        display: flex;
        flex-direction: column;
    }

    ul.projects.metadata-list-program a {
        margin-bottom: 5px;
        width: max-content;
    }

    /*******************************
        NARROW RIGHT COLUMNS 
    /*******************************/

    .region-sidebar-second {
        flex-direction: column;
        padding: 0;
        margin: 2rem 0;
    }

    .region-sidebar-second .block-views {
        width: 100%;
    }

    .region-sidebar-second .block-views {
        margin: 4rem 0;
    }

    /*******************************
        FILTERS
    /*******************************/

    .bef-exposed-form .bef-checkboxes > .form-type-checkbox {
        width: calc(100% - 1rem);
    }
    div#edit-field-category-target-id ul {
        display: flex;
        flex-direction: column;
    }

    .view-filters {
        padding: 1rem 0;
    }

    .view-projects .bef-exposed-form .form--inline > .form-item {
        width: 100%;
    }

    fieldset#edit-field-status-value--wrapper {
        width: 100%;
    }

    #edit-field-status-value .form-checkboxes {
        flex-direction: column;
    }

    .view-projects .bef-exposed-form .form--inline > .form-item {
        margin-bottom: 0;
        padding: 0;
    }
    .view-projects .form-item-field-companies-target-id, .view-projects #edit-field-status-value--wrapper, .view-projects .form-item-sort-bef-combine {
        width: 100%;
        margin: 1rem 0;
        padding: 0;
    }
    #edit-field-status-value .form-item.js-form-type-checkbox {
        margin: 15px 15px 15px 0;
    }
    .view-projects .bef-exposed-form .bef-checkboxes {
        margin: 0;
    }
    .form-checkboxes.bef-nested > ul > li ul {
        list-style: none;
        padding: 1rem 0 0 1rem;
    }

    /*******************************
        CONTRACTOR
    /*******************************/

    .path-contractors ul.view-list > li .contractor-list {
        flex-direction: column;
    }

    .path-contractors ul.view-list > li .related-projects-list ul li {
        width: 100%;
    }
    .project_contractor .field__item, .project_subcontractor .field__item {
        float: none;
        width: 100%;
    }
    .contractor_teaser_image {
        float: left;
    }
    .project_contractor .contractor_teaser_content, .project_subcontractor .contractor_teaser_content {
        float: left;
        margin: 1rem 0;
        padding-left: 0;
        width: 100%;
    }
    .project_contractor .contractor_teaser_content {

    }
    /*******************************
        OUR ACTIVITIES
    /*******************************/

    li.our-activities-list {
        padding: 0;
        width: 100%;
    }

    li.our-activities-list .views-field.views-field-field-overview-image {
        min-height: auto;
        height: 100%;
    }

    /* PAGINATION */

    nav.pager > ul {
        padding-left: 0;
        display: flex;
        float: left;
    }
    
    /* Adds to prod  ***********************************************/
    /* Home */
    .latest-news-home .view-footer .more-link a {
        width: 100%;
        height: auto;
        text-align: center;
        padding: 10px 0;
    }
    /* What we do  */
    .page-node-type-page iframe,
    .page-node-type-artes-elements iframe { /* Styles to iframe for all artes elements */
        max-width: 100%;
    }
    /* 5g-6g */
    .cajas-artes-elements iframe {
        max-width: 100%;
    }
    .right.cajas-artes-elements {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .right.cajas-artes-elements .read-more {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 40px;
        width: 100%;
    }
    .right.cajas-artes-elements .read-more a {
        width: 100%;
        text-align: center;
    }
    .field--type-text-with-summary h4 a {
        font-size: 16px;
        display: flex;
        flex-direction: column;
        padding: 10px 0 20px 0;
    }
    /* filter projects */
    .path-projects select#edit-sort-bef-combine {
        margin-bottom: 20px;
    }
    /* Filters partners  */
    .path-contractors .bef-exposed-form .bef-select-all-none {
        display: flex;
        padding: 6px 12px;
        margin: 0;
        flex-wrap: wrap;
        align-items: flex-start;
        flex-direction: column;
        align-content: flex-start;
    }
    .path-contractors ul.view-list > li {
        overflow: hidden;
    }
    /* Footer */
    div#block-footerfatmenu ul li {
        padding: 5px 0;
    }
    div#block-footerfatmenu ul li a {
        font-size: 16px;
    }
    /* Popup video home */
    .video-carrusel-popup {
        padding: 0 20px;
    }
    .content-popup-videos-carrusel i {
        right: 20px;
        top: 60px;
    }
    .logo-esa {
        padding-right: 0rem;
    }
    .logo-esa img{
        width: 60px;
    }
}

@media (max-width: 320px) {
    .content-superior-bar {
        padding: 4px; 
    }
}


