#modal-galleries {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    display: block;
    opacity: 0;
}
#close-modal {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	width: 30px;
	z-index: 2000002;
	display: block;
	padding: 0;
}

#close-modal svg{
    width: 100%;
}
#modal-galleries.visible {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000000;
    opacity: 1;
}


#modal-galleries .flexslider {
    /* display: none; */
    width: 80%;
    height: 80vh;
    margin-top: 10vh;
    position: relative;
}
#modal-galleries .flexslider img{
    display: inline-block;
    width: auto;
    margin:auto;
    max-height: 100%;
}

#modal-galleries .flexslider > div{
    height: 100%;
}
#modal-galleries .flexslider.visible {
    display: block;
}

#modal-galleries .slides {
    list-style: none;
    padding: 0;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 1;
}

#modal-galleries .slides li{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modal-galleries .slides.visible {
    opacity: 1;
}

#modal-galleries .slides>li > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    height: 80vh;
}

#modal-galleries .flexslider {
    border: none;
    background: none;
}

#modal-galleries .flexslider ul,
#modal-galleries .flexslider ul li {
    list-style: none !important;
}

#modal-galleries .flex-control-paging li a {
    background: #777
}

#modal-galleries .flex-control-paging li a.flex-active {
    background: #ccc
}
.flex-direction-nav a::before {
	color: rgba(0,0,0, 0.8);
}
#modal-galleries .flex-direction-nav .flex-next{
    right: 0;
    opacity: 1
}

#modal-galleries .flex-direction-nav .flex-prev{
    left: 0;
    opacity: 1
}

@media screen and (min-width:767px){
    #modal-galleries .flex-direction-nav .flex-next{
        right: -1%;
        opacity: 1
    }
    
    #modal-galleries .flex-direction-nav .flex-prev{
        left: -1%;
        opacity: 1
    }
}