/* Baguès – Projets : styles publics.
   Typographie du nom et du lieu : réglable dans Projets › Typographie (CSS ajouté après ce fichier). */

.bgp-carousel { --bgp-arrow: #fff; }

/* ---------- Liste (/projets/ et « autres projets ») : texte sous l'image ---------- */
.elementor-widget-shortcode:has(.bgp-list),.elementor-shortcode:has(.bgp-list){width:100%;max-width:100%;flex:1 1 100%;align-self:stretch;min-width:0}
.bgp-list {
	display: grid;
	grid-template-columns: repeat(var(--bgp-cols, 2), minmax(0, 1fr));
	gap: var(--bgp-list-gap, 40px 20px);
	width: 100%;
}
@media (max-width: 1024px) {
	.bgp-list { grid-template-columns: repeat(var(--bgp-cols-t, 2), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.bgp-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
.bgp-list__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	color: #000;
	text-decoration: none;
	text-align: center;
}
.bgp-list__item:hover,
.bgp-list__item:focus { color: #000; text-decoration: none; }
.bgp-list__media {
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: var(--bgp-thumb-ratio, 3/2);
	margin-bottom: -10px;
}
.bgp-list--natural .bgp-list__media { aspect-ratio: auto; }
.bgp-list .bgp-list__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform .6s ease;
}
.bgp-list__item:hover .bgp-list__img { transform: scale(1.03); }
.bgp-list__title,
.bgp-entete__titre {
	margin: 0;
	font-family: var(--bgp-caption-font, "Janson Text LT Std", serif);
	font-size: var(--bgp-title-size, 14px);
	font-weight: 600;
	font-style: normal;
	letter-spacing: normal;
	text-transform: uppercase;
	line-height: 1.3;
	color: inherit;
}
.bgp-list__place,
.bgp-entete__lieu {
	display: block;
	margin: -18px 0 0;
	font-family: var(--bgp-caption-font, "Janson Text LT Std", serif);
	font-size: var(--bgp-place-size, 16px);
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	color: inherit;
}
.bgp-list__item:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .bgp-list__img { transition: none; } .bgp-list__item:hover .bgp-list__img { transform: none; } }

.bgp-section-title { text-align: center; margin: 0 0 32px; }

/* ---------- En-tête de la page détail ---------- */
.bgp-entete { text-align: center; margin: 18px 0 64px; color: #000; }
.bgp-entete__lieu { margin: 2px 0 0; }

/* ---------- Carrousel ---------- */
.bgp-carousel { position: relative; outline: none; }
.bgp-carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.bgp-carousel__track::-webkit-scrollbar { display: none; }
.bgp-carousel__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.bgp-carousel__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--bgp-ratio, 2/1);
	object-fit: cover;
}
.bgp-carousel--natural .bgp-carousel__img { aspect-ratio: auto; }
.bgp-carousel__caption {
	margin: 10px 0 0;
	text-align: center;
	font-size: .9rem;
	font-style: italic;
}

/* Les flèches sont centrées sur la photo, pas sur la légende. */
.bgp-carousel__arrows {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	aspect-ratio: var(--bgp-ratio, 2/1);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.bgp-carousel--natural .bgp-carousel__arrows { aspect-ratio: auto; height: 100%; }
.bgp-carousel__nav {
	pointer-events: auto;
	appearance: none;
	background: transparent;
	border: 0;
	padding: 16px 24px;
	margin: 0;
	color: var(--bgp-arrow);
	cursor: pointer;
	line-height: 0;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, .35));
	opacity: .9;
	transition: opacity .2s ease;
}
.bgp-carousel__nav:hover,
.bgp-carousel__nav:focus-visible { opacity: 1; background: transparent; color: var(--bgp-arrow); }
.bgp-carousel__nav svg { width: 22px; height: 44px; display: block; }
.bgp-carousel__nav--next svg { transform: scaleX(-1); }
@media (max-width: 767px) {
	.bgp-carousel__nav { padding: 10px 12px; }
	.bgp-carousel__nav svg { width: 14px; height: 28px; }
}

.bgp-notice {
	padding: 12px 16px;
	border: 1px dashed #b5a27a;
	background: #faf7f0;
	font-size: 14px;
}
