/* GALLERIE PHOTO
-------------------------------------------------------------------------------------------------------------------------------- */

/* >>> Gallery liste -------------------------------------------------------------- */

#gallery-list { padding: 0 0 8%; }
#gallery-list .row { 
	padding: 0 30px; 
	max-width: 1420px;
}
.gallery-item {
	display: block;
	width: 33.33%;
	padding: 10px;
	max-width: 640px;
}
.gallery-item_thumb {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	-ms-align-items: center;
	        align-items: center;
}
.gallery-item_thumb img {
	flex: 0 0 auto;
}
.gallery-item_caption {
	z-index: 1;
	flex: 1 1 auto;
	position: relative;
	padding: 15px; 
	text-align:center; 
	line-height: 1.4em;
	font-size: 1.25em;
	color: #fff;
	color: #214260;
	font-family: 'DM Serif Display', serif;
	letter-spacing: .25em;
	text-transform: uppercase;
	margin: 0;
	width: 100%;
}

@media screen and (max-width: 980px) { .gallery-item { width: 50%; } }
@media screen and (max-width: 740px) { 
	#gallery-list .row { padding: 0 20px; } 
	.gallery-item { padding: 10px; } 
}
@media screen and (max-width: 580px) { 
	#gallery-list .row { padding: 24px; }
	.gallery-item { padding: 6px; }
	.gallery-item_caption {
		padding: 10px;
		font-size: .875em; 
	}
}
@media screen and (max-width: 380px) { .gallery-item { width: 100%; } }

/* >>> Gallery slider ------------------------------------------------------------ */

.gallery-item_group { position: relative; }
.gallery-item_group .thumbnails { z-index: 0; }
.gallery-item_title {
    padding: 1rem;
    text-align: center;
}

.gallery-vid .thumbnails {
    position: relative;
}
.gallery-vid .thumbnails::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    margin: -32px;
    z-index: 2;
    width: 64px; height: 64px;
    background: center no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}
.widget-galerie .row {
    max-width: 1920px;
}
.widget-galerie-slider {
    position: relative;
	max-width: 100%;
    padding: 0 5%;
}
.widget-galerie-slider .swiper-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    margin-top: -20px;
    top: 50%;
}
.widget-galerie-slider .swiper-nav svg {
    display: block;
    width: 24px;
    height: 24px;
}
.widget-galerie-slider .swiper-nav.swiper-prev { left: 2%; }
.widget-galerie-slider .swiper-nav.swiper-next { right: 2%; }
.widget-galerie-slider .swiper-slide {
    width: 33.33%;
    padding: 10px;
}
.gallery-item_subtitle {
    text-align: center;
}

@media screen and (max-width: 740px) { 
	.widget-galerie {
		margin-top: 0 !important;
		padding-top: 40px !important;
	}
	.widget-galerie .row { 
		padding: 0;
		display: block;
	}
	.widget-galerie-slider {
		padding: 0 50px;
	}
	.gallery-item_title { padding: 1rem 0; }
	.widget-galerie-slider .swiper-nav.swiper-prev { left: 5px; }
	.widget-galerie-slider .swiper-nav.swiper-next { right: 5px; }
	.widget-galerie-slider .swiper-slide {
		width: 50%;
	}
}
@media screen and (max-width: 480px) { 
	.widget-galerie-slider .swiper-slide {
		width: 100%;
	}
}

/* >>> Gallery page -------------------------------------------------------------- */

#gallery-infos { 
	padding-top: 5%;
	padding-bottom: 30px; 
}
#gallery-infos .row { max-width: 1400px; }
#gallery-infos h1 {
    line-height: 1.2em;
	font-size: 2em;
    color: #3586a0;
	margin: 0;
}
#gallery-infos h1 + p { margin: 2em 0 0 }
#gallery-photos { 
	margin: 0 auto;
	padding: 0;
}
#gallery-photos:last-child { padding-bottom: 5%; }
#gallery-photos .row {
	-ms-grid-row-align: stretch;
	align-self: stretch;
	max-width: 1420px;
	padding: 0 30px;
}
#gallery-photos .gallery-item {
	width: 25%;
	padding: 10px;
}
#gallery-photos .thumbnails {
	display: block;
	height: 100%;
}
#gallery-photos .video-item .th-vid { 
    max-height: 240px;
}
.video-item .th-vid > img {
	display: block;
	width: 100%;
	height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    font-family: 'object-fit: cover; object-position: center;';
}
.video-content,
.video-content iframe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border: none;
}
@media screen and (max-width: 860px) { 
	#gallery-photos .gallery-item,
	.gallery-page .gallery-page-list li { width: 33.33333%; }  
}
@media screen and (max-width: 740px) {
	#gallery-photos .row { padding: 0 20px; }
}
@media screen and (max-width: 540px) {
	#gallery-photos .row { padding: 0 5px; }
	#gallery-photos .gallery-item,
	.gallery-page .gallery-page-list li { width: 50%; }  
	#gallery-photos .gallery-item { padding: 5px; }
}
@media screen and (max-width: 320px) { 
	#gallery-photos .gallery-item,
	.gallery-page .gallery-page-list li { width: 100%; } 
}

/* --- footer et sharing --- */
#gallery-footer {
	display: flex;
	-ms-align-items: center;
	        align-items: center;
    justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	max-width: 1420px;	
	padding: 40px 40px 8%;
	margin: 0 auto;	
}
#gallery-footer.justify-between {
    justify-content: space-between;
}
#gallery-footer .divide {
	width: 100%;
	max-width: 100%;
	margin: 0 0 20px;
}
#gallery-footer .link-back { margin-top: 0; }
.rs-sharing { }
div.rs-sharing {
	display: flex;
	-ms-align-items: center;
	        align-items: center;
	justify-content: space-between;
}
.rs-sharing .link-back { margin: 0; }
.rs-sharing li { display:inline; }
.rs-sharing li.rs-sharing-title {
	display:inline-block;
	vertical-align: middle;
	text-transform: uppercase;
	font-weight: 700;
	margin-right: 1em;
}
.rs-sharing li a {
	display:inline-flex;
	-ms-align-items: center;
	align-items: center;
	justify-content: center;
	width: 36px; 
	height: 36px;
	border-radius:50%;
	transition: background-color .3s;
}
.rs-sharing li a svg {
	width: 15px;
    height: 15px;
}

@media screen and (max-width: 640px) {
	.rs-sharing li.rs-sharing-title { display: none; }
}
@media screen and (max-width: 480px) {
	#gallery-footer {
		justify-content: center;
	}
	.rs-sharing { 
		width: 100%; 
		text-align: center;
		margin-top: 1rem;
	}
}