/* 250415 */
.grid-wrap {clear:both;margin:0 auto;padding:0;max-width:1152px;min-height:630px}


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

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

.js .grid.loaded {background:none}

.grid li {
    display:inline-block;
    overflow:hidden;
    width:330px;
    text-align:left;
    vertical-align:top;
    transition: ease .3s;
}

.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-wrap li a .img-wrap {
    overflow:hidden;
}
.grid-wrap li a .img-wrap img {
    height:230px;
    border:1px solid #ecf0f7;
    transition: ease .3s;
    object-fit: cover;
}
.grid li > a,
.grid li img {
	display: block;
    width:calc(100%);
	outline: none;
	border: none;
    border-radius:3px;
}

.grid li > a {
	position: relative;
	overflow: hidden;
	margin: 0;
    padding:10px;
    border-radius:3px;
    /* clip-path:polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px); */
}
.grid-wrap li a:hover img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}
.grid li > a > p.comment {
    display:block;
    min-height:90px;
    padding:0 10px;
    margin:0 0 2rem 0;
    font-size:.9rem;
    color:#555
}

/* Curtain element */
.grid .curtain {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	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 {
	margin: 0;
	padding: 1rem 10px;
	width: 100%;
	background:transparent;
	color: #333;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: -.5px;
	font-weight: bold;
	font-size: 1rem;
	-webkit-transition: -webkit-transform 0.2s, color 0.2s;
	transition: transform 0.2s, color 0.2s;
/*
    background: #fff;  
    background: -webkit-linear-gradient(to right, #00c73c, #00c73c);  
    background: linear-gradient(to right, #00c73c, #00c73c); 
*/
}

/* Pseudo element for hover effect */
/* .grid li > a::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100.5%;
	height: 100.5%;
	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: #000;
	/* -webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
    transition:ease-in-out .2s;
    letter-spacing:-1px */
}

.grid li.shown:hover > a::before {
	border-width: 0;
    background:rgba(43, 43, 43, 0.7);
    transition:ease-in-out .2s;
}

/* 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 {
	visibility: hidden;
}

.grid li.animate img,
.grid li.animate h3 {
	-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 {
	visibility: visible;
}
@media screen and (min-width:1200px) and (max-width:1494px) {
    .grid li {
        width:320px
    }
    .grid li > a {
        padding:10px
    }
}
@media screen and (min-width:561px) and (max-width:659px) {
    .grid li {
        max-width:300px
    }
    .grid li > a {
        padding:10px
    }
}
@media screen and (max-width:768px) {
    .grid li h3 {
        padding:1rem 10px;
        text-align:left;
        font-size:1rem;
        font-weight:700;
    }
    .grid li.shown:hover h3 {
        font-size:1rem;
    }
}
@media screen and (max-width:560px) {
    .grid li {width:100% !important}
    .grid li > a {
        padding:0;
        clip-path:none !important;
		border-radius: 0
    } 
    .grid li h3 {
        font-size:1.5rem;
        padding:1rem 10px 1rem 10px;
        transition:ease-in-out .3s;
    }
    .grid li.shown:hover h3 {
        font-size:1.5rem;
    }
    .grid-wrap li a img {
        height:230px;
        object-fit: cover;
        border-radius: 0;
    }
	.grid li > a > p.comment {
		font-size:1rem;
		margin:0 0 3rem 0;
	}
	.grid-wrap li a .img-wrap img {
		border:none;
	}
}

/*
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,0.5); 
    border-radius: 0;
}
::-webkit-scrollbar-thumb {
    border-radius: 0;
    -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,1); 
}
*/
/* @media screen and (min-width:1872px) {
    .grid li {
        width:340px
    }
    .grid li > a {
        padding:15px
    }
}

@media screen and (max-width:1494px) {
	.grid li {
        width:280px
    }
    .grid li > a {
        padding:10px
    }
}
@media screen and (max-width: 768px) {
    .grid li {
        width:230px
    }
    .grid li > a {
        padding:5px
    }
} */