/* Grid - FAQ and Table wrapper */
:root {
	--eac--style--link-color: var(--wp--style--color--link, red);
	--eac--style--layout--content-size:
		var(--wp--preset--layout--content-size,
			var(--wp--preset--layout--contentSize,
				var(--wp--style--global--content-size,
					var(--theme-content-size, 1140px))));
	--eac--style--layout--wide-size:
		var(--wp--preset--layout--wide-size,
			var(--wp--preset--layout--wideSize,
				var(--wp--style--global--wide-size,
					var(--theme-wide-size, 1240px))));
	--eac--image-cell-width: auto;
	--eac-style-line-height: calc(2px + 2ex + 2px);
	--eac-style-focus-visible-img-color: #222222;
	--eac-style-focus-visible-img-style: auto;
	--eac-style-focus-visible-img-width: 3px;
	--eac-style-focus-visible-img-offset: -4px;
}

div[class*="eac-gallery__block-"] a {
	color: var(--eac--style--link-color);
	text-decoration: none;
}

body:not(.eac-using-mouse) .acf-gallery__wrapper-img a:focus-visible img[class^="eac-accessible-img"] {
	outline-color: var(--eac-style-focus-visible-img-color);
	outline-style: var(--eac-style-focus-visible-img-style);
	outline-width: var(--eac-style-focus-visible-img-width);
	outline-offset: var(--eac-style-focus-visible-img-offset);
}

div[class*="eac-gallery__block-"] {
	box-sizing: border-box;
	word-wrap: break-word;
}

.eac-gallery__block-grid {
	position: relative;
	display: grid;
	inline-size: 100%;
	max-inline-size: var(--eac--style--layout--content-size);
	margin-inline: auto;
	padding: 0;
	background: transparent;
}

/** Alignement conteneur wide*/
.eac-gallery__block-grid.container-wide {
	inline-size: calc(100% + 80px);
	max-inline-size: var(--eac--style--layout--wide-size);
	margin-inline-start: -40px;
}

/* Alignement conteneur wide bloc theme */
body.eac-block-theme .eac-gallery__block-grid.container-wide {
	inline-size: 100%;
	max-inline-size: var(--eac--style--layout--wide-size);
	margin-inline: auto;
}

/** Alignement conteneur full */
.eac-gallery__block-grid.container-full {
	position: relative;
	inline-size: 100vw;
	max-inline-size: none !important;
	margin-inline: -50vw !important;
	inset-inline: 50% !important;
}

.eac-gallery__block-grid .acf-gallery__wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	block-size: auto;
	inline-size: auto;
	flex-wrap: nowrap;
	overflow: hidden;
}

/** L'image */
/** Les conteneurs image */
.acf-gallery__wrapper-img {
	position: relative;
}

.eac-gallery__block-grid .acf-gallery__img {
	position: relative;
	display: block;
	block-size: auto;
	inline-size: 100%;
	margin-inline: auto;
	object-fit: cover;
	object-position: 50% 50%;
}

.acf-gallery__wrapper-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: start;
	block-size: 100%;
	inline-size: auto;
	padding: 10px;
	font-weight: inherit;
	line-height: inherit;
}

.eac-gallery__block-grid .acf-gallery__caption:is(h2, h3, h4, h5, h6, div) {
	margin: 0;
	padding: 0;
	font-size: clamp(0.9rem, 0.8273rem + 0.3636vw, 1.1rem);
	font-weight: unset;
	font-family: inherit;
	font-style: inherit;
	line-height: var(--eac-style-line-height);
	text-transform: none;
}

.acf-gallery__wrapper-content .acf-gallery__description {
	line-height: var(--eac-style-line-height);
}

.eac-gallery__block-grid .button-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	margin-block: 10px;
	min-block-size: 35px;
	padding-inline: 15px;
	font-size: 17px;
	line-height: inherit;
	color: #1346CD;
	background-color: transparent;
	border: 2px solid #1346CD;
	border-radius: 4px;
	white-space: nowrap;
	text-decoration: none;
	text-shadow: none;
	text-transform: unset;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

/** Responsive grid columns */
.eac-gallery__block-grid.cols-mobile-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.eac-gallery__block-grid.cols-mobile-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eac-gallery__block-grid.cols-mobile-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eac-gallery__block-grid.cols-mobile-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eac-gallery__block-grid.cols-mobile-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.eac-gallery__block-grid.cols-mobile-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (min-width: 576px) {
	.eac-gallery__block-grid.cols-mobileland-1 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-mobileland-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-mobileland-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-mobileland-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-mobileland-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-mobileland-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.eac-gallery__block-grid.cols-tablet-1 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tablet-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tablet-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tablet-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tablet-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tablet-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.eac-gallery__block-grid.cols-tabletland-1 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tabletland-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tabletland-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tabletland-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tabletland-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-tabletland-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.eac-gallery__block-grid.cols-desktop-1 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-desktop-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-desktop-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-desktop-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-desktop-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.eac-gallery__block-grid.cols-desktop-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Les styles */
.eac-gallery__block-grid.style-1 .acf-gallery__wrapper {
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .12),
		0 2px 2px rgba(0, 0, 0, .12),
		0 4px 4px rgba(0, 0, 0, .12),
		0 8px 8px rgba(0, 0, 0, .12),
		0 16px 16px rgba(0, 0, 0, .12);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .12),
		0 2px 2px rgba(0, 0, 0, .12),
		0 4px 4px rgba(0, 0, 0, .12),
		0 8px 8px rgba(0, 0, 0, .12),
		0 16px 16px rgba(0, 0, 0, .12);
}

.eac-gallery__block-grid.style-2 .acf-gallery__wrapper {
	-webkit-border-radius: 0px 0px 5px 5px;
	border-radius: 0px 0px 5px 5px;
	border: 1px groove #4a164a;
	-webkit-box-shadow: 1px 1px 5px 2px #656565;
	box-shadow: 1px 1px 5px 2px #656565;
}

.eac-gallery__block-grid.style-3 .acf-gallery__wrapper {
	-webkit-box-shadow: 1px 1px 5px #999;
	box-shadow: 1px 1px 5px #999;
}

.eac-gallery__block-grid.style-4 .acf-gallery__wrapper {
	-webkit-box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.6);
	box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.6);
}

.eac-gallery__block-grid.style-5 .acf-gallery__wrapper {
	border: 1px solid #EFEFEF;
	-webkit-box-shadow: 1px 1px 5px #999;
	box-shadow: 1px 1px 5px #999;
}

.eac-gallery__block-grid.style-6 .acf-gallery__wrapper {
	position: relative;
	z-index: 1;
	overflow: visible;
	box-shadow: none;
}

/* biseau côté */
.eac-gallery__block-grid.style-6 .acf-gallery__wrapper::before {
	content: "";
	position: absolute;
	display: inline-block;
	top: 30%;
	left: -2%;
	width: 95%;
	height: 10%;
	transform: rotate(-3deg);
	background: rgba(255, 255, 255, 0.02);
	box-shadow: 12px 8px 10px rgba(0, 0, 0, 0.6);
	pointer-events: none;
	z-index: 2;
}

/* Empty / error messages */
.eac-gallery-empty {
	padding: 12px;
	color: #666;
	background: aliceblue;
	border-radius: 4px;
}

.eac-gallery__block-grid .visually-hidden {
	position: absolute !important;
	block-size: 1px !important;
	inline-size: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	border: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.eac-skip-grid {
	position: absolute !important;
	inset-block-end: 0 !important;
	inset-inline-start: 0 !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
}