.wsm-horizontal-gallery__smooth-wrapper,
.wsm-horizontal-gallery__smooth-content,
.wsm-horizontal-gallery__portfolio,
.wsm-horizontal-gallery__container {
	width: 100%;
}

.wsm-horizontal-gallery__smooth-wrapper {
	overflow: hidden;
}

.wsm-horizontal-gallery__container {
	padding-right: 0;
	padding-left: 0;
	margin-right: auto;
	margin-left: auto;
}

.wsm-horizontal-gallery__wrapper,
.wsm-horizontal-gallery__strip {
	display: flex;
	flex-wrap: nowrap;
	position: relative;
	will-change: transform;
}

.wsm-horizontal-gallery__wrapper {
	width: 100%;
	overflow: hidden;
	align-items: center;
}

.wsm-horizontal-gallery__strip {
	width: max-content;
	min-width: 100%;
	align-items: stretch;
}

.wsm-horizontal-gallery__item {
	flex: 0 0 auto;
	box-sizing: border-box;
	color: inherit;
	text-decoration: none;
}

.wsm-horizontal-gallery__item-inner {
	height: 100%;
	overflow: hidden;
	display:flex;
	gap: 40px;
}

.wsm-horizontal-gallery__media-wrap {
	width: 100%;
	overflow: hidden;
}

.wsm-horizontal-gallery__media {
	display: block;
	width: 100%;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition-property: transform, opacity, filter;
	transition-timing-function: ease;
}


.wsm-horizontal-gallery__title,
.wsm-horizontal-gallery__subtitle,
.wsm-horizontal-gallery__description,
.wsm-horizontal-gallery__description p {
	margin-top: 0;
}

.wsm-horizontal-gallery__description p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.wsm-horizontal-gallery__media {
		transition: none !important;
	}
}


/*cards- template*/
/*/temp1*/

.wsm-horizontal-gallery--template1 .wsm-horizontal-gallery__item-inner {  
	flex-direction: row;
	gap: 74px;
}
.wsm-horizontal-gallery--template1 .linkarrow {
	margin-bottom: 150px;
}
.wsm-horizontal-gallery--template1 .wsm-horizontal-gallery__description  {
	width: 60%;
	text-align: justify;	
	margin-top: 85px;

}

.wsm-horizontal-gallery--template1 .wsm-horizontal-gallery__content {
	display: flex;
	flex-direction: column;
	width: 100%;
}
/*/temp2*/

.wsm-horizontal-gallery--template2 .wsm-horizontal-gallery__item-inner {  
	flex-direction: column;
}
.wsm-horizontal-gallery--template2 .wsm-horizontal-gallery__content {
	display: flex;	
	gap: 170px;
	align-items: center;
}
.wsm-horizontal-gallery--template2 .txt__content{
	order:2;
}

.wsm-horizontal-gallery--template2 .smallimg__content {
	margin-left: 100px;
}
/*/temp3*/

.wsm-horizontal-gallery--template3 .wsm-horizontal-gallery__item-inner { 
	flex-direction: column;
}

.picture-content-bloc
{
	display:flex;flex-direction: row;
	justify-content: space-between;
	position: absolute;
	z-index: 999;
	bottom: 114px;
	padding: 0 88px;
	width: 100%;
}
.picture-content-bloc > div {
	width: 100%;
	line-height: normal;
}
.picture-titre span {
	font-weight: 300 !important;
}


@media (max-width: 768px) {
	.picture-content-bloc {
		flex-direction: column;		
		padding: 0 20px;		
		bottom: 80px;
		gap: 20px;
	}
	.picture-content-bloc > div{
		width: 100%; 
	} 
	.wsm-horizontal-gallery--template1 .wsm-horizontal-gallery__item-inner {
		flex-direction: column;
		gap: 0;
	}
	.wsm-horizontal-gallery--template1 .wsm-horizontal-gallery__content {
		flex-direction: column;
	}
	.wsm-horizontal-gallery--template1 .wsm-horizontal-gallery__description {
		width: 100%; 
		margin-top: 20px;
	}
	.smallimg__content {
    width: 100%;
    justify-content: end;
    display: flex;		
        height: 103px;
        margin-top: 10px;

}
	.smallimg__content img {
    height: 100%;
    width: 50%;
    object-fit: cover;
}
	.txt__content{
		
    order: 1;
    width: 100%;
	}
}
/* Mobile: preserve native vertical touch scrolling around the pinned gallery. */
@media (max-width: 767px) {
    .wsm-horizontal-gallery__smooth-wrapper,
    .wsm-horizontal-gallery__smooth-content,
    .wsm-horizontal-gallery__portfolio,
    .wsm-horizontal-gallery__container,
    .wsm-horizontal-gallery__wrapper {
        touch-action: pan-y;
        overscroll-behavior-x: none;
    }

    .wsm-horizontal-gallery__strip {
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }
}

/* Picture mode: the selected image is rendered as the background of the media wrapper.
 * Layer order: background image + overlay on the media div, then .picture-content-bloc above it. */
.wsm-horizontal-gallery__item {
	position: relative;
	isolation: isolate;
}

.wsm-horizontal-gallery__item-inner {
	position: relative;
}

.wsm-horizontal-gallery__media-wrap.picture {
	position: relative;
	z-index: 0;
	width: 100%;
	flex: 0 0 100%;
	background: var(--wsm-picture-overlay-normal, linear-gradient(180deg, #00000000 0%, #000000 100%)), var(--wsm-picture-image) center center / cover no-repeat;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transition-property: transform, opacity, filter, background-image;
	transition-timing-function: ease;
	will-change: transform, filter;
}

@media (hover: hover) and (pointer: fine) {
	.wsm-horizontal-gallery__item:hover .wsm-horizontal-gallery__media-wrap.picture {
		background-image: var(--wsm-picture-overlay-hover, var(--wsm-picture-overlay-normal, linear-gradient(180deg, #00000000 0%, #000000 100%))), var(--wsm-picture-image);
	}
}

.wsm-horizontal-gallery__media-wrap:not(.picture),
.wsm-horizontal-gallery__media {
	position: relative;
	z-index: 0;
}

.picture-content-bloc {
	position: absolute;
	z-index: 2;
}

/* Horizontal Gallery 1.8.8 — mobile animation stability */
@media (max-width: 767px) {
    .wsm-horizontal-gallery__smooth-wrapper,
    .wsm-horizontal-gallery__smooth-content,
    .wsm-horizontal-gallery__portfolio,
    .wsm-horizontal-gallery__container,
    .wsm-horizontal-gallery__wrapper {
        width: 100%;
        max-width: 100%;
        touch-action: pan-y pinch-zoom;
        overscroll-behavior-x: none;
    }

    .wsm-horizontal-gallery__smooth-wrapper {
        overflow-x: clip;
        overflow-y: visible;
    }

    .wsm-horizontal-gallery__wrapper {
        overflow: hidden;
    }

    .wsm-horizontal-gallery__strip {
        width: max-content;
        min-width: 100%;
        max-width: none;
        flex-wrap: nowrap;
        backface-visibility: hidden;
        transform-style: preserve-3d;
        transform: translate3d(0, 0, 0);
    }

    .wsm-horizontal-gallery__item {
        flex: 0 0 auto;
        min-width: 0;
        max-width: none;
        backface-visibility: hidden;
    }

    .wsm-horizontal-gallery__media-wrap.picture {
        backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .wsm-horizontal-gallery__smooth-wrapper .pin-spacer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* When animation is disabled on mobile, keep every item accessible by native swipe. */
    .wsm-horizontal-gallery--mobile-native .wsm-horizontal-gallery__wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x pan-y pinch-zoom;
    }

    .wsm-horizontal-gallery--mobile-native .wsm-horizontal-gallery__wrapper::-webkit-scrollbar {
        display: none;
    }

    .wsm-horizontal-gallery--mobile-native .wsm-horizontal-gallery__strip {
        transform: none !important;
        will-change: auto;
    }

    .wsm-horizontal-gallery--mobile-native .wsm-horizontal-gallery__item {
        scroll-snap-align: start;
    }
}

