/* General grid styles */

.cbp-ig-grid {
	list-style: none;
	padding: 0 0 50px 0;
	margin: 0;
}

/* Clear floats */
.cbp-ig-grid:before, 
.cbp-ig-grid:after { 
	content: " "; 
	display: table; 
}

.cbp-ig-grid:after { 
	clear: both; 
}

/* grid item */
.cbp-ig-grid li {
	width: 33%;
	float: left;
	height: 420px;
	text-align: center;
	/*border-top: 1px solid #ddd;*/
	margin: 2px;
}
.cbp-ig-grid li:nth-child(even) > a {
	background: rgba(218,175,72,0.8);
	background: rgba(207,174,30,0.8);
}
.cbp-ig-grid li:nth-child(even) > a:hover {
	background: rgba(218,175,72,0.5);
	background: rgba(207,174,30,0.5);
}
.cbp-ig-grid li:nth-child(odd) > a {
	background: rgba(0,0,0,0.8);
}
.cbp-ig-grid li:nth-child(odd) > a:hover {
	background: rgba(0,0,0,0.5);
}

.cbp-ig-grid li:nth-child(even) > a, .cbp-ig-grid li:nth-child(even):hover {
	color:#000;
}
.cbp-ig-grid li:nth-child(even) > a:hover .cbp-ig-title {
color:#000000;
}

.cbp-ig-grid li:nth-child(even) .cbp-ig-title:before {

	background: #000;
}
.cbp-ig-grid li:nth-child(even) i{
	color: #000;
}

/* we are using a combination of borders and box shadows to control the grid lines */
.cbp-ig-grid li:nth-child(-n+3){
	border-top: none;
}

.cbp-ig-grid li:nth-child(3n-1),
.cbp-ig-grid li:nth-child(3n-2) {
	box-shadow: 1px 0 0 #ddd;
}

/* anchor style */
.cbp-ig-grid li > a {
	display: block;
	height: 100%;
	color: #daaf48;
	-webkit-transition: background 0.2s;
	-moz-transition: background 0.2s;
	transition: background 0.2s;
}

/* the icon with pseudo class for icon font */
.cbp-ig-icon {
	padding: 30px 0 0 0;
	display: block;
	-webkit-transition: -webkit-transform 0.2s;
	transition: -moz-transform 0.2s;
	transition: opacity 0.2s linear;
}

.cbp-ig-icon:before {
	font-family: 'FontAwesome';
	font-size: 14em;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

ul.cbp-ig-grid li a span.cbp-ig-icon i {
	/* added opacity on icon initial state*/
	visibility: visible;
  opacity: 1;
	transition: visibility 0s 0s, opacity .5s linear;
	text-shadow: -1px 3px 4px rgba(0, 0, 0, 0.59);
}
/*ul.cbp-ig-grid li:hover > a .cbp-ig-icon:before {
    opacity: 1;
}*/
ul.cbp-ig-grid li:hover > a span i {
	visibility: visible;
  opacity: 1;
  transition: opacity .5s linear;
}

.cbp-ig-grid li {
    margin: 0px;
}

.cbp-ig-grid li.president {
	background: transparent url(../_assets/images/grid-president.jpg);
	background-size: cover;
}
.cbp-ig-grid li.ensembles {
	background: transparent url(../_assets/images/grid-ensembles.jpg);
	background-size: cover;
}
.cbp-ig-grid li.manstreet {
	background: transparent url(../_assets/images/grid-manstreet.jpg);
	background-size: cover;
}
.cbp-ig-grid li.photos {
	background: transparent url(../_assets/images/grid-photos.jpg);
	background-size: cover;
}
.cbp-ig-grid li.foundational {
	background: transparent url(../_assets/images/grid-foundational.jpg);
	background-size: cover;
}
.cbp-ig-grid li.podcasts {
	background: transparent url(../_assets/images/grid-lecture.jpg);
	background-size: cover;
}
.cbp-ig-grid li.athletics {
	background: transparent url(../_assets/images/grid-athletics.jpg);
	background-size: cover;
}
.cbp-ig-grid li.chapel {
	background: transparent url(../_assets/images/grid-chapel.jpg);
	background-size: cover;
}
.cbp-ig-grid li.flyover {
	background: transparent url(../_assets/images/grid-flyover.jpg);
	background-size: cover;
}
.cbp-ig-grid li.videotours {
	background: transparent url(../_assets/images/grid-videotours.jpg);
	background-size: cover;
}
 .cbp-ig-grid li.campusmaptour {
	 background: transparent url(../_assets/images/grid-maptour.jpg);
	 background-size: cover;
}
.cbp-ig-grid li.emptysq {
    background-color: #e5e5e5;
    /* display: none; */
    border-right: 1px solid #b9b9b9;
}

.cbp-ig-icon i {
    font-size: 150px;
    margin: 30px 0 20px 0;
    /*color: #ffffff;*/
}

.cbp-ig-icon-video:before {
	/*content: "\e000";*/
	content: "\f03d";
}
.cbp-ig-icon-mic:before {
	/*content: "\f3c9";
	content: "\f03d";*/
}

.cbp-ig-icon-ribbon:before {
	content: "\e001";
}

.cbp-ig-icon-milk:before {
	content: "\e002";
}

.cbp-ig-icon-whippy:before {
	content: "\e003";
}

.cbp-ig-icon-spectacles:before {
	content: "\e004";
}

.cbp-ig-icon-doumbek:before {
	content: "\e007";
}
.cbp-ig-icon-videotours:before {
	content: "\f03d";
}
.cbp-ig-icon-campusmaptour:before {
	content: "\f5a0";
}


/* title element */
.cbp-ig-grid .cbp-ig-title {
	margin: 20px 0 10px 0;
	padding: 20px 0 0 0;
	font-size: 2em;
	position: relative;
	-webkit-transition: -webkit-transform 0.2s;
	-moz-transition: -moz-transform 0.2s;
	transition: transform 0.2s;
}

.cbp-ig-grid .cbp-ig-title:before {
	content: '';
	position: absolute;
	background: #daaf48;
	width: 160px;
	height: 6px;
	top: 0px;
	left: 50%;
	margin: -10px 0 0 -80px;
	-webkit-transition: margin-top 0.2s; /* top or translate does not seem to work in Firefox */
	-moz-transition: margin-top 0.2s;
	transition: margin-top 0.2s;
}

.cbp-ig-grid .cbp-ig-category {
	text-transform: uppercase;
	display: inline-block;
	font-size: 1em;
	letter-spacing: 1px;
	color: #fff;
	-webkit-transform: translateY(10px);
	-moz-transform: -moz-translateY(10px);
	-ms-transform: -ms-translateY(10px);
	transform: translateY(10px);
	opacity: 0;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
	-moz-transition: -moz-transform 0.3s, opacity 0.2s;
	-webkit-transition: transform 0.3s, opacity 0.2s;
}

.cbp-ig-grid li:hover .cbp-ig-category,
.touch .cbp-ig-grid li .cbp-ig-category {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
}

/* Hover styles */

.cbp-ig-grid li > a:hover {
	/*background: #daaf48;*/
	background: rgba(218, 175, 72, 0.8);
}


.cbp-ig-grid li > a:hover .cbp-ig-icon {
	-webkit-transform: translateY(10px);
	-moz-transform: translateY(10px);
	-ms-transform: translateY(10px);
	transform: translateY(10px);
}

.cbp-ig-grid li > a:hover .cbp-ig-icon:before,
.cbp-ig-grid li > a:hover .cbp-ig-title {
	color: #fff;
}

.cbp-ig-grid li > a:hover .cbp-ig-title {
	-webkit-transform: translateY(-30px);
	-moz-transform: translateY(-30px);
	-ms-transform: translateY(-30px);
	transform: translateY(-30px);
}

.cbp-ig-grid li > a:hover .cbp-ig-title:before {
	background: #fff;
	margin-top: 80px;
}

.flex-container {
 display:flex; 
 justify-content:space-around;
}
.flex-item {
   flex:1;
   box-sizing:border-box;
   padding:5px;
   text-align:center;
}
ul.flex-container{
list-style-type:none;
}
li.flex-item img {
    width: 100%;
}

@media screen and (max-width: 62.75em) {
	.cbp-ig-grid li {
		width: 50%;
	}

	/* reset the grid lines */
	.cbp-ig-grid li:nth-child(-n+3){
		border-top: 1px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(3n-1),
	.cbp-ig-grid li:nth-child(3n-2) {
		box-shadow: none;
	}

	.cbp-ig-grid li:nth-child(-n+2){
		border-top: none;
	}

	.cbp-ig-grid li:nth-child(2n-1) {
		box-shadow: 1px 0 0 #ddd;
	}
}

@media screen and (max-width: 41.6em) { 
    .cbp-ig-grid li > a:hover .cbp-ig-title {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
}
    li.emptysq {
        display: none; 
    }
	.cbp-ig-grid li {
		width: 50%;
	}

	.cbp-ig-grid li:nth-child(-n+2){
		border-top: 1px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(2n-1) {
		box-shadow: none
	}

	.cbp-ig-grid li:first-child {
		border-top: none;
	}
}

@media screen and (max-width: 25em) { 
	.cbp-ig-grid {
		font-size: 80%;
	}

	.cbp-ig-grid .cbp-ig-category {
		margin-top: 20px;
	}
}