body {
	background: #DBE2E9 url("https://www2.hao.ucar.edu/profiles/composer/unity-profile/themes/unity/img/bg-body-ncar-v2.png") repeat fixed;
}
#slide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	justify-items: center;
}
.slide-container {
	max-width: 400px;
	margin: 10px;
	height: auto;	
	transform: scale(1);
  transition: transform 0.3s ease-in-out;
}
.slide-container:hover {
	transform: scale(1.05);
}
img.slide {
	max-width: 100%;
	height: auto;
	display: inline-block; /* Changed to inline-block from block because it was interfering with function of lazy loading listener */
	cursor: pointer;
	border-radius: 5px;
	filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.6));
}
.imgcap {
	position: relative;
}
.imgcap p {
	margin-bottom: 5px;
}
.slide-text-overlay {
	position: absolute;
	font-family: Georgia, sans-serif;
	font-size: 2rem;
	font-style: italic;
	left: 5px;
	bottom: 10px;
	color: #fff;
	text-shadow: 0 0 10px #000;
}
.slide-caption {
	font-size: smaller;
    line-height: 1.4rem;
}
@media screen and (max-width: 900px) {
	#slide-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (max-width: 600px) {
	#slide-grid {
		grid-template-columns: 1fr;
	}
}

/* Style sheet for newer modal pop-up (that use accessible dialogs; for image and text button to image 
	modals (for YouTube overlays, use modified styles like in punch_about_introduction-to-punch.php) */
dialog {
	padding: 40px 25px;
	width: 90%;
	max-width: 800px; /* set to display images at 750px with 2x25px padding for arrows and shadow */
	background-color: transparent;
	border: none;
	scrollbar-width: none;
	margin: auto;

	top: unset; /* or set a specific top value */
	margin-top: unset; /* or set specific margins */
	top: 20px;
}
dialog::backdrop {
	background: #DBE2E9 url("https://www2.hao.ucar.edu/profiles/composer/unity-profile/themes/unity/img/bg-body-ncar-v2.png") repeat fixed;
}
#modcont {
	position: relative;
}
.modal-content {
	border-radius: 15px;
	filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.6));
	transform: translateZ(0);	
}
img.modal-content {
	max-width: 100%;
	height: auto;
	display: inline-block; /* Changed to inline-block from block because it was interfering with function of lazy loading listener */
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#capwrap {
	margin: auto;
	display: block;
	width: 95%;
	max-width: 1000px;
	text-align: left;
}
#caption {
	font-size: 1rem;
	line-height: 1.4rem;
	color: #222;
	padding: 10px 0;
	display: inline-block;
}

/* Add Animation - Zoom in the Modal */
.modal-content, .modal-content-video, #capwrap {
	animation-name: zoom;
	animation-duration: 0.8s;
}

/* prev / next buttons. */
#prev, #next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 44px;
	border: none;
	cursor: pointer;
}
#prev {
	left: -25px;
	transition: 0.3s;
	background: url("../png/slideshow-prev-off.png") no-repeat fixed center;	
}
#prev:hover {
	background: url("../png/slideshow-prev-on.png") no-repeat fixed center;
}
#next {
	right: -25px;
	transition: 0.3s;
	background: url("../png/slideshow-next-off.png") no-repeat fixed center;
}
#next:hover {
	background: url("../png/slideshow-next-on.png") no-repeat fixed center;
}

@keyframes zoom {
	from {transform:scale(0)}
	to {transform:scale(1)}
}

/* The Close Button */
#close01 {
	position: absolute;
	top: -5px;
	right: 35px;
	color: #214186;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;

	padding: 0;
	margin: 0;
	background-color: transparent;
	border: none;
}

#close01:hover {
	color: #f69321;
	text-decoration: none;
	cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 600px){
	/* .modal-content, #capwrap {
		width: 95%;
	} */

}
@media only screen and (max-width: 500px){
	#caption {
		font-size: 16px;
	}
}