/* Carrousel Instagram — mise en page Swiper du feed Smash Balloon.
   Le markup (slides, images carrées) est rendu côté serveur par les custom
   templates du thème (sbi/feed.php, sbi/item.php) ; ce fichier ne fait que
   styliser le carrousel. Aucun override des styles inline du plugin n'est
   nécessaire : son JS frontend n'initialise que les conteneurs `.sbi`, qu'on
   n'utilise pas ici. */

.domgreg-ig {
	position: relative;
}

.domgreg-ig .ig-swiper {
	position: relative;
	overflow: hidden;
}

.domgreg-ig .swiper-slide {
	height: auto;
}

/* Vignette carrée : le lien impose le ratio 1:1, l'image le remplit. */
.domgreg-ig__link {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f2f2f2;
}

.domgreg-ig__img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.domgreg-ig__link:hover .domgreg-ig__img {
	transform: scale(1.05);
}

/* Pastille type de média (vidéo / carrousel). */
.domgreg-ig__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	line-height: 0;
	color: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.domgreg-ig__badge svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Flèches de navigation — même style que le bloc « content-logo » :
   carré blanc, bordure rouge, chevron tracé en bordures, hover plein rouge. */
.domgreg-ig .ig-swiper__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--color-red);
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 3;
}

.domgreg-ig .ig-swiper__nav::after {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--color-red);
	border-right: 2px solid var(--color-red);
	transition: border-color 0.2s ease;
}

.domgreg-ig .ig-swiper__nav.swiper-button-prev {
	left: 0;
}

.domgreg-ig .ig-swiper__nav.swiper-button-prev::after {
	transform: rotate(-135deg) translate(-2px, 2px);
}

.domgreg-ig .ig-swiper__nav.swiper-button-next {
	right: 0;
}

.domgreg-ig .ig-swiper__nav.swiper-button-next::after {
	transform: rotate(45deg) translate(-2px, 2px);
}

.domgreg-ig .ig-swiper__nav:hover {
	background: var(--color-red);
}

.domgreg-ig .ig-swiper__nav:hover::after {
	border-color: #fff;
}

.domgreg-ig .ig-swiper__nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

/* Pagination sous le carrousel — puces rouges comme « content-logo ». */
.domgreg-ig .ig-swiper__pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 1rem;
}

.domgreg-ig .ig-swiper__pagination .swiper-pagination-bullet {
	background: var(--color-red);
	opacity: 0.25;
}

.domgreg-ig .ig-swiper__pagination .swiper-pagination-bullet-active {
	background: var(--color-red);
	opacity: 1;
}

/* Bouton « Suivre sur Instagram » — réutilise le bouton standard du site
   (a.cadre : bordure + texte rouge, hover plein rouge/texte blanc). */
.domgreg-ig__follow-wrap {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.domgreg-ig__follow {
	gap: 0.5em;
}

.domgreg-ig__follow svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}
