/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 26 2024 | 18:09:06 */
/* CUSTOM GB */

/*PRELOADER*/
@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}


html {
	margin: 0 !important;
}
body {
	/*opacity: 0;*/
}

.gb-container-link {
	z-index: 2;
}

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    overflow: visible;
    background: var(--base);
}
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
    border: 2px solid var(--base-3);
    border-top: 2px solid var(--contrast);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}





/* Headers */
@media (max-width: 767px) {
	.gb-headline-site-header-title {
		width: 100%;
	}
	.gb-headline-site-header-title br {
		display: inline-block;
		content: " ";
		width: 5px;
	}
}

/* Query Loops */
.wp-block-query.alignfull {
	width: 100% !important;
}
.gb-query-loop-wrapper > .gb-query-loop-item > .gb-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Home */
body:not(.home) .only-home {
	display: none;
}
body.home .no-home {
	display: none;
}

.gb-container-img-home video {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	pointer-events:none;
	opacity: 1;
	transition: all 0.5s ease;
}
.gb-container-img-home:hover video {
	opacity: .4;
}
.gb-container-img-home:has(video):before {
	display: none;
}

/* Centres */
.serveis_disponibles sup {
    bottom: 26px;
    font-size: 40%;
    letter-spacing: -.02em;
	margin-right: 30px;
	width: 10px;
    display: inline-flex;
}
@media (max-width: 767px) {
	.serveis_disponibles sup {
		bottom: 10px;
		margin-right: 10px;
	}
}

.single-centres .acf_custom label:has(+ a[href="mailto:"]) {
	display: none;
}


/* Video BG */
.gb-container-full-video-img .wp-block-video {
	position: absolute;
	top: 50%;
    transform: translateY(-50%);
	width: 100%;
	height: 100%;
}
.gb-container-full-video-img .wp-block-video video {
	width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-container-full-video-img:has(.wp-block-video) {
  	background-image: none;
}

.slider-numeros .wp-block-video video {
	width: 100%;
    height: 100%;
    float: left;
}


/* Icons */
.gb-headline-smallest .gb-icon svg {
	height: auto !important;
}

/* Tabs */
.gb-tabs .gb-tabs__buttons .gb-button-tab-button {
	line-height: 50px;
	order: 1;
}
.gb-tabs .gb-tabs__buttons .gb-block-is-current {
	order: 0;
	margin-bottom: 60px;
	pointer-events: none;
}
@media (max-width: 767px) {
	.gb-tabs .gb-tabs__buttons .gb-block-is-current {
		margin-bottom: 0px;
	}
	.gb-tabs .gb-container-tab-items {
		margin-top: 30px;
	}
	.gb-tabs .gb-tabs__buttons {
		overflow: hidden;
	}
}
.gb-tabs .gb-tabs__item {
	opacity: 0;
}
.gb-tabs .gb-tabs__item-open {
	animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


/* Blog */
@media (min-width: 1500px) {
 	.gb-grid-wrapper-newsroom-grid .gb-query-loop-item {
		width: 25%;
	}
}


/* Post */

body.single-post .post-img video {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover !important;
}
body.single-post .wp-block-post-content p {
	margin-bottom: 12px;
}

.wp-block-post-navigation-link a {
	color: transparent;
}
.wp-block-post-navigation-link a svg {
	color: var(--contrast);
	transition: all 0.5s ease;
	transform: translateX(0);
}
.post-navigation-link-previous a:hover svg {
	transform: translateX(21px);
}
.post-navigation-link-next a:hover svg {
	transform: translateX(-21px);
}


/* PORTFOLI */
body.single-portfolio .wp-block-video {
	min-height: 400px;
	height: 60vh;
	width: 100vw;
	overflow: hidden;
	display: inline-grid;
	align-content: center;
	z-index: 2;
	position: relative;
}
body.single-portfolio .wp-block-video video {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover !important;
}
body.single-portfolio .wp-block-video + .featured-image {
	display: none;
}

@media (min-width: 768px) {
	.single-portfolio .dynamic-entry-content .wp-block-heading,
	.single-portfolio .dynamic-entry-content .gb-headline:not(div),
	.single-portfolio .dynamic-entry-content .gb-headline:not(p) {
		position: relative;
		transform: translate(calc(-33.33vw + 20px), 46px);
		max-width: 40%;
    	margin-bottom: 50px;
    	max-height: 0;
	}
	
	.single-portfolio .dynamic-entry-content p + .wp-block-heading,
	.single-portfolio .dynamic-entry-content p + .gb-headline:not(div),
	.single-portfolio .dynamic-entry-content p + .gb-headline:not(p) {
		margin-top: 80px;	
	}
	.single-portfolio .dynamic-entry-content .gb-block-image {
		width: 100vw;
		height: 60vh;
		transform: translateX(calc(-33.33vw - 10px));
		margin-top: 40px;
		margin-bottom: 40px;
	}
	.single-portfolio .dynamic-entry-content .gb-block-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}
