/* Basic entities */

:root {
    --scrollbar-width: 17px;
    }


.lib-row {
    display: flex;
    flex-wrap: wrap;
    /* margin-bottom: 3rem; */
    margin: 0 auto;
    gap: 1em;
}

.lib-column {
    flex: 1;
    min-width: 5em;
    gap: 1em;
    display: flex;
    flex-direction: column;
}

.lib-section {
    margin: 0 auto 1rem;
    /* display: flex;
    justify-content: center; */
}

.lib-block {
    /* margin: auto; */
}

.lib-block>* {
    max-width: 100%;
}

.lib-block>a,
.lib-block>*>a {
    color: black;
}


/* Blocks */


/* person Style */

.lib-block-person img {
    display: block;
    /* max-height: 50vh; */
    /* TODO revisar */
    /* min-height: 150px; */
    width: auto;
    margin: auto;
}

.lib-block-sites-list .title {
    text-align: center;
}

.site-list-items {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.lib-block-item-gallery h5,
.lib-block-item-set-gallery h5 {
    font-size: 1em;
    text-align: center;
    margin: 0.33em;
}


/* 
.lib-block-item-gallery img {
    width: auto !important;
    margin: auto;
    display: block;
} */

.swiper-wrapper {
    height: auto !important;
    width: 100%;
}


/* .lib-block-item-gallery .swiper-container .pagination {
    text-align: center;
}

.lib-block-item-gallery .swiper-wrapper {
    align-items: center;
} */

.lib-block-item-gallery .item.show-metadata {
    display: flex;
    flex-wrap: wrap;
}

.lib-block-item-gallery .item.show-metadata>* {
    flex: 1 1 50%;
    min-width: 25em;
}

.lib-block-item-gallery .item.show-metadata .caption {
    text-align: center;
}

.lib-block-item-gallery .item.show-metadata .metadata {
    padding: 1em;
}

.lib-block-item-gallery .item.show-metadata .values .value {
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.lib-block-item-gallery .item.show-metadata .property {
    margin-bottom: 0.66em;
}

.lib-block-header .background {
    min-height: 25em;
}

.lib-block-header .background {
    background-size: cover;
    background-position: center;
    padding: 2em 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* padding: 1em; */
}

.lib-block-header .header-description {
    margin: auto 1em 1em;
    padding: 2em 1em;
    background-color: rgba(180, 180, 180, 0.67);
    border-radius: 1em;
}

.lib-block-header .header-title,
.lib-block-header .header-label {
    display: flex;
    margin-left: 1em;
}

.lib-block-header .header-title .label {
    font-size: 0.8em;
    margin-left: 3em;
}


/* 
.person {
    box-shadow: 0 0.25em 0.5em 0 rgba(0, 0, 0, 0.2);
    margin: auto;
    text-align: center;
}

.person>.info {
    padding: 0 1.5em;
}

.person .title {
    color: grey;
    font-size: 1.125em;
}

.person a {
    text-decoration: none;
    font-size: 2em;
    color: black;
}

.person time {
    font-size: 0.75em;
    color: gray;
}

.personDescription {
    text-align: left;
    margin: 0.625em;
} */


/* Advanced search */

.lib-block-advanced-search #advanced-search {
    margin: 0.5em;
}


/* header */

.libnamic-header {
    text-align: center;
    margin-bottom: 1.25em;
}

.libnamic-header .content {
    padding: 1.25em;
}

.titleHeader {
    font-size: 5em;
    font-weight: bold;
    margin: 0 auto 2rem;
    line-height: 1em;
}

.descripionHeader {
    font-size: 2em;
}


/* libnamic buttom */

.libnamic-button {
    border-radius: 0.75em;
    /* box-shadow: 0.375em 0.375em 0.375em rgba(30, 30, 30, 0.8); */
    padding: 1.25em;
    cursor: pointer;
    display: block;
    background-color: #AAA;
    color: black;
    font-size: 1.1em;
    /* transition: background-color, box-shadow 200ms; */
    white-space: normal;
    margin: auto;
}

.libnamic-button:hover {
    /* background-color: #CCC;
    box-shadow: 0.375em 0.375em 0.375em rgba(127, 127, 127, 0.8); */
}


/* .libnamic-button {
	/* border-bottom: 0.313em solid #0045a6; 
	border-radius: 0.75em;
	box-shadow: 0.375em 0.375em 0.375em #999;
	cursor: pointer;
	display: block;
	font-family: 'Raleway', Arial, Helvetica;
	width: 18.75em !important;
	height: 7.5em;
	margin: 80px auto;
	padding: 1.25em 1.25em;
	text-align: center;
	transition: all 0.2s ease 0s;
	width: 190px;
} */


/* .libnamic-button:active {
	box-shadow: 0.125em 0.125em 0.125em #777, 0px 0px 30.313em 0px #00b7f8;
	border-bottom: 0.063em solid #0045A6;
	text-shadow: 0px 0px 0.313em #fff, 0px 0px 0.313em #fff;
	transform: translateY(0.25em);
	transition: all 0.1s ease 0s;
	margin: 80px auto 70.375em auto;
} */


/* Call to Action */

.cta-libnamic {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 20vh;
}

.cta-libnamic {
    cursor: pointer;
    position: relative;
    padding: 2.5rem 7.5rem;
    border-radius: 1em;
    line-height: 2.5em;
    font-size: 2rem;
    font-weight: 600;
    /* border: 0.063em solid #012880; */
}

.cta-libnamic button {
    width: 10em;
}

.cta-title {
    /*  font-size: 4em; */
    line-height: 1em;
}


/* libnamic-code */

.lib-block-code {
    padding: 2em;
}

.lib-block-code>* {
    margin: 0 auto;
    display: block;
}


/* Accordion */

.libnamic-accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 1.125em;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

.libnamic-accordion .active,
.accordion:hover {
    background-color: #ccc;
}

.libnamic-accordion .panel {
    padding: 0 1.125em;
    background-color: white;
    display: none;
    overflow: hidden;
}


/* .libnamic-audio */


/* .libnamic-audio:hover,
.libnamic-audio:focus,
.libnamic-audio:active {
	-webkit-box-shadow: 0.938em 0.938em 1.25em rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0.938em 0.938em 1.25em rgba(0, 0, 0, 0.4);
	box-shadow: 0.938em 0.938em 1.25em rgba(0, 0, 0, 0.4);
	-webkit-transform: scale(1.05);
	-moz-transform: scale(1.05);
	transform: scale(1.05);
} */


/* .libnamic-audio {
	-webkit-transition: all 0.5s linear;
	-moz-transition: all 0.5s linear;
	-o-transition: all 0.5s linear;
	transition: all 0.5s linear;
	-moz-box-shadow: 0.125em 0.125em 0.25em 0px #006773;
	-webkit-box-shadow: 0.125em 0.125em 0.25em 0px #006773;
	box-shadow: 0.125em 0.125em 0.25em 0px #006773;
	-moz-border-radius: 0.438em 0.438em 0.438em 0.438em;
	-webkit-border-radius: 0.438em 0.438em 0.438em 0.438em;
	border-radius: 0.438em 0.438em 0.438em 0.438em;
} */

.libnamic-contact-form input[type=text],
select,
textarea {
    width: 100%;
    padding: 0.75em;
    border: 0.063em solid #ccc;
    border-radius: 0.25em;
    box-sizing: border-box;
    margin-top: 0.375em;
    margin-bottom: 10.375em;
    resize: vertical;
}

select {
    padding: 0;
    margin-bottom: 0;
}

.libnamic-contact-form input[type=email] {
    width: 100%;
    padding: 0.75em;
    border: 0.063em solid #ccc;
    border-radius: 0.25em;
    box-sizing: border-box;
    margin-top: 0.375em;
    margin-bottom: 10.375em;
    resize: vertical;
}

.libnamic-contact-form input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 0.75em 1.25em;
    border: none;
    border-radius: 0.25em;
    cursor: pointer;
}

.libnamic-contact-form input[type=submit]:hover {
    background-color: #45a049;
}


/* libnamic Map */

.libnamic-custom-map .map-title {
    font-size: 1.125em;
    font-weight: bold;
}


/* libnamic page title */

.libnamic-title {
    font-size: 1.875em;
    color: black;
    font-weight: bold;
}


/* libnamic Social Media Follow */

.libnamic-social-media-follow {
    padding: 0px;
    margin: 0px;
    position: fixed;
    right: -11.875em;
    top: 21.875em;
    width: 13.125em;
    z-index: 1100;
}

.libnamic-sticky li {
    list-style-type: none;
    background-color: #fff;
    color: #efefef;
    height: 2.688em;
    padding: 0px;
    margin: 0px 0px 0.063em 0px;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.libnamic-sticky li:hover {
    margin-left: -10.938em;
}

.libnamic-sticky li img {
    float: left;
    margin: 0.313em 0.25em;
    margin-right: 0.313em;
}

.libnamic-sticky li p {
    padding-top: 0.313em;
    margin: 0px;
    line-height: 10.375em;
    font-size: 10.063em;
}

.libnamic-sticky li p a {
    text-decoration: none;
    color: #2C3539;
}

.libnamic-sticky li p a:hover {
    text-decoration: underline;
}


/* libnamic text */

.libnamic-text {
    padding: 1em;
    padding-top: 0;
}

.libnamic-text,
.title-libnamic-text {
    font-size: 1.125em;
    /* margin-bottom: 2em; */
}

.libnamic-text,
.title-libnamic-text {
    font-size: 1.25em;
}


/* libnamic image */

.libnamic-image {
    width: 50%;
    text-align: center;
    max-height: 18.75em;
}

.libnamic-image-title {
    font-size: 1.125em;
    font-weight: bold;
}

.libnamic-image-description {
    font-size: 0.938em;
    font-weight: lighter;
}

.libnamic-imag img {
    object-fit: contain;
}


/* social bar */

.libnamic-social-bar {
    text-align: center;
}

.socialBar {
    display: inline;
    padding-left: 0.188em;
    padding-right: 0.188em;
    list-style-type: none;
    text-align: center;
}

.socialBar li {
    display: inline-block;
    text-align: center;
    margin: 0 0.625em 0 0;
}

.shared-panel {
    overflow: auto;
}

.shared-panel span {
    margin: 0.625em 0;
    font-size: 10.375em;
    font-weight: 600;
}

.shared {
    display: inline-block;
    width: 1.875em;
    height: 1.875em;
    margin: 0.313em 0;
    padding: 0;
    float: left;
    margin-right: 0.313em;
    cursor: pointer;
    border-radius: 50%;
}

.shared:hover {
    opacity: 0.7;
}


/* omeka item */

.omeka-item .item-title {
    font-weight: bold;
    font-size: 1.5em;
}

.omeka-item .item-title {
    font-weight: bold;
}

.omeka-item .value {
    margin-left: 2em;
}

.omeka-item .resource-link {
    font-weight: bold;
    margin-bottom: 4em;
}


/* slider libnamic */

.libnamic-slider {
    margin: 0 auto;
    /* padding: 6em; */
}

.libnamic-slider img {
    margin: 0 auto;
}

.slider-title {
    font-size: 3.5em;
    text-align: center;
    line-height: unset;
}


/* libnamic item-showcase */

.libnamic-item-showcase .resource-link {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 1.5em;
    width: 50%;
    padding: 2em;
}

.libnamic-item-showcase .resource-link img {
    height: unset;
}

.libnamic-item-showcase .resource-link .resource-name {
    margin-top: 2em;
}


/* custom uca changes */

.libnamic-image {
    /* width: 50%; */
    /* text-align: center; */
    /* max-height: 18.75em;
    width: 30em; */
    /* height: s; */
    overflow: hidden;
    /* margin: 0 auto; */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.libnamic-image-title {
    /* display: flex;
    align-items: center;
    align-self: center;
    position: relative;
    top: -4.5em;
    left: 2em; */
    text-align: center;
}

.lib-block-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.libnamic-image-title h2 span {
    border-radius: 2em;
    padding: 0.25em 1.5em;
    background: #E5E5E5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    width: 90%;
}

.libnamic-image {
    /* width: 50%; */
    /* text-align: center; */
    /* max-height: 18.75em; */
    /*! width: 30em; */
    /*! overflow: hidden; */
    /* margin: 0 auto; */
    /*! display: block; */
    margin-left: auto;
    margin-right: auto;
}

.libnamic-image {
    width: 90%;
    text-align: center;
    /* max-height: 18.75em; */
}

/* p {
    font-size: 0.9em;
} */

.entrada {
    width: 3em;
    height: 3em;
    background: #E5E5E5;
    border-radius: 50%;
    text-align: center;
    color: black;
    line-height: 60px;
    vertical-align: middle;
}


/* 
.libnamic-image-title h2 {
    width: 80%;
} */

.acceso.fas.fa-arrow-right {
    float: right;
    margin-right: 2em;
    background: #ddd;
    opacity: 0.7;
    border-radius: 2em;
    width: 2em;
    text-align: center;
    /* padding-top: 0.25em; */
    height: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.breadcrumbs {
    /* display: none !important; */
}

.content-libnamic-text {
    padding-left: 0.75em;
    padding-right: 0.65em;
}

.libnamic-image-img {
    background-size: cover;
    /* width: 100%; */
    background-repeat: no-repeat;
    /* flex: 1; */
    min-height: 20em;
    min-width: 20em;
    margin-top: 1em;
    background-position: center;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 3em;
}


/* .grid-item {
	float: left;
	width: 180px;
	height: 160px;
	border: 2px solid hsla(0, 0%, 0%, 0.5);
	margin-bottom: 10px;
}

.grid-item--width2 {
	width: 360px;
}

.grid-item--height2 {
	height: 140px;
}

.grid-sizer,
.grid-item {
	width: 22%;
}

.gutter-sizer {
	width: 4%;
}

.grid-item--width2 {
	width: 48%;
} */


/* list-pages */

.list_pages {
    display: flex;
    flex-direction: column;
}

.list_pages_item {
    list-style: none;
}


/* list-sites  */

.site_list {
    display: flex;
    flex-direction: column;
}

.site_list_item {
    list-style: none;
}

select#target {
    height: 8em;
}


/* page Slider */

.page-slider-title {
    background-color: #8c8c8ced;
    border-radius: 3em;
    width: 18em;
    padding-left: 2em;
    position: absolute;
    bottom: 1em;
    font-size: 1.25em;
    max-width: 100%;
    left: 0em;
    box-shadow: 0.25em 0.25em 0.5em 0em rgba(40, 40, 40, 0.85);
    color: white;
    padding: 1em;
    min-width: 16em;
}


/*  grid gallery*/

.grid-slider {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    /* width: 80%; */
    justify-content: center;
    /* align-items: center; */
    gap: 1em;
    margin: 0.7em;
}

.grid-item {
    flex: 1 1 43.333%;
    min-width: 10em;
}


/* body {
        background-color: #F9F8F3;
    }

   
    #content {
        position: relative;
    }

    #content::before {
        content: '';
        background-image: var(--background);
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0.2;
        background-size: cover;
        background-attachment: fixed;

    } */


/* masonry */

.grid-container.grid {
    display: flex;
}

.grid-container.masonry {
    columns: 3 190px;
    column-gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    height: 100%;
}

.grid-masonry-item {
    /* width: 90px; */
    margin: 1rem;
    display: inline-block;
    max-width: 100%;
    /* padding: 0.33em; */
    /* box-shadow: 5px 5px 0.33em rgba(0, 0, 0, 0.5); */
    border-radius: 5px;
    /* transition: all .25s ease-in-out; */
}


/* .grid-container div:hover img {
        filter: grayscale(0);
    } */

.grid-container img {
    max-width: 100%;
    display: block;
    margin: 1em auto 0;
    /* filter: grayscale(100%); */
    border-radius: 5px;
    /* transition: all .25s ease-in-out; */
}

.grid-container div p {
    margin: 5px 0;
    padding: 0;
    text-align: center;
    font-style: italic;
}

.itemset-title {
    background-color: #8c8c8ced;
    border-radius: 3em;
    width: 18em;
    padding-left: 2em;
    position: absolute;
    bottom: 1em;
    font-size: 1.25em;
    max-width: 100%;
    left: 0em;
    box-shadow: 0.25em 0.25em 0.5em 0em rgba(40, 40, 40, 0.85);
    color: white;
    padding: 1em;
    min-width: 16em;
}


/* clear fix */

.grid:after {
    content: '';
    display: block;
    clear: both;
}


/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
    width: 43.333%;
}

.grid-item {
    /* margin: 1em; */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex-direction: column;
}

.grid-item a {
    /* margin: 1em; */
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
}

.lib-block-item-set-gallery .grid-item {
    align-items: baseline;
}

/* lib-block-item-set */
.lib-block-item-set .item-set-selection {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.grid-sizer {
    width: 45%;
}

.slider-grid .grid-item img {
    display: block;
    max-width: 100%;
    padding: 0.25em;
    margin: 0 auto;
}


/* slider gallery */


/* Slideshow container */

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}


/* Hide the images by default */

.mySlides {
    display: none;
    text-align: center;
}


/* Next & previous buttons */

.prev,
.next {
    cursor: pointer;
    position: absolute;
    /* top: 50%; */
    width: auto;
    /* margin-top: -22px; */
    padding: 16px;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}


/* Position the "next button" to the right */

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


/* On hover, add a black background color with a little bit see-through */

.prev:hover,
.next:hover {
    background-color: rgba(130, 128, 128, 0.8);
}


/* Caption text */


/* .text {
    color: #2c2c2c;
    font-size: 0.85em;
    padding: 8px 12px;
    position: absolute;
    bottom: 2em;
    left: 11em;
    width: 20em;
    text-align: center;
    background: #C4C4C4;
    border-radius: 2em
} */


/* The dots/bullets/indicators */

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dots .active,
.dot:hover {
    background-color: #717171;
}


/* Fading animation */

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}


/* sliders */

.lib-block-item-set-gallery {
    display: flex;
    flex-wrap: wrap;
}

.lib-block-item-set-gallery .item-set-gallery-list {
    display: inline;
    flex-wrap: wrap;
}


/* sliders item grid */

#list-disposition {
    float: right;
    background: #C4C4C4;
    padding: 0.65em;
    cursor: pointer;
}

.change-disposition-icon {
    margin-right: 1em;
}


/* Domando el owl */

body .owl-carousel .owl-item img {
    display: block;
    max-width: 100%;
    width: auto;
}

.owl-carousel .item {
    display: flex;
}

.owl-carousel .item a {
    display: block;
    margin: auto;
}


/* page list */

.pagesList,
.pagesList ul {
    list-style: none;
}

.lib-block-list-sites-pages .navigation ul {
    list-style-type: none;
    margin: 0;
    /* padding-left: 2em;
    width: 200px; */
    background-color: unset;
    list-style: none;
}

.lib-block-list-sites-pages .navigation {
    list-style-type: none;
}

.caption-text {
    text-align: center;
}

.item-simple-image {
    width: 50%;
}

.lib-block-person {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.o-icon-delete.remove-value.button {
    background: unset;
}

.lib-block-header .header-title .label {
    font-size: 0.5em;
    margin-left: 3em;
    opacity: 0.7;
}

.cta-button {
    display: flex;
    width: 115px;
    height: 25px;
    /* background: #4E9CAF; */
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    line-height: 25px;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets {
    margin-top: 1em;
    position: relative;
}

.lib-block-search {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}


.item.swiper-slide {
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iziModal-content {
    padding: 1em !important;
}

.custom-form {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
}

.custom-form p {
    flex: 1;
    flex-basis: 40%;
    min-width: 15em;
}

input.special-search-input {
    flex: 1;

    width: 100%;
}

.caption-text {
    text-align: center;
    display: flex;
    justify-content: center;
    /* gap: 1em; */
    flex-direction: column;
}

.picture-container {

    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

}

/* Estilos para tag-cloud (los estilos son diferentes para
    cada tipo, existe el tipo ordinal y el tipo list) */

.block-tagcloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.block-tagcloud h2 {
    flex-basis: 100%;
}

.block-tagcloud.ordinal>a:hover {
    /* box-shadow: 0 0 0.75em #ffcc00bf;
    text-shadow: 0 0 1em #a9cddfd1; */
    opacity: 0.7;
}

.block-tagcloud.ordinal>a {
    transition: 250ms box-shadow, 250ms text-shadow;
    margin: 0.5em 1em;
    display: inline-block;
    border: solid 2px #8da2ad;
    padding: 0.33em 0.5em;
    border-radius: 0.5em;
    background-color: rgba(220, 230, 240, 0.67);
}


/* list */

.block-tagcloud.list {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    background: none;
}

.block-tagcloud.list>a {

    background-color: unset !important;
    border: unset !important;
}

.block-tagcloud.list>a:hover {
    box-shadow: unset !important;
    text-shadow: unset !important;
    text-decoration: underline;
}

/* img {
    max-height: 50vh;
} */

.lib-block h1 {
    margin: 0;
}

.lib-block-audio img {
    display: block;
    margin: auto;
    width: 50vw;
    min-width: 13em;
    max-height: initial;
}


.lib-block-modal {
    cursor: pointer;
}

/* --------------------------------- */

/* Section layouts */
.lib-section-stretch {
    padding: 0 8%;
}


.lib-section-full .lib-row {
    width: 100vw;
    flex-shrink: 0;
}

.lib-block-item .item {
    margin: .5rem 0;
}

/* -------------------------------- */
/* bloque item-set */

.info-item-set {
    /* display: flex; */
    /* width: 60%; */
    position: relative;
    z-index: 100;
    /* background-color: rgb(0,0,0,0.7); */
    background: rgba(180, 180, 180, 0.7);
    padding: 1em;
    /* color: white; */
}

img.img-item-set {
    position: absolute;
    width: 100%;
    object-fit: cover;
    height: 100%;
    max-height: initial;
}

.empty-slider-image {
    min-height: 25em;
}

.item-content {
    margin: 2em;
    padding: 3em;
    /* background: rgb(0,0,0,0.7); */
    background: rgba(180, 180, 180, 0.7);
    position: relative;
    display: flex;
    justify-content: center;
    height: 50vh;
}

/* .item-content img{
    height: 25em;
} */

.text-item-set,
.text-item-set p {
    /* overflow: hidden;
    text-wrap:nowrap;
    white-space: nowrap;
    text-overflow: ellipsis; */

}

.text-item-slide {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 96%;
    padding: 2%;
    /* color: white; */
    /* overflow: hidden;
    text-wrap: nowrap;
    white-space: nowrap;
    text-overflow: ellipsis; */
    /* background: rgb(0,0,0,0.7); */
    background: rgba(180, 180, 180, 0.7);

}

.text-item-slide h3 {
    width: 100%;
    /* color: white; */
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* margin: 1em; */
}

.item-set {
    position: relative;
}


.item-swiper-button-next::after,
.item-swiper-button-prev:after {
    color: black;
    background-color: rgba(180, 180, 180);
    border-radius: 2em;
    padding: 0.2em;
    font-size: 0.5em;
}

/* lib-block-item-set */
.lib-block-item-set .item-content img {
    max-height: 100%;
    margin: auto;
}
.lib-block-item-set .item {
    height: 100%;
    display: flex;
    justify-content: center;
}
.lib-block-item-set .item-set-selection .item-set{
   /*  max-height: 50vh; */
}
.lib-section.lib-section-full>* {
    position: relative;
    width: calc(100vw - var(--scrollbar-width));
    left: 50%;
    transform: translateX(-50%);
}

.lib-section.lib-section-wide>* {
    width: 110%;
    max-width: 100vw;
    margin-right: max(-5%, calc(100% - 100vw));
    margin-left: max(-5%, calc(100% - 100vw));
}


/* sites-list-grip */
.sites-list-grip {

    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}


.grip-site {

    flex: 1 1 40em;

}
.grip-site a.site-link {
    margin-left: 1rem;
    font-size: 1.5rem;
}
.grip-site img {
    height: 25em;
    margin: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.sites-grid-slider img,
.swiper-container img{
    width: 95%;
    height: 30rem;
    object-fit: contain;
}

.sites-swiper {
    width: 100%;
    height: 100%;
          margin: auto 1em;
  }

  .sites-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sites-swiper .site-list {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
          margin: 0 2vw;

  }

.item-set.item-set-hide-sliders, .item-set-header-sliders {
    min-height: 35em;
}
.info-item-set-container {
    height: 35em;
}

/* item gallery */
/* item gallery swiper Side full width (item-gallery-fullwidth) */

.item-gallery-fullwidth .swiper-container a {
    display: block;
    width: 100%;
}

.item-gallery-fullwidth .swiper-container a img{
    
    width: 100%;
    object-fit:cover;
}
/* item gallery grip */
.lib-block-item-gallery .grid-item img {
    width: 100%;
    height: 30em;
    object-fit: contain;
}

/* lib-block-item-set-gallery */

.lib-block-item-set-gallery .grid-item img{

   width: 100%;
   max-height: 30rem;
}

/* Bloque item-set */

.lib-block-item-set .item-content img {
    height: 50vh;
    width: 100%;
    object-fit: contain;
}


/* Media Queries para columnas */

/* Para pantallas menores de 950px */
@media (max-width: 950px) {
    .lib-row.lib-col-1-1-1,
    .lib-row.lib-col-1-1-1-1,
    .lib-row.lib-col-1-1-1-1-1,
    .lib-row.lib-col-1-1-1-1-1-1,
    .lib-row.lib-col-1-1-1-2,
    .lib-row.lib-col-2-1-1-1 {
        flex-direction: column;
        display: block;
    }
}

/* Para pantallas menores de 750px */
@media (max-width: 750px) {
    .lib-row.lib-col-1-1,
    .lib-row.lib-col-1-1-1,
    .lib-row.lib-col-1-2-1,
    .lib-row.lib-col-1-3-1,
    .lib-row.lib-col-1-1-2,
    .lib-row.lib-col-2-1-1,
    .lib-row.lib-col-1-1-3,
    .lib-row.lib-col-3-1-1 {
        flex-direction: column;
        display: block;
    }
}

/* Para pantallas menores de 550px */
@media (max-width: 550px) {
    .lib-row.lib-col-3-2,
    .lib-row.lib-col-2-3,
    .lib-row.lib-col-1-2,
    .lib-row.lib-col-2-1,
    .lib-row.lib-col-1-3,
    .lib-row.lib-col-3-1 {
        flex-direction: column;
        display: block;
    }
}
  /* imagenes dentro de metadata en item-gallery */
 
.metadata .property img {
    max-height: 9rem;
}

.lib-block-item-gallery .grid-item .metadata img {
    height: 8em;
}

@media (max-width: 750px) {
    
    .lib-block-item-gallery .grid-item img {
        height: initial;
        max-height: 30rem;
    }
  }


  .alphabetical-index{

      margin-bottom: 2rem;
  }
  .alphabetical-index span{
    display: inline-block;
    padding: 8px;
    margin: 4px;
    /* background-color: #3498db; */
    border: 1px solid #444;
    /* color: #ffffff; */
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;

  }


  .dataTables_scrollHeadInner {
    margin: 0 auto;
    }

  .alphabetical-index span.in-table{
    background-color: #f3f0f0;
    
  }

  .alphabetical-index span.in-table.active{
    background-color: #444;
    color: #ffffff;
  }

  .alphabetical-index span.in-table.active:hover{
    background-color: #444;
    
  }
  .alphabetical-index span.in-table:hover{
    background-color: #dedede;
    
  }
  .alphabetical-index span.off{
    cursor: not-allowed;
    opacity: 0.4;
  }

  .dataTables_paginate a.next {
    position: relative;
    width: initial;
    /* margin-top: -22px; */
    padding: initial;
    color: initial;
    font-weight: initial;
    font-size: 1rem;
    transition: initial;
    border-radius: initial;
    user-select: initial;
}

.dataTables_length select {
    width: initial; 
    
}


/* Video imagen */


 /* Estilo para el contenedor de la imagen con el logo */
 .lib-block-video .image-container {
    position: relative;
    width: 560px;
    height: 315px;
    overflow: hidden;
    cursor: pointer;
}
/* Estilo para la imagen */
.lib-block-video .image-container img {
    width: 560px;
    height: 315px;
    display: block;
    object-fit: cover;
}
/* Estilo para el logo (ícono de reproducción) */
.lib-block-video .play-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff; /* Color del ícono */
    font-size: 1.4rem; /* Tamaño del ícono */
    z-index: 1;
    padding: 1rem 2.2rem;
    border-radius: 1rem;
    background-color: red;
}

/* Estilo para el iframe de YouTube */
.lib-block-video .youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

/* timeline */
body.items.search #content h2.tl-headline{

    text-align: center;
}


.media-render-content .iiif,.media-render-content .openseadragon {
    max-width: 100%;
}

.lib-block-item-show img{
 width: 100%;
}

.resource-paginate {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 400px) {
    
    .resource-paginate {
        flex-direction: column;
    }
  }


.resource-paginate-next {
    text-align: end;
}

/* item-set-belongs-show-list-content , item-set-of-item-show*/

.site-gallerie-list a, .item-gallery-list-content a, .item-set-of-item-show-list-content a {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 2em;
    margin: 1rem 0;
    width: fit-content;
}

.site-gallerie-list img, .item-gallery-list img, .item-set-of-item-show-list-content img{
    width: 7em;
    object-fit: contain;
    height: 7em;
}

@media (max-width: 500px) {
    .site-gallerie-list a, .item-gallery-list-content a, .item-set-of-item-show-list-content a {
        width: initial;
        flex-direction: column;
    }
}


.lib-block-item-set-of-item-show .grid-item img{

    width: 100%;
    max-height: 30rem;
 }

 .lib-block-item-set-of-item-show .item-set-title {
    text-align: center;
 }

 /* .lib-block-item-set-of-item-show .sites-swiper .swiper-slide {
        background: initial;
        
    } */



 @media (max-width: 500px) {
    .lib-block-item-set-of-item-show .swiper-container img {
        height: 15rem;
    }
}

.pagination .button, .pagination .resource-list.preview+a {
    position: relative;
    
}


/* Show medias */

.thumbnail {
    display: flex;
    flex-direction: column; /* Para apilar los elementos verticalmente */
    align-items: center;    /* Centrar los elementos horizontalmente */
    
  }
  
  .lib-block-view-media-show .icon-eye i{
    font-size:2rem;
    color: var(--accent) ;
  }
.show-media-modal .iziModal-content {
  padding: 1em !important;
  width: initial !important;
}
    
.modal.show-media-modal{
  padding: 1rem;
}

.swiper-item-show-media .swiper-slide{
    flex-direction: column;
}
.swiper-item-show-media .swiper-slide h3{ 
    text-align: center;
}


.item-media-render .text{
    text-align: center;
}


/* Parte publica Grid  */


.blocks .lib-section>.lib-col-grid>.lib-column, .modal .lib-col-grid>.lib-column{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    /* grid-auto-rows: 1fr; */
    grid-auto-rows: 4em;
    overflow: hidden;
  }
  .lib-col-grid  img{
    max-height: 100%;
    max-width: 100%;
}

.lib-col-grid .lib-block-video iframe, .lib-col-grid .lib-block-video img,.lib-col-grid .lib-block-video .image-container{
    width: 100%;
    height: 100%;
}



header:has(.blocks){
    display: block;
}

.lib-col-grid .lib-block>* {
    max-width: 100%;
    max-height: 100%;
}

header .lib-block form#search-form input[type=text]{
        display: block;
        position: static;
}

.blocks .menu.sm a{
    font-size: 18px;
} 


.item figure{
    margin: 0;
}

.lib-block-cta button, .lib-block-modal button{
    cursor: pointer;

}

.block .lib-block-item-set .item-content {
    width: 100%;
}

.lib-entity.lib-column:not(:has(.lib-entity.lib-block div)) {
    
    gap: 0;
}

.item-with-metadata .resource.show:not(:has(div)) {
    margin: 0;
   
}

.blocks-inner.page-layout-grid:has(.block.block-libBlockEditor){
    display: block;

}

.descendants.tree ~ .dataTables_wrapper,.descendants.tree ~ .data-table-tree > .alphabetical-index{
    margin-top: 1em;
}

table .has-media{
    height: 1.6em;
}

.lib-block-tree-table-archivo {
    display: flex;
    gap: 0.5rem;
}


.lib-block-tree-table-archivo .data-table-tree {
    flex: 1 1 69%;
    /* border: 1px solid black; */
    padding: 0.3rem;
    min-height: 20rem;
}

.lib-block-tree-table-archivo .descendants.tree {
    flex: 0 1 30%;
}

@media (max-width: 768px) {

    div .lib-block-tree-table-archivo {
       
        gap: 1rem;
    }
    div .lib-block-tree-table-archivo {
        flex-direction: column;
    }

    div .lib-block-tree-table-archivo .data-table-tree {
        flex: initial;
       
    }
    
    div .lib-block-tree-table-archivo .descendants.tree {
        flex: initial;
    }
}