/*
 *
 * Varios
 *
 */

hr {
	margin: 0 !important;
}

audio, canvas, progress, video,
.embedpress-inner-iframe, .embedpress-inner-iframe iframe {
  display: block !important;
}

.ct-featured-image {
	padding-bottom: 20px;
}

p {
	text-align: justify;
  	text-justify: inter-word;
}


/*
 *
 * Content Overlay
 *
 */

body[data-prefix="single_page"],
body[data-prefix="blog"] {
    background-color: var(--theme-palette-color-7);
}

#header [data-row="middle"] {
    background: white !important;
}

.glm-content-overlay {
    background: white;
    position: fixed;
    top: 0;
    left: calc(((100% - min(var(--theme-normal-container-max-width), 100%)) / 2));
    max-width: var(--theme-normal-container-max-width);
    width: 100%;
    height: 100%;
    box-shadow: 0 0 3px 0 #00000028;
}
/* 
body[data-prefix="blog"] .glm-content-overlay {
    background: none;
    box-shadow: none;
} */

.ct-container-full .entry-content > *,
.ct-container .entries > *,
.ct-container-full .type-post > * {
    padding-left: 40px;
    padding-right: 40px;
}

@media screen and (max-width: 1000px) {
    .ct-container-full .entry-content > *,
    .ct-container .entries > *,
    .ct-container-full .type-post > * {
        padding-left: 0px;
        padding-right: 0px;
    }
}


/*
 *
 * Header
 *
 */

#header .site-branding {
    padding: 9px 0;
    margin-right: 40px;
}

#header [data-device="mobile"] .site-branding {
    padding: 5px 0;
}

#header .entry-content {
    padding: 4px 0 5px;
}

#header .entry-content a {
    margin-left: 10px;
}

#header .entry-content a:first-child {
    margin-left: 0;
}

#header .entry-content img {
    height: 25px;
}

/* Efecto subrayado del menu */
#header [data-row='middle'] [data-menu]>ul>li>a::after {
    content: '';
    position: absolute;
    width: calc(100% - 35px);
    height: 2px;
    bottom: 14px;
    left: calc(var(--menu-items-spacing, 25px) / 2);
    transform: scaleX(0);
    background-color: var(--theme-link-hover-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-in-out;
    opacity: 1;
}

#header [data-row='middle'] [data-menu]>ul>li>a:hover::after,
#header [data-row='middle'] [data-menu]>ul>li>a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#header .sub-menu {
    width: auto;
}

#header .sub-menu .ct-menu-link {
    white-space: nowrap;
}

#header #menu-top .sub-menu {
    margin-left: 15px;
}

#header [data-device="desktop"] ul ul ul {
    right: auto;
    left: 100%;
}

#header [data-device="desktop"] #header-menu-1 .sub-menu .ct-menu-link {
    min-width: 140px;
}

nav .ct-menu-link {
    cursor: pointer;
}


/*
 *
 * Language switch
 *
 */

/* Icono */
.pll-parent-menu-item>.ct-menu-link:before,
.pll-parent-menu-item .ct-sub-menu-parent>.ct-menu-link:before {
    font-family: dashicons;
    content: "\f326";
    font-size: 26px;
    opacity: 1;
    position: relative;
    top: calc(-50% + 11px);
    margin-right: 5px;
}

.pll-parent-menu-item>.ct-menu-link:before {
    font-size: 22px;
    top: calc(-50% + 7px);
}



/*
 *
 * Footer
 *
 */

.footer-logos {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
}

.footer-logos a {
    margin: 20px 20px;
}

.footer-logos img {
    height: 30px;
    width: auto;
}



/*
 *
 * Contacto
 *
 */

.wpcf7-form textarea {
    padding: 10px 10px;
}

.wpcf7-form label {
    font-weight: normal !important;
    margin-bottom: 5px;
}



/*
 *
 * Mapa
 *
 */

.imapsContainer foreignObject>div {
    max-width: 500px;
    max-height: 240px;
    margin-bottom: 0;
    padding: 10px;
    display: -webkit-box !important;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.imapsContainer foreignObject>div * {
    white-space: normal;
}

.imapsContainer .glm-showmore {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-weight: normal;
    text-align: center;
    height: 0;
    vertical-align: bottom;
    display: flex;
    flex-flow: column;
    justify-content: end;
    box-shadow: 0px -14px 8px 14px rgba(247, 247, 247, 1);
}

.map-info-modal .glm-modal-title {
	display: none;
}


/*
 *
 * Lista entradas
 *
 */

.entries {
    margin: 20px auto;
}

.entries .entry-card .ct-image-container {
    justify-content: center;
    align-self: center !important;
}

.entries .entry-card .ct-image-container img {
    width: auto;
    max-height: 240px;
}

@media (min-width: 690px) {
    [data-archive="default"][data-layout="simple"] article>.ct-image-container {
        max-width: 35%;
    }
}


/*
 *
 * Entrada
 *
 */

.post.format-standard .ct-image-container {
    justify-content: center;
}

.post.format-standard .ct-image-container img {
    width: auto;
    max-height: 340px;
}


/*
 *
 * Accordion
 *
 */

.eb-accordion-wrapper:not([class*='eb-accordion-hidden']) .eb-accordion-title,
.eb-accordion-wrapper:hover .eb-accordion-title,
.eb-accordion-wrapper:not([class*='eb-accordion-hidden']) .eb-accordion-icon,
.eb-accordion-wrapper:hover .eb-accordion-icon {
    color: var(--theme-palette-color-2);
    transition: color 0.5s;
}

.eb-accordion-wrapper:not([class*='eb-accordion-hidden']) .eb-accordion-title-wrapper,
.eb-accordion-wrapper:hover .eb-accordion-title-wrapper {
    border-color: var(--theme-palette-color-2);
}



/*
 *
 * Home video
 *
 */

.glm-home-video.wp-block-cover {
    padding: 0;
    margin-top: calc(0px - var(--theme-content-vertical-spacing));
    width: auto !important;
    max-width: 100% !important;
    background: black;
    min-height: 0;
	box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.5);
}
.glm-home-video.wp-block-cover .wp-block-cover__background,
.glm-home-video.wp-block-cover .wp-block-cover__video-background {
    max-width: 1600px;
}

.glm-home-video.wp-block-cover .wp-block-cover__background {
    cursor: pointer;
    margin: auto;
    background: linear-gradient(90deg, #000 0%,
        rgba(0, 0, 0, 0.6) 15%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.6) 85%,
        #000 100%) !important;
    opacity: 1;
}

.glm-home-video.wp-block-cover.expanded .wp-block-cover__background {
    display: none;
    background: linear-gradient(90deg, #000 0%, #00000000 2%, #00000000 98%, #000 100%) !important;
}

.glm-home-video.wp-block-cover .wp-block-cover__video-background {
    position: relative;
    max-height: 500px;
}

.glm-home-video.wp-block-cover.expanded .wp-block-cover__video-background {
    max-height: 100%;
    max-width: var(--theme-normal-container-max-width);
    /* max-width: 100%; */
}

.glm-home-video.wp-block-cover .wp-block-cover__inner-container {
    cursor: pointer;
    position: absolute;
    max-width: var(--theme-normal-container-max-width);
}

.glm-home-video .wp-block-group {
    max-width: var(--theme-normal-container-max-width);
    max-width: 560px;
    margin-left: auto;
    color: var(--theme-palette-color-7);
    text-shadow: 0px 0px 7px #000000;
}

.glm-home-video p {
    line-height: 1.8em;
}

.glm-home-video p:first-of-type {
    margin-top: 18px;
}

.glm-home-video .glm-container-link {
    padding: 20px;
}

.glm-home-video .glm-container-link p:last-child {
    margin-bottom: 0;
}

.glm-home-video .glm-container-link:hover {
    color: white;
    background: rgba(0, 0, 0, 0.37);
    border-radius: 5px;
}

.glm-home-video .glm-page-header {
    margin-top: -10px;
}

.glm-home-video .glm-page-header .glm-header-text {
    color: var(--theme-palette-color-7);
}

.glm-home-text {
    display: none;
}

@media screen and (max-width: 1000px) {
    .glm-home-video .wp-block-group {
        display: none;
    }
    .glm-home-text {
        display: block;
    }
}


/*
 *
 * The Observatory logos
 *
 */

 .glm-observatory-logos {
    height: 100%;
    /* margin-top: 10px !important; */
    /* margin-left: 20px; */
    display: flex;
    flex-flow: column wrap;
    /* justify-content: center; */
    align-items: center;
}

.glm-observatory-logos .glm-container-link {
    margin: 15px 0 !important;
}

.glm-observatory-logos figure {
    margin-right: 0 !important;
    margin-left: 0 !important;
    /* max-width: 220px; */
    /* margin-bottom: 40px !important; */
}

.glm-observatory-logos figure:last-of-type {
    /* margin-bottom: 0; */
}

.glm-observatory-logos figure img {
    display: block;
    margin: auto;
    max-width: 280px;
    max-height: 70px;
    width: auto;
}

@media screen and (max-width: 782px) {
    .glm-observatory-logos {
        margin-top: 0 !important;
        margin-left: 0;
        flex-flow: row wrap;
        justify-content: space-evenly;
    }
    .glm-observatory-logos figure {
        /* margin: 20px !important; */
        /* max-width: 230px; */
        /* margin-bottom: 20px !important; */
        max-height: 60px;
    }
}


/*
 *
 * The project logos
 *
 */

.glm-project-logos {
    height: 100%;
    margin-top: 10px !important;
    margin-left: 20px;
    display: flex;
    flex-flow: column wrap;
    /* justify-content: center; */
    align-items: center;
}

.glm-project-logos figure {
    margin-right: 0 !important;
    margin-left: 0 !important;
    max-width: 220px;
    margin-bottom: 40px !important;
}

.glm-project-logos figure:last-of-type {
    margin-bottom: 0;
}

.glm-project-logos figure img {
    display: block;
    margin: auto;
    max-height: 80px;
    width: auto;
}

@media screen and (max-width: 782px) {
    .glm-project-logos {
        margin-top: 0 !important;
        flex-flow: row wrap;
        margin-left: 0;
        justify-content: space-evenly;
    }
    .glm-project-logos figure {
        margin: 20px !important;
        max-width: 230px;
        margin-bottom: 20px !important;
    }
}


/*
 *
 * Post carousel
 *
 */

.eb-post-carousel-wrapper.style-1 .ebpg-carousel-post-holder::after {
    height: 100% !important;
}

.eb-post-carousel-wrapper.style-1 .ebpg-carousel-post-holder {
    padding-top: 15px !important;
    /* border-radius: 10px; 
    box-shadow: 0 0 3px 0 #00000028;
    background: var(--theme-palette-color-7); */
}

.eb-post-carousel-wrapper .ebpg-meta a  {
    margin-bottom: 2px !important;
}

@media screen and (max-width: 800px) {
    .eb-post-carousel-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .slick-arrow {
        display: none !important;
    }
}


/*
 *
 * Autosubs
 *
 */

iframe.glm-autosubs {
    display: block;
    margin: auto;
    width: 100%;
}



/*
 *
 * Popup
 *
 */

.glm-modal-overlay.popup-modal .glm-modal-dialog {
    padding: 25px 15px 5px;
	font-size: 0.95em;
    max-width: 1000px;
}

.glm-modal-overlay.popup-modal .glm-modal-dialog .glm-modal-title {
	font-size: 1.5rem;
	margin-bottom: 0;
}

.glm-modal-overlay.popup-modal .glm-modal-dialog .glm-page-header {
	margin: 15px 0 20px;
}



