

/* Media queries */
@media (max-width:1000px) {
    .lib-row {
       
        margin-bottom: 0!important;
    }
    .lib-block {
      padding: 0.5em!important;
    }
    .lib-column {
       
        padding-bottom: 0;
    }
    .expositions-title{
        margin-bottom: 0!important;
            }
}

@media(min-width:900px) {
    .navigation_template1 {
        flex-wrap: nowrap !important;
    }

    .header-template2 {
        flex-wrap: nowrap !important;
    }

    .template3 {
        flex-wrap: nowrap !important;
    }

    .footer_logo_template2 {
        flex-wrap: nowrap !important;
    }

}

@media(max-width:900px) {
    

    .template3 {
        flex-wrap: wrap;
    }

    .image1 {
        order: -2;
    }

    .logo-archivo .second {
        order: -3;
    }

    .logo-archivo .second {
        order: -1;
    }

    .subheader1 {
        flex-wrap: wrap;
        margin-top: 1em;
    }

    .subheader1>a:nth-child(4) {
        order: 2 !important;
    }

    #mainFooter {
        justify-content: initial;
    }

    #mainFooter {
        flex-wrap: wrap;
    }

    .site-logo-template2 {

        order: -1;
    }

    #language-selector-template2 {

        min-width: 10em;
    }

    #search-template2 {
        min-width: 10em;
    }

    #language-selector-dark {

        min-width: 10em;
    }

    .footer_logo_archivo_template2 {

        min-width: 10em;
    }

    .footer_logo_archivo_template2,
    .footer_logo_archivo_template2, #footer_template2 a>img, .footer_logo_archivo_template2 {

        min-width: 10em;
    }

    .footer_logo_template2 {
        /* width: 15%; */
        min-width: 10em;
        /* flex: 1; */
        order: -1;
        text-align: center;
        width: 100% !important;
    }

    #footer_template2 a>img {
        width: 70% !important;

    }

    .archivo_logo_template2>img {
        height: 4em !important;
    }

}

@media (max-width: 1100px) {
    .lib-section.lib-fullwidth {
        margin-left: calc(50% - 49vw);
        margin-right: calc(50% - 49vw);
       
    }
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    #header_template1 .site-logo {
        order: 0;
        width: 100%;
        flex: 1;
    }

    .site-title img {
        order: 1;
    }

    .subheader1 #language-selector {
        order: 3;
    }

    .subheader1 {
        gap: 1em;
    }


    


    .subheader1>a:nth-child(4) {
        order: 4;
    }

    #header_template1 {
        padding: 0;
        /* margin-top: 2em; */
    }
}

@media (max-width: 900px) {
    .site-title {
        order: 1;
    }
    /* .lib-entity.lib-block.lib-block-item-gallery.galeria-inicio {
        max-height: 20em;
        overflow: hidden;
        margin-top: 4em;
    } */

    .grid-container {
        column-count: 2;
    }

    #header_template1 .site-logo {
        min-width: 100% !important;
        text-align: center;
    }
}

@media (max-width: 600px) {
    html {
        height: 100%;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        /* max-width: 100%; */
        padding: 1em;
    }
    .linked-items table {
        width: 100%;
        display: block;
        overflow-x: auto;
      }
    .lib-section.lib-fullwidth {
        margin-left: calc(50% - 48vw);
        margin-right: calc(50% - 48vw);
        
       
    }
    .lib-entity.lib-block.lib-block-item-gallery.galeria-inicio {
        margin-top: unset;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-container {
        column-count: 1;
    }

    .navigation_template1 {
        top: 7em !important;
    }

    .navigation_template1 {
        gap: 0.25em;
    }

    .header-template2 {

        height: unset !important;
    }
}
@media(max-width:750px) {
    
}
@media (max-width: 550px) {
    html {
        height: 100%;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        /* max-width: 100%; */
        padding: 1em;
    }
    .navigation_template1 {
        top: 0 !important;
    }

    .subheader2 {
        margin-top: 0 !important;
    }
}

@media (max-width: 500px) {

    .text-counter {

        line-height: 0.85em;
    }
    .site-logo img {
        min-width: unset;
    }

    .lib-block-item-gallery h5 {
        font-size: 1em !important;
        width: 80%;
        
    }
  
    .lib-row {
      
        margin-bottom: 0rem;
    }
    .template3_nav {
        top: unset !important;
        margin-top: 2em;
    }

    .template3>.site-logo {
        order: -1;
    }

    .template3 #language-selector {
        order: 3;
    }
    .search_template1 {
       
        margin-bottom: 1em;
    }

    .template3 {
        gap: 20px !important;
    }

    .template3 .logo_archivo {

        order: 0;
        margin-bottom: 1em;
    }

    .flex-section img {
        display: none;
    }

    .grid-container {
        column-count: 1;
    }

    .template3>.site-logo {
        flex: 1;
    }

    #language-selector {
        flex: 1;
    }

    #archivo-logo {
        flex: 1;
    }

    #header img {
        /* max-width: 60%; */
        /* object-fit: contain; */
        width: 100%;
        /* height: 27%; */
        max-height: 5em;
    }

    .figure-flex {
        flex-wrap: wrap;
    }

    .visible_menu nav {
        left: 0 !important;
    }
}

@media (max-width:400px) {
    .lib-row {

        justify-content: center;
    }

    html {
        width: 80%;
    }

    .icons-group {
        right: 50%;
    }

    .template3_nav {
        position: relative;
        top: unset;
    }

    .lib-entity.lib-block.lib-block-item-gallery.galeria-inicio {
        margin-top: 0;
    }

   

    .row-count {
        display: none;
    }
}

@media (max-width:450px) {

    #center_area {
        flex: 1 80%;
       
        margin-bottom: 1em;
    }
    .template3_nav {
        position: relative;
        top: unset;
    }


    .subheader1 {
        margin-bottom: 1em;
    }

    .site-title {
        flex: 1 20%;
    }

    .site-title img {
        width: 100%;
    }

    .logo_end_template0 {
        width: 100% !important;
        max-width: 8em;
    }

    .subheader1>a:nth-child(4) {
        width: 100%;
        text-align: center;
    }

    .subheader1 {
        gap: 1em !important;
    }

    html {
        width: 80%;
    }

    .image1 {
        width: 100%;
        order: -3;
    }

    #mainFooter img {
        width: 100% !important;
        height: 4em !important;
        flex: 1;
    }

    .logo_archivo {
        width: 100% !important;
        order: -3;
        margin-bottom: 1em;
    }

    .second {
        order: -4;
    }
}

/* end media queries section */
#content .property h4 {
    margin: 0;
}

.property {

    padding-bottom: 1em;
}

.media-title {
   
    background: var(--box-color);
 
    padding: 0.25em;
    bottom: 0em;
    /* max-height: 2em; */
}

.language_control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
  margin-top: -0.8em;
    top: 1.75em;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
}

#mainFooter .language_control {

    margin: unset;
    min-width: 6em;
    flex: 1 10%;
    position: inherit;
}

.active_language {
    border-bottom: var(--font-title-color) 2px solid;
}

.pagination form {
	order: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	background: unset;
	color: unset;
	flex: 1;
    margin: 0;
}
.page-input-top {
    height: 1.75em;
    margin-right: 1em !important;
    height: 2em;
    }
    .pagination input {
      
        height: 2.25em;
        color: var(--font-ordinal-color);
font-weight: 500;
    }