.modal-content .popup-slider-container {
    max-height:80vh;
}

.img-wrapper .item img{
    display: block;
    width: auto;
    height: 100%;
}
.img-wrapper .item{
      margin: 4px;
      /* border: 1px solid gray; */
}

.img-wrapper{
    display: flex;
    flex-wrap: wrap;    
}

.SerpList {
    position: relative;
}

.SerpPolaroid {
    z-index: 3;
}

.Polaroid_animated {
    -webkit-animation: polaroid-scale .3s ease-in-out,polaroid-opacity .15s ease-in-out;
    animation: polaroid-scale .3s ease-in-out,polaroid-opacity .15s ease-in-out;
}
.Polaroid {
    position: absolute;    
    background: #fff;    
    -webkit-box-shadow: 0 0 0 1px rgb(13 35 67 / 9%), 0 15px 25px -4px rgb(13 35 67 / 32%);
    -webkit-box-shadow: var(--depot-shadow-lightblue-50);
    box-shadow: 0 0 0 1px rgb(13 35 67 / 9%), 0 15px 25px -4px rgb(13 35 67 / 32%);    
    will-change: transform,opacity;
}


            @-webkit-keyframes polaroid-scale {
                0% {
                    -webkit-transform: scale(.99);
                    transform: scale(.99)
                }

                to {
                    -webkit-transform: scale(1);
                    transform: scale(1)
                }
            }

            @keyframes polaroid-scale {
                0% {
                    -webkit-transform: scale(.99);
                    transform: scale(.99)
                }

                to {
                    -webkit-transform: scale(1);
                    transform: scale(1)
                }
            }

            @-webkit-keyframes polaroid-opacity {
                0% {
                    opacity: 0
                }

                to {
                    opacity: 1
                }
            }

            @keyframes polaroid-opacity {
                0% {
                    opacity: 0
                }

                to {
                    opacity: 1
                }
            }

.SerpPolaroid-Content {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px;
    font-size: 16px;
    width: 350px;
}

#hover-template,#list-template{
  display:none;
}

/*
.hovered{
  filter: grayscale(80%);
  border:greenyellow ;
}
*/

.Polaroid img{
  object-fit: contain;
  width:100%;
  max-height:300px;
}

.Polaroid .SimpleImage{
  
}

.SerpPolaroid-Footer{
  margin-top:4px;
}

#gallery-carousel .modal-content {
    display:flex;
    flex-direction: row;
    align-items: stretch;
}

.thumbs-container{
    max-height:100%;
    width:250px;
}

.thumbs-container li{
    list-style:none;
    margin-bottom:8px;
    border: 1px;
    padding:8px;
  cursor:pointer;
  border: 1px solid transparent;  
}

.thumbs-container li:hover{
  background:#eeeef9;
}

.thumbs-container li.active{
    border: 1px solid #5971b4;  
}

.thumbs-container{
  padding:8px;
    font-size:16px;
}

.thumbs-container img{
    max-width:250px;
}

.veza-popup .modal-xxl {
    max-width: 90%;
    max-height: 90%;
    align-items: stretch;
}

.gallery-carousel-thumbs{
  height:100%;
  flex-shrink:0;
    overflow-y:scroll;
}

#gallery-carousel .carousel{
     flex-grow: 1;
    flex-shrink: 1;
}

#gallery-carousel .carousel-inner {
    height: 100%;
}

#gallery-carousel .carousel-item{
  height:100%;
  max-height:100%;
}

#gallery-carousel .carousel img{
    max-height:100%;
    width:auto;
}

#gallery-carousel .carousel-item.active, #gallery-carousel .carousel-item-next.carousel-item-left,
 #gallery-carousel .carousel-item-prev.carousel-item-right {
    display:flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

#gallery-carousel .carousel {
    background: #000;
}

#gallery-carousel .carousel-caption {
    position: absolute;
    right: 0px;
    bottom: 0px;
    left: 0px;    
    padding-top: 20px;    
    color: #fff;
    text-align: center;
    background: #00000057;
}

#gallery-carousel .carousel-control-next, #gallery-carousel .carousel-control-prev {    
    top: 30px;
    bottom: 30px;
}

/* Firefox */
.gallery-carousel-thumbs {
  scrollbar-width: thin;
  scrollbar-color: #DDDDDD #EEEEEE;
}

/* Chrome, Edge and Safari */
.gallery-carousel-thumbs::-webkit-scrollbar {
  width: 10px;
  width: 10px;
}
.gallery-carousel-thumbs::-webkit-scrollbar-track {
  border-radius: 0px;
  background-color: #EEEEEE;
}

.gallery-carousel-thumbs::-webkit-scrollbar-track:hover {
  background-color: #DDDDDD;
}

.gallery-carousel-thumbs::-webkit-scrollbar-track:active {
  background-color: #DDDDDD;
}

.gallery-carousel-thumbs::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #DDDDDD;  
}

.gallery-carousel-thumbs::-webkit-scrollbar-thumb:hover {
  background-color: #BBBBBB;
}

.gallery-carousel-thumbs::-webkit-scrollbar-thumb:active {
  background-color: #999999;
}

.thumb-caption {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.thumbs-container img {    
    width:100%;
}

@media (max-width: 767.98px) {

	#gallery-carousel .modal-content {
		display: flex;
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.gallery-carousel-thumbs {    
		max-height: 30%;
		flex-shrink: 1;
		overflow-y: hidden;    
	}

	.thumbs-container{
		overflow-x: scroll;
		display:flex;
		width:100%;
		align-items: stretch;
	}

	.thumbs-container li{
		max-width:70%;
        text-align: center;
	}

	.thumbs-container img {
		height:80%;
		width:auto;
        margin:auto;
	}
	
	.veza-popup .modal-xxl {
		max-width: 100%;
		max-height: 95%;
	}
}