/*!
Theme Name: Divi Child
Template: Divi
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 4.13.1
Description: Divi Child Theme
Author: LaCo
Author URI: https://laco.ch
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--color-primary: #b82a35;
	--color-secondary: #0937AA;
}

img {
	object-fit: cover;
}

.sticky-button-ctn {
	position: fixed;
	z-index: 2;
	top: 50%;
	right: 0;

	writing-mode: vertical-rl;
	transform: translateY(-50%) rotate(180deg);
	backface-visibility: hidden;
}

.sticky-button {
	display: flex;
	justify-content: center;
	align-items: center;

	padding:  0.75rem 0.4rem;
	gap: 0.65rem;
    font-size: 0.9rem;
	color: #FFF;
	font-weight: 600;

	background-color: var(--color-secondary);
	border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
    .sticky-button {
        padding: 0.75rem 0.05rem;
        font-size: 0.75rem;
    }
}

.sticky-button::after {
		content: "";
		display: flex;
		align-items: center;
		justify-content: center;

		block-size: 1rem;
		aspect-ratio: 1;

		background-color: #fff;

		transform: rotate(-180deg);

		mask-repeat: no-repeat;
		mask-size: contain;
		mask-position: center;
		mask-image:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' fill='none' viewBox='0 0 10 16'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M7.484 8.617A2.51 2.51 0 0 1 10 11.121v4.634H8.24v-1.809H1.73v1.809H0V11.12a2.51 2.51 0 0 1 2.516-2.504zM2.327 10.3c-.347 0-.629.258-.629.576v1.325h6.635v-1.325c0-.318-.282-.576-.629-.576zm-.629-5.552c0 .347.282.629.63.629h1.791V0h1.667v5.377H7.58a.63.63 0 0 0 .629-.629V0H10v4.654A2.516 2.516 0 0 1 7.484 7.17H2.516A2.516 2.516 0 0 1 0 4.654V0h1.698z' clip-rule='evenodd' opacity='.88'/%3E%3C/svg%3E");;
	}

.projects-slider {
	.swiper-slide {
		height: 60vh;
		min-height: 500px;

		transition: all 0.3s ease-in-out;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}

		&:not(.swiper-slide-active) {
			transform: scale(0.95);
			opacity: 0.5;
		}
	}

	.swiper-scrollbar {
		all: unset;
		display: block;
		margin: 40px auto 0;
		width: 30%;
		height: 4px;
		background-color: #f2f2f2;

		.swiper-scrollbar-drag {
			height: 4px;
			background-color: var(--color-primary);
		}
	}
}

.acf-gallery {
	--_gap: 2.5rem;
	display: flex;
	gap: var(--_gap);

	> * {
		flex: 1 0 0;
	}
}

.acf-gallery__main {
	position: relative;
}

.acf-gallery__grid {
	--_columns: 2;
	display: flex;
	flex-wrap: wrap;
	gap: var(--_gap);

	> * {
		width: calc((100% / var(--_columns)) - var(--_gap) + (var(--_gap) / var(--_columns)));
	}
}

.acf-gallery__item {
	position: relative;
	aspect-ratio: 1;
}

.acf-gallery img {
	width: 100%;
	height: 100%;
	display: block;
}

.acf-gallery__more {
	display: flex;
	align-items: center;
	justify-content: center;

	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
}

.acf-gallery-hidden {
	display: none;
}

@media (max-width: 768px) {
	.acf-gallery {
		--_gap: 1.5rem;
		flex-direction: column;
	}
}
