/* set relative to positionante content correctly */
.gridex {
	position: relative;
}

/* animatable grid container */
.gd-expander {
	position: absolute;
	overflow: hidden;
	height: 500px;
	margin-top: 20px;
	max-width: 100%;
	left: 30px; /* standar row margin is 30px */
}

/* inner content container */
.gd-inner {
	padding: 50px;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 6%, #444444 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(6%,#ffffff), color-stop(100%,#444444)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 6%,#444444 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 6%,#444444 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 6%,#444444 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 6%,#444444 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#444444',GradientType=0 );
}

/* top arrow when expanded */
.gridex > li > a {
	position: relative;
}
.gridex > .gd-expanded > a::after {
	top: auto;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-bottom-color: #444;
	border-width: 25px;
	left: 50%;
	margin: -25px 0 0 -25px;
}


@media (max-width: 1200px) {
	.gd-expander {
		left: 20px; /* decrement left as bootstrap does */
	}
}

@media (max-width: 767px) {
	.gd-inner img {
		display: none; /* hide to not overflow */
	}
	.gd-expander {
		left: 0; /* remove left as bootstrap does */
	}
}
