.row{
	display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 5px;
	font-size: 0px;
}

.row img{
    border-radius: 3px; 
    height: 100px;
    object-fit: cover;
}

.row.collapsed{
	max-height: 400px;
	overflow: hidden;
	position: relative;
}
.row.expanded ~ .all-photos{ display: none; }

.row.collapsed:after{
	position: absolute;
	bottom: 0;
	left: 0;
	right:0;
	height: 50px;
	content: '';
	pointer-events: none;
	background: -moz-linear-gradient(bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
}

.all-photos{
	border: 1px solid #efefef;
	padding: 1em 1.5em .8em 1.5em;
	text-align: center;
	width: 100%;
	margin-top: 5px;
	font-size: 14px;
	font-weight: lighter;
	color: #909090;
	border-radius: 3px;
}
.row > .column {
  padding: 0;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1400000000;
  padding-top: 30px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255,255,255,.9);
}

/* Modal Content */
.modal-content, .mySlides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  padding: 0;
  padding-top: 0px;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  max-height: 1200px;
}

.modal-content img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The Close Button */
.close {
  color: #2D2E78;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
    z-index: 9999;
}

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

.closefield,.open-photos{
	z-index: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 3px;
  user-select: none;
  -webkit-user-select: none;
  color: #2D2E78;
  background-color: rgba(204,204,204,0.60);
}

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

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: #2D2E78;
    color: #fff;
}




.active,
.demo:hover {
  opacity: 1;
}

