﻿.container {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
}
/* .container .boxItem {
	width:31%;
	height:242px;
	position:relative;
  margin: 0 20px 20px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.container .boxItem:nth-child(3n){
  margin-right: 0;
}
.container .boxItem>a {
	position:absolute;
	display:block;
	width:100%;
	height:100%;
  z-index:10;
}
.container .boxItem>a:first-of-type:hover,.container .boxItem>a:nth-child(2):hover,.container .boxItem>a:nth-child(3):hover,.container .boxItem>a:last-of-type:hover {
	z-index:11;
	-moz-clip-path:none;
	-webkit-clip-path:none;
	clip-path:none;
	clip:auto;
}
.container .boxItem>a:first-of-type {
	-moz-clip-path:polygon(0 0,100% 0,50% 50%);
	-webkit-clip-path:polygon(0 0,100% 0,50% 50%);
	clip-path:polygon(0 0,100% 0,50% 50%);
	clip:rect(0px,150px,120px,0px);
}
.container .boxItem>a:first-of-type:hover~.itemContentBox .imgitem {
	-moz-transform:rotateX(-90deg);
	-webkit-transform:rotateX(-90deg);
	transform:rotateX(-90deg);
}
.container .boxItem>a:first-of-type:hover~.itemContentBox .itemContent:first-of-type {
	-moz-transform:rotateX(0);
	-webkit-transform:rotateX(0);
	transform:rotateX(0);
	opacity:1;
}
.container .boxItem>a:nth-child(2) {
	-moz-clip-path:polygon(100% 0,50% 50%,100% 100%);
	-webkit-clip-path:polygon(100% 0,50% 50%,100% 100%);
	clip-path:polygon(100% 0,50% 50%,100% 100%);
	clip:rect(0px,150px,150px,120px);
}
.container .boxItem>a:nth-child(2):hover~.itemContentBox .imgitem {
	-moz-transform:rotateY(-90deg);
	-webkit-transform:rotateY(-90deg);
	transform:rotateY(-90deg);
}
.container .boxItem>a:nth-child(2):hover~.itemContentBox .itemContent:nth-of-type(2) {
	-moz-transform:rotateY(0);
	-webkit-transform:rotateY(0);
	transform:rotateY(0);
	opacity:1;
}
.container .boxItem>a:nth-child(3) {
	-moz-clip-path:polygon(0 100%,50% 50%,100% 100%);
	-webkit-clip-path:polygon(0 100%,50% 50%,100% 100%);
	clip-path:polygon(0 100%,50% 50%,100% 100%);
	clip:rect(120px,150px,150px,0px);
}
.container .boxItem>a:nth-child(3):hover~.itemContentBox .imgitem {
	-moz-transform:rotateX(90deg);
	-webkit-transform:rotateX(90deg);
	transform:rotateX(90deg);
}
.container .boxItem>a:nth-child(3):hover~.itemContentBox .itemContent:nth-of-type(3) {
	-moz-transform:rotateX(0);
	-webkit-transform:rotateX(0);
	transform:rotateX(0);
	opacity:1;
}
.container .boxItem>a:last-of-type {
	-moz-clip-path:polygon(0 0,50% 50%,0 100%);
	-webkit-clip-path:polygon(0 0,50% 50%,0 100%);
	clip-path:polygon(0 0,50% 50%,0 100%);
	clip:rect(0px,30px,150px,0px);
}
.container .boxItem>a:last-of-type:hover~.itemContentBox .imgitem {
	-moz-transform:rotateY(90deg);
	-webkit-transform:rotateY(90deg);
	transform:rotateY(90deg);
}
.container .boxItem>a:last-of-type:hover~.itemContentBox .itemContent:last-of-type {
	-moz-transform:rotateY(0);
	-webkit-transform:rotateY(0);
	transform:rotateY(0);
	opacity:1;
}
.container .boxItem .itemContentBox {
	width:100%;
	height:100%;
  position:absolute;
  border-bottom: 2px solid #e60012;
}
.container .boxItem .itemContentBox .imgitem {
	width:100%;
  height:100%;
  background: #fff;
	position:absolute;
	z-index:2;
	transition:all .3s linear;
  transform-origin:center center -75px;
}
.container .boxItem.on .itemContentBox .imgitem{
  background: #e60012 !important;
  transition: all .3s linear;
}
.container .boxItem.on .itemContentBox .imgItemFont{
  color: #fff;
}
.container .boxItem .itemContentBox .imgItemFont {
  position: absolute;
  left: 34%;
  top: 45%;
  transform: translate(-32%,-45%);
}
.container .boxItem .itemContentBox .itemContent {
	position:absolute;
	width:100%;
	height:100%;
  background:#e60012;
	transform-style:preserve-3d;
	transform-origin:center center -75px;
	transition:all .3s linear;
}
.container .boxItem .itemContentBox .itemContent .imgItemFont {
	color: #fff;
}
.container .boxItem .itemContentBox .itemContent:first-of-type {
	transform:rotateX(90deg);
}
.container .boxItem .itemContentBox .itemContent:nth-of-type(2) {
	transform:rotateY(90deg);
}
.container .boxItem .itemContentBox .itemContent:nth-of-type(3) {
	transform:rotateX(-90deg);
}
.container .boxItem .itemContentBox .itemContent:last-of-type {
	transform:rotateY(-90deg);
}
@media (max-width: 1679px) {
  .container .boxItem{
    height: 190px;
  }
}
@media (max-width: 1419px) {
  .container .boxItem {
    height: 160px;
    margin: 0 15px 15px 0;
  }
}
@media (max-width: 991px) {
  .container .boxItem {
    height: 120px;
    margin: 0 12px 12px 0;
  }
  .container .boxItem .itemContentBox .imgItemFont{
    left: 22%;
    transform: translate(-10%,-45%);
  }
}
@media (max-width: 768px) {
  .container .boxItem {
    width: 46%;
    margin: 0 5px 10px 0;
  }
  .container .boxItem.on .itemContentBox .imgitem {
    background: #fff !important;
  }
  .container .boxItem.on .itemContentBox .imgItemFont {
    color: #333 !important;
  }
} */
.codrops-top {
    background: #fff;
    background: rgba(255,255,255,.6);
    text-transform: uppercase;
    width: 100%;
    font-size: .69em;
    line-height: 2.2
}

    .codrops-top a {
        padding: 0 1em;
        letter-spacing: .1em;
        color: #888;
        display: inline-block
    }

        .codrops-top a:hover {
            background: rgba(255,255,255,.95);
            color: #333
        }

    .codrops-top span.right {
        float: right
    }

        .codrops-top span.right a {
            float: left;
            display: block
        }

.codrops-icon:before {
    font-family: codropsicons;
    margin: 0 4px;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased
}

.codrops-icon-drop:before {
    content: "\e001"
}

.codrops-icon-prev:before {
    content: "\e004"
}

.codrops-icon-archive:before {
    content: "\e002"
}

.codrops-icon-next:before {
    content: "\e000"
}

.codrops-icon-about:before {
    content: "\e003"
}

.codrops-demos {
    padding-top: 1em;
    font-size: .9em
}

    .codrops-demos a {
        display: inline-block;
        margin: .5em;
        padding: .7em 1.1em;
        border: 3px solid #b3b9bf;
        color: #b3b9bf;
        font-weight: 700
    }

        .codrops-demos a:hover, .codrops-demos a.current-demo, .codrops-demos a.current-demo:hover {
            border-color: #2c3f52;
            color: #2c3f52
        }

@media screen and (max-width:25em) {
    .codrops-icon span {
        display: none
    }
}

.grid {
    margin: -20px;
    list-style: none;
    text-align: center
}

    .grid li {
        display: inline-block;
        width: 33.3333333%;
        padding: 20px;
        float: left;
        text-align: left;
        position: relative
    }

    .grid figure {
        margin: 0;
        position: relative;
    }

        .grid figure::before {
            content: '';
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, .3);
            position: absolute;
            top: 0;
            left: 0;
        }

        .grid figure img {
            max-width: 100%;
            display: block;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        }

        .grid figure .intw-fltit {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 18px;
            color: #fff;
        }

    .grid figcaption {
        position: absolute;
        top: 0;
        left: 0;
        padding: 20px;
        background: #e60012;
        color: #ed4e6e;
    }
        /* .grid figcaption h3{margin:0;padding:0;color:#fff} */
        .grid figcaption .imgItemFont {
            color: #fff;
        }

        .grid figcaption a {
            text-align: center;
            padding: 5px 10px;
            border-radius: 2px;
            display: inline-block;
            background: #ed4e6e;
            color: #fff
        }

.cs-style-1 figcaption {
    height: 100%;
    width: 100%;
    opacity: 0;
    text-align: center;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform .3s,opacity .3s;
    -moz-transition: -moz-transform .3s,opacity .3s;
    transition: transform .3s,opacity .3s
}

.no-touch .cs-style-1 figure:hover figcaption, .cs-style-1 figure.cs-hover figcaption,.cs-style-1 figure:hover figcaption {
    opacity: 1;
    -webkit-transform: translate(15px,15px);
    -moz-transform: translate(15px,15px);
    -ms-transform: translate(15px,15px);
    transform: translate(15px,15px)
}

.cs-style-1 figcaption h3 {
    margin-top: 50px
}

.cs-style-1 figcaption p {
    display: block
}

.cs-style-1 figcaption a {
    margin-top: 30px
}

@media (max-width: 1679px) {
    .cs-style-1 figcaption h3 {
        margin-top: 30px
    }
}

@media (max-width: 1419px) {
    .grid {
        margin: -16px;
    }

        .grid li {
            padding: 16px;
        }

    .cs-style-1 figcaption h3 {
        margin: 20px 0 10px;
    }

    .grid figure .intw-fltit {
        font-size: 17px;
    }
}

@media (max-width: 991px) {
    .grid li {
        width: 50%;
    }

    .grid figcaption {
        padding: 15px;
    }

    .grid figure .intw-fltit {
        font-size: 16px;
    }

    .grid figcaption .imgItemFont {
        position: absolute;
        min-width: 100px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cs-style-1 figcaption h3 {
        margin-top: 0;
    }
    /* .cs-style-1 figcaption h3{margin-top: 36px;} */
}

@media(max-width:640px) {
    .grid {
        margin: -13px;
    }

        .grid li {
            padding: 13px;
        }
    /* .cs-style-1 figcaption h3{margin-top: 30px;} */
}
/* @media(max-width:410px){
  .grid{margin: -18px;}
  .grid li{width:100%;padding: 18px;}
  .cs-style-1 figcaption h3{margin-top: 50px;}
} */
