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

/* 1300  */

@media (max-width: 1300px) {

    .right.cajas-artes-elements {
        align-items: start;
    }

}


/* MOBILE LANDSCAPE */

@media (max-width: 767px){
    .content-img-home h2 {
        width: 100%;
    }
    .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%;
    }
}

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

    .logo-esa {
        right: 20px;
        width: 50%;
    }

    /*******************************
        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 {
        display: flex;
        height: auto!important;
    }


    /* SEARCH */

    .content-search-menu i.fa-search {
        color: #fff;
        display: inline-flex;
        align-items: center;
        font-size: 1.7rem;
    }

    .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: var(--dark-blue);
        padding: 10px 20px;
        width: 100%;
        z-index: 10;
    }

    .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!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:  40px 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;
    }
}


/* MOBILE */

@media (max-width: 480px) and (orientation:portrait) {

    /* SUPERIOR BLUE BAR */

    .logo-esa {
        right: 20px;
        width: 70%;
    }

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

    /* Top Bar */

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

    /* TXT Header  */

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

    .content-img-home {
        display: flex;
        /*height: auto!important;*/
    }

    .content-img-home h2 {
        width: 100%;
    }

    .content-btn-desplegable-menu {
        margin-bottom: 20px;
    }

    .fixed .content-btn-menu {
        padding-top: 10px;
    }

    /* SEARCH */

    .content-search-menu i.fa-search {
        color: #fff;
        display: inline-flex;
        align-items: center;
        font-size: 1.7rem;
    }

    .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;
        background-color: var(--dark-blue);
        padding: 10px 20px;
        width: 100%;
        z-index: 10;
    }

    .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 */

    /* 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;
    }

    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-headerlogo a img {
        width: 80%;
    }

    /* HOME */
    

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

    .content-video-txt-artes-elements {
        height: auto;
    }

    .cajas-artes-elements {
        height: 250px;
    }

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

    .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-summary-artes-elements {
        margin: 5rem 30px;
        min-height: 350px;
    }

    .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%;
    }


    /* 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;
    }

    /* Carrousell */

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

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

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

    /* Related News */

   /*.field--name-field-link {
        width: calc(100% - 40px)!important;
    }

    .field--name-field-link a {
        padding: 20px;
    }*/



    /* 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;
    }

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

    .region-sidebar-second .block-views {
        margin: 20px 0;
    }

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

    div#edit-field-category-target-id ul {
        display: flex;
        flex-direction: column;
    }

    .view-filters {
        padding: 40px 20px 20px 20px;
    }

    .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;
    }

    #edit-field-status-value .form-item.js-form-type-checkbox {
        margin: 15px 15px 15px 0;
    }


    /*******************************
        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%;
    }

    /*******************************
        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: 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;
    }
    /* Popup video home */
    .video-carrusel-popup {
        padding: 0 20px;
    }
    .content-popup-videos-carrusel i {
        right: 20px;
        top: 60px;
    }
}
