@charset "utf-8";
/* CSS Document */
.thumbnail {	
	width: 22.5%;
	height: auto;	
	background-size: cover;
	display: inline-block;
	text-align: center;	
	margin: 0.5%;
	border-radius: 0.75rem;
	
	-webkit-box-shadow: 0 1rem 1rem -1rem rgba(0,0,0,0.8);
    -moz-box-shadow: 0 1rem 1rem -1rem rgba(0,0,0,0.8);
     box-shadow: 0 1rem 1rem -1rem rgba(0,0,0,0.8);	
}

.thumbnail:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.thumbnail:hover {
	opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */	
	transition: all 0.6s ease;
}

/** LIGHTBOX MARKUP **/

.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 9999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.7);	
}

.lightbox img {
	/** Pad the lightbox image */
	max-width: inherit;
	max-height: 100%;
	margin-top: 2.5%;
	margin-bottom: 2.5%;			
}

.lightbox:target {
	/** Remove default browser outline */
	outline: none;
	/** Unhide lightbox **/
	display: block;
	-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 1s; /* Firefox < 16 */
        -ms-animation: fadein 1s; /* Internet Explorer */
         -o-animation: fadein 1s; /* Opera < 12.1 */
            animation: fadein 1s;		
}

@media screen and (max-width: 1020px) {
.lightbox img {
	max-width: 80%;
	max-height: inherit;
}
}

@media screen and (max-width: 660px) {
.news-img-holder { float: none; width: 30%; }
}

@media screen and (max-width: 460px) {
.thumbnail { width: 48%; }
.news-img-holder { width: 46%; }
}

@media screen and (max-width: 330px) {
.thumbnail { width: 48%; }
.news-img-holder { width: 92%; margin: 3%; }
}
