.tw-grid-header{
	margin: 0px auto;
	position: relative;
	/*background-image: url('../img/TwitterLogo.jpg');*/
	background-repeat: no-repeat;
	background-size: 350px auto;
}
	.tw-grid-header-inner{
		margin: 0px auto;
		font-size: 0px;
		line-height: 0px;
		width: 100%;
		max-width: 600px;
		text-align: center;
	}
		.tw-grid-header-photo-link{
			display: block;
			transition: all ease .5s;
		}
			.tw-grid-header-photo-link:hover{
				opacity: 0.9;
			}
			.tw-grid-header-photo-img{
				width: 100%;
				height: auto;
				max-width: 200px;
				display: block;
				border-radius: 100%;
				margin: 0px auto;
			}
		.tw-grid-header-handle{
			font-size: 24px;
			line-height: 36px;
			font-weight: 300;
			color: #2c3f5e;
			display: inline-block;
			margin: 0px auto;
			padding: 20px 0px;
			transition: all ease .5s;
		}
			.tw-grid-header-handle:hover{
				color: #b3393b;
			}
		.twitter-follow-button{
			display: block;
			margin: 0px auto;
		}


.tw-icons{
	text-align: center;
}
.tw-icons i {
	color: #1da1f2;
	margin: 6px 12px 31px;
	font-size: 24px;
}
.tw-icons i:hover{
	color: #2c3f5e;
	transition: all ease .5s;
}
.tw-icons i.fa-heart:hover{
	color: #b3393b;
}

.tweet-wrapper {
	box-shadow: 10px 10px #d1d1d1;
	background-color: #ffffff;
}
.tw-content{
	margin: 0;
	padding: 25px;
	color: #2c3f5e;
}
.tw-content a{
	color: #1da1f2;
	font-weight: 400;
}
.tw-content a:hover{
	color: #2c3f5e;
	transition: all ease .5s;
}
.tw-img-wrapper{
	position: relative;
}
.tw-img{
	height: 110px;
	background-size: cover;
	background-position: center center;
}
.tweet-wrapper .color-overlay{
	opacity: .7;
}
.icon-wrapper{
	position: absolute;
	overflow: hidden;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
}
.icon-wrapper .fa-twitter{
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 auto;
	display: block;
	text-align: center;
	font-size: 42px;
	color: #ffffff;
	opacity: 1;
}

/*new*/
.grid li > div {
		margin: 9px;
		margin-bottom: 20px;
		/*border: 1px solid black;*/
}

.home .grid-wrap{
	background-image: url(../img/twitterlogo.png);
	background-repeat: no-repeat;
	background-position: center 0;
	background-size: contain;
}
.grid-wrap {
	clear: both;
	margin: 0 auto;
	padding: 0;
	/*max-width: 1260px;*/
	max-width: 1312px;
}

.grid {
	margin: 30px auto;
	padding: 0;
	list-style: none;
	min-height: 500px;
}

.js .grid {
	background: url(../img/loading_1.gif) no-repeat 50% 100px;
}

.js .grid.loaded {
	background: none;
}

.grid li {
	display: inline-block;
	overflow: hidden;
	/*width: 314px;*/
	/*new*/
	width: 325px;
	text-align: left;
	vertical-align: top;
}

.js .grid li {
	display: none;
	float: left;
}

.js .grid.loaded li {
	display: block;
}

/* Title box */
.title-box h2 {
	display: block;
	margin: 7px;
	padding: 20px;
	background: #2E3444;
	color: #D3EEE2;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 300;
}

.title-box h2 a {
	display: block;
	font-weight: 900;
}

.title-box h2 a:hover {
	color: #D3EEE2;
}

/* Anchor and image */
.grid li > a,
.grid li img {
	display: block;
	outline: none;
	border: none;
}

.grid li > a {
	position: relative;
	overflow: hidden;
	margin: 7px;
}


/* Curtain element */
.grid .curtain {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	width: 98%;
	height: 100%;
	background: #96cdc8;
}

.grid.swipe-right .curtain {
	-webkit-transform: translate3d(-100%,0,0);
	transform: translate3d(-100%,0,0);
}

.grid.swipe-down .curtain {
	-webkit-transform: translate3d(0,-100%,0);
	transform: translate3d(0,-100%,0);
}

.grid.swipe-rotate .curtain {
	width: 200%;
	height: 200%;
	-webkit-transform: rotate3d(0,0,1,90deg);
	transform: rotate3d(0,0,1,90deg);
	-webkit-transform-origin: top left;
	transform-origin: top left;
}

/* Shadow */
.grid .curtain::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,1);
	content: '';
}

.grid.swipe-right .curtain::after,
.grid.swipe-rotate .curtain::after {
	left: -100%;
}

.grid.swipe-down .curtain::after {
	top: -100%;
}

/* Title */
.grid li h3 {
	/*position: absolute;*/
	/*position: relative;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 20px;
	width: 100%;
	background: #2E3444;
	color: #D3EEE2;
	text-align: right;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 800;
	font-size: 1em;
	-webkit-transition: -webkit-transform 0.2s, color 0.2s;
	transition: transform 0.2s, color 0.2s;*/
}

/* Pseudo element for hover effect */
.grid li > a::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100.5%;
	height: 100.5%;
	border: 0px solid transparent;
	background: rgba(0,0,0,0);
	content: '';
	-webkit-transition: border-width 0.2s, border-color 0.2s;
	transition: border-width 0.2s, border-color 0.2s;
}

/* Hover effects */
/*.grid li.shown:hover h3 {
	color: #fff;
	-webkit-transform: translate3d(0,-30px,0);
	transform: translate3d(0,-30px,0);
}*/
.grid li.shown:hover .tweet-wrapper{
	box-shadow: 10px 10px #c7c7c7;
	transition: all ease .6s;
}

.grid li.shown:hover > a::before {
	border-width: 14px;
	border-color: #2E3444;
}
.grid li.shown > a::before {
	border-width: 14px;
	border-color: #2E3444;
}
li.shown:hover {
	transform: scale(.95);
	transition: all ease .6s;
}

/* Animations */

/* Swipe right */
.grid.swipe-right li.animate .curtain {
	-webkit-animation: swipeRight 1.5s cubic-bezier(0.6,0,0.4,1) forwards;
	animation: swipeRight 1.5s cubic-bezier(0.6,0,0.4,1) forwards;
}

@-webkit-keyframes swipeRight {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { -webkit-transform: translate3d(0,0,0); }
	100% { -webkit-transform: translate3d(100%,0,0); }
}

@keyframes swipeRight {
	0% {}
	50%, 60% { -webkit-transform: translate3d(0,0,0); transform: translate(0); }
	100% { -webkit-transform: translate3d(100%,0,0); transform: translate3d(100%,0,0); }
}

/* Swipe down */
.grid.swipe-down li.animate .curtain {
	-webkit-animation: swipeDown 1.5s cubic-bezier(0.6,0,0.4,1) forwards;
	animation: swipeDown 1.5s cubic-bezier(0.6,0,0.4,1) forwards;
}

@-webkit-keyframes swipeDown {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { -webkit-transform: translate3d(0,0,0); }
	100% { -webkit-transform: translate3d(0,100%,0); }
}

@keyframes swipeDown {
	0% {}
	50%, 60% { -webkit-transform: translate(0); transform: translate(0); }
	100% { transform: translate3d(0,100%,0); transform: translate3d(0,100%,0); }
}

/* Swipe rotate */
.grid.swipe-rotate li.animate .curtain {
	-webkit-animation: swipeRotate 1.5s ease forwards;
	animation: swipeRotate 1.5s ease forwards;
}

@-webkit-keyframes swipeRotate {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { -webkit-transform: rotate3d(0,0,1,0deg); }
	100% { -webkit-transform: rotate3d(0,0,1,-90deg); }
}

@keyframes swipeRotate {
	0% {}
	50%, 60% { -webkit-transform: rotate3d(0,0,1,0deg); transform: rotate3d(0,0,1,0deg); }
	100% { -webkit-transform: rotate3d(0,0,1,-90deg); transform: rotate3d(0,0,1,-90deg); }
}

/* Shadow */
.grid li.animate .curtain::after {
	-webkit-animation: fadeOut 1.5s ease forwards;
	animation: fadeOut 1.5s ease forwards;
	-webkit-animation-delay: inherit;
	animation-delay: inherit;
}

@-webkit-keyframes fadeOut {
	0% {} /* fixes Chrome 35.0.1916.114 issue (easing breaks) */
	50%, 60% { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes fadeOut {
	0% {}
	50%, 60% { opacity: 1; }
	100% { opacity: 0; }
}

/* Hide image and title and show at half time */
.js .grid li img,
/*.js .grid li h3,*/
.js .grid li .tweet-wrapper {
	visibility: hidden;
}

.grid li.animate img,
/*.grid li.animate h3,*/
.grid li.animate .tweet-wrapper {
	-webkit-animation: showMe 1.5s step-end forwards;
	animation: showMe 1.5s step-end forwards;
}

@-webkit-keyframes showMe {
	from { visibility: hidden; }
	60%, 100% { visibility: visible; }
}

@keyframes showMe {
	from { visibility: hidden; }
	60%, 100% { visibility: visible; }
}

.grid li.shown img,
/*.grid li.shown h3,*/
.grid li.shown .tweet-wrapper {
	visibility: visible;
}
