/*! Lity - v3.0.0-dev - 2020-04-26
* http://sorgalla.com/lity/
* Copyright (c) 2015-2020 Jan Sorgalla; Licensed MIT */

.lity-active,
.lity-active body {
  overflow: hidden;
}

.lity {
  z-index: 9990;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  background: #0b0b0b;
  background: rgba(0, 0, 0, .9);
  outline: none !important;
  opacity: 0;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.lity.lity-opened {
  opacity: 1;
}

.lity.lity-closed {
  opacity: 0;
}

.lity * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.lity-wrap {
  z-index: 9990;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  outline: none !important;
}

.lity-wrap:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em;
}

.lity-loader {
  z-index: 9991;
  color: #fff;
  position: absolute;
  top: 50%;
  margin-top: -0.8em;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.lity-loading .lity-loader {
  opacity: 1;
}

.lity-container {
  z-index: 9992;
  position: relative;
  text-align: left;
  vertical-align: middle;
  display: inline-block;
  white-space: normal;
  max-width: 100%;
  max-height: 100%;
  outline: none !important;
}

.lity-content {
  z-index: 9993;
  width: 100%;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform .3s ease;
  transition: -webkit-transform .3s ease;
  -o-transition: -o-transform .3s ease;
  transition: transform .3s ease;
  transition: transform .3s ease, -webkit-transform .3s ease, -o-transform .3s ease;
}

.lity-loading .lity-content,
.lity-closed .lity-content {
  -webkit-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
}

.lity-content:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
}

.lity-close,
.lity-close:hover,
.lity-close:focus,
.lity-close:active,
.lity-close:visited {
  z-index: 9994;
  width: 35px;
  height: 35px;

  /* Change to position: absolute to display close button inside content container */
  position: fixed;
  right: 0;
  top: 0;
  -webkit-appearance: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  padding: 0;
  color: #fff;
  font-style: normal;
  font-size: 35px;
  font-family: Arial, Baskerville, monospace;
  line-height: 35px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  border: 0;
  background: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.lity-close::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.lity-close:active {
  top: 1px;
}

/* Image */

.lity-image img {
  max-width: 100%;
  display: block;
  line-height: 0;
  border: 0;
}

/* iFrame */

.lity-iframe .lity-container {
  width: 100%;
  max-width: 964px;
}

.lity-iframe-container {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: auto;
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

.lity-iframe-container iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  background: #000;
}

.lity-hide {
  display: none;
}
.box_mediabox {
	display: block;
	margin:0;
	padding:0;
	width: auto;
	height: auto;
	background: none;
	border:0;
}
.box_mediabox:before {
	content:'';
	display: block;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #000;
	opacity:0.9;
}
@media(min-width: 500px) {
	.box_mediabox .lity-container {
		max-width: 90%;
		max-height: 90%;
	}
}
@media(max-width: 499.9px) {
	.box_mediabox .lity-container {
		max-width: 100% !important;
		max-height: 100% !important;
	}
}
.box_mediabox.lity-height-set .lity-content {
	height: 100%;
	min-height: 0 !important;
}

/* Box image */
.box_mediabox.lity-image .lity-content {
	display: flex;
	justify-content: center;
	align-items: center;
}
.box_mediabox.lity-image .lity-image-figure {
	display: block;
	margin: 0;
}
.box_mediabox.lity-image .lity-image-figure::before {
	content: '';
	display: block;
	position: absolute;
	left:0;
	top:0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-color: transparent;
	transition: background-color 0.25s ease-in 0.1s;
}
.box_mediabox.lity-image.lity-ready .lity-image-figure::before {
	background-color: #fff;
}

/* Caption Repliable */
.lity-image-caption.min,.lity-image-caption.expanded {
	cursor: pointer;
}
.lity-image-caption.min .lity-image-caption-text {
	max-height: 4.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lity-image-caption.min .spip_doc_titre,
.lity-image-caption.min .spip_doc_descriptif,
.lity-image-caption.min .spip_doc_credits {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lity-image-caption.min .spip_doc_descriptif:not(:first-child),
.lity-image-caption.min .spip_doc_credits:not(:first-child) {
	display: none;
}


/* Box inline + ajax */
.box_mediabox.lity-inline .lity-content,
.box_mediabox.lity-ajax .lity-content {
	background: #fff;
}

.box_mediabox.lity-inline .lity-content>*,
.box_mediabox.lity-ajax .lity-content-inner {
	overflow: auto;
	padding: 1rem;
}

/* Box iframe */
.box_mediabox.lity-iframe .lity-iframe-container iframe {
	background: #fff;
}
.box_mediabox.lity-height-set.lity-iframe .lity-iframe-container {
	height: 100%;
	padding: 0;
	transform: none;
}

/* antiscroll */
.lity-active body {
	height: auto !important;
	overflow: hidden !important;
}

/* Loader */
.box_mediabox.lity-loading .lity-content {
	background: transparent;
}
.box_mediabox.lity-loading .lity-content:after {
	display: none;
}
.lity-loading .box-loading {
  display: block;
	position: absolute;
	top:50%;
	left: 50%;
	margin-top: -2.5em;
	margin-left: -2.5em;
  width: 5em;
  height: 5em;
}
.lity-loading .box-loading:after {
	content: " ";
	display: block;
	width: 4em;
	height: 4em;
	margin: 0.5em;
	border-radius: 50%;
	border: 0.375em solid #000;
	border-color: #000 #fff #000 #fff;
	opacity: 0.5;
	animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fermeture */
.box_mediabox.lity-closing:before {
	opacity: 0;
}

/* Progress bar */
.lity-group-progress-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0.33em;
}
.lity-slideshow .lity-group-progress-bar {
	display: block;
}
.lity-group-progress-bar-status {
	position: absolute;
	left: 0;
	height: 100%;
	top:0;
	background: #888;
}

.lity-no-transition-on-open .lity-content,
.lity-no-transition .lity-content {
	transition: none !important;
}
.lity-no-transition-on-open-none.lity-loading .lity-content,
.lity-no-transition.lity-loading .lity-content,
.lity-no-transition.lity-closed .lity-content {
	-webkit-transform: none !important;
	-ms-transform: none !important;
	-o-transform: none !important;
	transform: none !important;
}

.lity-transition-on-open-slide-from-right .lity-content,
.lity-transition-on-open-slide-from-left .lity-content {
	-webkit-transform: scale(1) translateX(0);
	-ms-transform: scale(1) translateX(0);
	-o-transform: scale(1) translateX(0);
	transform: scale(1) translateX(0);
}

.lity-transition-on-open-slide-from-right.lity-loading .lity-content {
	-webkit-transform: scale(1) translateX(50vw);
	-ms-transform: scale(1) translateX(50vw);
	-o-transform: scale(1) translateX(50vw);
	transform: scale(1) translateX(50vw);
}

.lity-transition-on-open-slide-from-left.lity-loading .lity-content {
	-webkit-transform: scale(1) translateX(-50vw);
	-ms-transform: scale(1) translateX(-50vw);
	-o-transform: scale(1) translateX(-50vw);
	transform: scale(1) translateX(-50vw);
}

/**
 * Sidebar
 */
:root {
	--mediabox-sidebar-width: 25rem;
	--mediabox-sidebar-height: calc(5rem + 20%);
	--mediabox-sidebar-close-size: 2rem;
}
.box_mediabox.lity-sidebar:before {
	opacity: 0.5;
}
.box_mediabox.lity-sidebar .lity-wrap {
	display: flex;
}
.box_mediabox.lity-sidebar .lity-container {
	position: relative;
	transition: transform 0.3s ease-in-out;
}
.box_mediabox.lity-sidebar .lity-content {
	height: 100%;
	width: 100%;
	min-width: initial;
	min-height: initial;
	transition: none !important;
	transform: none !important;
	padding-block-start: var(--mediabox-sidebar-close-size);
}
.box_mediabox.lity-sidebar .lity-close {
	position: absolute;
	color: inherit;
	width: var(--mediabox-sidebar-close-size);
	height: var(--mediabox-sidebar-close-size);
	font-size: var(--mediabox-sidebar-close-size);
	line-height: var(--mediabox-sidebar-close-size);
}
/* Gauche / droite */
.box_mediabox.lity-sidebar-inline .lity-container {
	width: var(--mediabox-sidebar-width);
	max-width: 100vw;
}
/* Gauche */
.box_mediabox.lity-sidebar-start .lity-wrap {
	justify-content: start;
}
.box_mediabox.lity-sidebar-start.lity-loading .lity-container,
.box_mediabox.lity-sidebar-start.lity-closing .lity-container {
	transform: scale(1) translateX(-100%);
}
/* Droite */
.box_mediabox.lity-sidebar-end .lity-wrap {
	justify-content: end;
}
.box_mediabox.lity-sidebar-end.lity-loading .lity-container,
.box_mediabox.lity-sidebar-end.lity-closing .lity-container {
	transform: scale(1) translateX(100%);
}
/* Haut / bas */
.box_mediabox.lity-sidebar-block .lity-wrap:before {
	margin: 0;
}
.box_mediabox.lity-sidebar-top .lity-container,
.box_mediabox.lity-sidebar-bottom .lity-container {
	height: var(--mediabox-sidebar-height);
	max-height: 100vw;
}
/* Haut */
.box_mediabox.lity-sidebar-top.lity-loading .lity-container,
.box_mediabox.lity-sidebar-top.lity-closing .lity-container {
	transform: scale(1) translateY(-100%);
}
/* Bas */
.box_mediabox.lity-sidebar-bottom .lity-wrap {
	align-items: end;
}
.box_mediabox.lity-sidebar-bottom.lity-loading .lity-container,
.box_mediabox.lity-sidebar-bottom.lity-closing .lity-container {
	transform: scale(1) translateY(100%);
}