.storia-gallery-row {
}

.storia-gallery-grid {
	width: 200px;
}

div.storia-gallery-responsive img {
    width: 100%;
    height: auto;
}

.storia-gallery-responsive {
    padding: 5px 5px;
    float: left;
    width: 19.99999%;
	height: 200px;
    box-sizing: border-box;
}

@media only screen and (max-width: 901px) {
    .storia-gallery-responsive {
        width: 25%;
		height: 200px;
        margin: 6px 0;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 801px) {
    .storia-gallery-responsive {
        width: 33.33333%;
		height: 200px;
        margin: 6px 0;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 601px) {
    .storia-gallery-responsive {
        width: 49.99999%;
		height: 200px;
		margin: 6px 0;
        box-sizing: border-box;
    }
}

/* The Modal (background) */
.storia-gallery-modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
    box-sizing: border-box;
}

/* Modal Content */
.storia-gallery-modal-content {
    position: relative;
    background-color: #000000;
    margin: auto;
    width: 90%;
    max-width: 1025px;
}

/* The Close Button */
.storia-gallery-close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.storia-gallery-close:hover,
.storia-gallery-close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.storia-gallery-mySlides {
    display: none;
	background: black;
}

.storia-gallery-foto {
    display: block;
	height: 100%;
	background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
	cursor: pointer;
}

/* Next & previous buttons */
.storia-gallery-prev,
.storia-gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the \"next button\" to the right */
.storia-gallery-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.storia-gallery-prev:hover,
.storia-gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.storia-gallery-img {
    margin-bottom: 0px;
}

.storia-gallery-caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
	font-size: 20px;
}

.storia-gallery-demo {
    border: 1px solid black;
}

.active,
.storia-gallery-demo:hover {
    border: 1px solid white;
}

.storia-gallery-img.hover-shadow {
    transition: 0.3s;
}

.storia-gallery-hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}