.grid  *, .grid *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

.grid {
	max-width: 1400px;
	list-style: none;
	padding: 0;
	width:100%;
	margin:60px auto ;
	height: 100%;
}
.grid li {
	display: inline-block;
	padding: 7px;
	width: 33%;
	margin:0;
	opacity: 0;
	box-sizing: border-box;
	vertical-align: top;
	text-align: center;
}

.grid.gallery li{width:50%;padding: 0 5% 100px;}
.grid.gallery li:first-child{width:50%; margin-top:100px;}

.grid.after li{}

.grid li.shown,
.no-js .grid li,
.no-cssanimations .grid li {
	opacity: 1;
}

.grid li a,
.grid li img {
	outline: none;
	border: none;
	display: block;
	width:100%;
	max-width: 100%;
	opacity: 1;
}

.grid .icon{position: absolute; left:0; top:0; width:60px; height: 60px; background:#aa8569; display: block; font-size: 1rem; color: #fff; line-height: 60px; text-align: center;}
.grid li.noitem{width:100%; margin: 0 auto; padding: 200px 0; display: block; clear: both; text-align: center; font-size: 20px; color: #333; border:none;}
.grid li.noitem:hover{color: #333;}


.grid li .thumb{position: relative;overflow: hidden;transition: all .3s; display: flex;justify-content: center; align-items: center;}
.grid li:hover .thumb{box-shadow: 20px 10px 20px rgba(0,0,0,.3);}
.grid li:hover .g_title a{color: #003755}

.grid li .thumb .mask{position: absolute; left:0; top:0; right:0; bottom:0; background: rgba(0,0,0,.5); z-index: 1; }

.grid li .thumb:hover .movie{position: absolute; left:0; top:0; right:0; bottom:0; background: rgba(0,0,0,.5); z-index: 1; transition-property: background;transition: all .3s;}
.grid li .thumb .movie:before{width:78px; height: 78px; display: block; content: ''; background:url(../../images/community/ico_movie.png)no-repeat center center; position: absolute; left:50%; top:50%; margin-left:-39px; margin-top:-39px;}
.grid li .thumb .need_login{background: rgba(0,55,85,.93); display: flex; justify-content: center; align-items: center;font-size: 18px; color: #fff; text-align: center; width:100%; height: 100%;min-height: 300px;}
.grid li .thumb .need_login.after{width: 230px; min-height: 300px; position: absolute; left:0; top:0;}
.grid li .thumb .afterimg{width:230px; height: 300px;}
.grid li .thumb .afterimg2{width:230px; height: 300px;}


.grid li .info{margin:0 auto 30px; padding:10px 0; position: relative;}
.grid li .info .g_title{margin: 20px auto 20px;}
.grid li .info .g_title a{font-size:24px; color:#000;line-height: 1.3; text-overflow:ellipsis; white-space:nowrap;word-wrap:normal;overflow:hidden;}
.grid li .info p{font-size:18px; color:#bbb; margin-top:5px;font-family: 'Poppins','noto Sans KR';}
.grid li:hover{color: #aa8569;}
.grid li .info .g_title span{color: #003755; margin-right: 10px;}

/* Effect 1: opacity */
.grid.effect-1 li.animate {
	-webkit-animation: fadeIn 0.65s ease forwards;
	animation: fadeIn 0.65s ease forwards;
}

@-webkit-keyframes fadeIn {
	0% { }
	100% { opacity: 1; }
}

@keyframes fadeIn {
	0% { }
	100% { opacity: 1; }
}

/* Effect 2: Move Up */
.grid.effect-2 li.animate {
	-webkit-transform: translateY(200px);
	transform: translateY(200px);
	-webkit-animation: moveUp 0.65s ease forwards;
	animation: moveUp 0.65s ease forwards;
}

@-webkit-keyframes moveUp {
	0% { }
	100% { -webkit-transform: translateY(0); opacity: 1; }
}

@keyframes moveUp {
	0% { }
	100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

/* Effect 3: Scale up */
.grid.effect-3 li.animate {
	-webkit-transform: scale(0.6);
	transform: scale(0.6);
	-webkit-animation: scaleUp 0.65s ease-in-out forwards;
	animation: scaleUp 0.65s ease-in-out forwards;
}

@-webkit-keyframes scaleUp {
	0% { }
	100% { -webkit-transform: scale(1); opacity: 1; }
}

@keyframes scaleUp {
	0% { }
	100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}

/* Effect 4: fall perspective */
.grid.effect-4 {
	-webkit-perspective: 1300px;
	perspective: 1300px;
}

.grid.effect-4 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(400px) translateY(300px) rotateX(-90deg);
	transform: translateZ(400px) translateY(300px) rotateX(-90deg);
	-webkit-animation: fallPerspective .8s ease-in-out forwards;
	animation: fallPerspective .8s ease-in-out forwards;
}

@-webkit-keyframes fallPerspective {
	0% { }
	100% { -webkit-transform: translateZ(0px) translateY(0px) rotateX(0deg); opacity: 1; }
}

@keyframes fallPerspective {
	0% { }
	100% { -webkit-transform: translateZ(0px) translateY(0px) rotateX(0deg); transform: translateZ(0px) translateY(0px) rotateX(0deg); opacity: 1; }
}

/* Effect 5: fly (based on http://lab.hakim.se/scroll-effects/ by @hakimel) */
.grid.effect-5 {
	-webkit-perspective: 1300px;
	perspective: 1300px;
}

.grid.effect-5 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform-origin: 50% 50% -300px;
	transform-origin: 50% 50% -300px;
	-webkit-transform: rotateX(-180deg);
	transform: rotateX(-180deg);
	-webkit-animation: fly .8s ease-in-out forwards;
	animation: fly .8s ease-in-out forwards;
}

@-webkit-keyframes fly {
	0% { }
	100% { -webkit-transform: rotateX(0deg); opacity: 1; }
}

@keyframes fly {
	0% { }
	100% { -webkit-transform: rotateX(0deg); transform: rotateX(0deg); opacity: 1; }
}

/* Effect 6: flip (based on http://lab.hakim.se/scroll-effects/ by @hakimel) */
.grid.effect-6 {
	-webkit-perspective: 1300px;
	perspective: 1300px;
}

.grid.effect-6 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform-origin: 0% 0%;
	transform-origin: 0% 0%;
	-webkit-transform: rotateX(-80deg);
	transform: rotateX(-80deg);
	-webkit-animation: flip .8s ease-in-out forwards;
	animation: flip .8s ease-in-out forwards;
}

@-webkit-keyframes flip {
	0% { }
	100% { -webkit-transform: rotateX(0deg); opacity: 1; }
}

@keyframes flip {
	0% { }
	100% { -webkit-transform: rotateX(0deg); transform: rotateX(0deg); opacity: 1; }
}

/* Effect 7: helix (based on http://lab.hakim.se/scroll-effects/ by @hakimel) */
.grid.effect-7 {
	-webkit-perspective: 1300px;
	perspective: 1300px;
}

.grid.effect-7 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
	-webkit-animation: helix .8s ease-in-out forwards;
	animation: helix .8s ease-in-out forwards;
}

@-webkit-keyframes helix {
	0% { }
	100% { -webkit-transform: rotateY(0deg); opacity: 1; }
}

@keyframes helix {
	0% { }
	100% { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); opacity: 1; }
}

/* Effect 8:  */
.grid.effect-8 {
	-webkit-perspective: 1300px;
	perspective: 1300px;
}

.grid.effect-8 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: scale(0.4);
	transform: scale(0.4);
	-webkit-animation: popUp .8s ease-in forwards;
	animation: popUp .8s ease-in forwards;
}

@-webkit-keyframes popUp {
	0% { }
	70% { -webkit-transform: scale(1.1); opacity: .8; -webkit-animation-timing-function: ease-out; }
	100% { -webkit-transform: scale(1); opacity: 1; }
}

@keyframes popUp {
	0% { }
	70% { -webkit-transform: scale(1.1); transform: scale(1.1); opacity: .8; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
	100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}

/*
@media screen and (max-width: 1100px) {
	.grid li {
		width: 33.33%;
	}
}

@media screen and (max-width: 800px) {
	.grid li {
		width: 50%;
	}
}
*/
@media screen and (max-width: 900px) {
	.grid li a .info .g_title{font-size:1.3rem; }

}
@media screen and (max-width: 800px) {
	.grid li {
		width: 100%;
	}
	.grid.gallery li{width:100%;padding: 60px 20px 0;}
	.grid li.noitem{font-size: 16px !important;}
	.grid.gallery li:first-child{width:100%; margin-top:0;}
	.grid li .info .g_title a{font-size:20px;}
	.grid li .info p{font-size:16px; }
	
	.grid.after{text-align: center;}
	.grid.after li{max-width:320px;}
	.grid li .thumb .need_login.after{width: 160px; min-height: 210px; left:50%; margin-left:-160px;}
	.grid li .thumb .afterimg{width:160px; height: 210px;}
	.grid li .thumb .afterimg2{display: none; visibility: hidden;}
		
}
