div.tws-gallery {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top;
}

.tws-gallery-curtain, .tws-gallery-group-image {
	position: fixed;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	cursor: zoom-out !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tws-gallery-group-image {
    transition-duration: .7s;
    touch-action: none;
    animation: slide-up .5s ease;
}

.tws-gallery-curtain > .tws-gallery-image-container {
    animation: slide-up .5s ease;
}

.tws-gallery-group-image:not(.tws-gallery-image-active):not(.tws-gallery-animate-center-to-right):not(.tws-gallery-animate-center-to-left) {
    display: none;
}

.tws-gallery-group-image.tws-gallery-animate-center-to-left {
    animation: center-to-left .7s ease;
}

.tws-gallery-group-image.tws-gallery-animate-center-to-right {
    animation: center-to-right .7s ease;
}

.tws-gallery-group-image.tws-gallery-image-active.tws-gallery-animate-right-to-center {
    animation: right-to-center .7s ease;
}

.tws-gallery-group-image.tws-gallery-image-active.tws-gallery-animate-left-to-center {
    animation: left-to-center .7s ease;
}

.tws-animation-remove {
    animation: slide-down .6s ease;
}

.tws-gallery-curtain {
    background-color: rgba(0, 0, 0, .75);
	z-index: 3000;
}


.tws-gallery-image-container {
    margin: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    cursor: default !important;
    overflow: hidden;
}

.tws-gallery-img {
    max-width: 90vw;
    max-height: 80vh;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: grab;
}

.tws-gallery-title {
    position: absolute;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, .75);
    color: white;
    padding: 10px 0 10px 0;
    opacity: 0;
    transition: opacity 1s ease;
    bottom: 0;
    left: 0;
}

.tws-gallery-title.active {
    opacity: 1;
}

.tws-gallery-button {
    z-index: 3101;
    position: absolute;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all .3s linear;
}

.tws-gallery-button:not(.tws-gallery-echap-button) {
    top: 50%;
}

.tws-gallery-previous-button > img, .tws-gallery-next-button > img {
    width: 70px;
    height: 70px;
    padding: 10px;
}

.tws-gallery-echap-button > img {
    width: 50px;
    height: 50px;
    padding: 10px;
}

.tws-gallery-curtain:not(.touch) > .tws-gallery-button > img:hover {
    background-color: black;
}

.tws-gallery-button.tws-gallery-next-button {
    right: 0;
}

.tws-gallery-button.tws-gallery-previous-button {
    left: 0;
}

.tws-gallery-button.tws-gallery-echap-button {
    top: 0;
    right: 0;
}

.tws-gallery-timeline {
    height: 75px;
    display: flex;
    margin-top: auto;
    margin-bottom: -50px;
    z-index: 3101;
}

.tws-gallery-timeline > .tws-gallery-timeline-chip {
    display: block;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    cursor: pointer !important;
    background-color: white;
    margin-left: 5px;
    margin-right: 5px;
}


.tws-gallery-timeline-chip.active {
    background-color: black;
}

body.no-scroll {
	overflow: hidden;
}

@media (max-height: 500px) {
    .tws-gallery-timeline {
        display: none;
    }

    .tws-gallery-image-container {
        max-width: 70%;
        align-items: center;
    }

    .tws-gallery-title {
        bottom: 0;
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(40px);
    }
}

@keyframes right-to-center {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(0vw);
    }
}

@keyframes left-to-center {
    0% {
        transform: translateX(-100vw);
    }
    100% {
        transform: translateX(0vw);
    }
}

@keyframes center-to-left {
    0% {
        transform: translateX(0vw);
    }
    99% {
        display: none;
    }
    100% {
        transform: translateX(-100vw);
    }
}

@keyframes center-to-right {
    0% {
        transform: translateX(0vw);
    }
    99% {
        display: none;
    }
    100% {
        transform: translateX(100vw);
    }
}
