/* -------------------------------- 

Primary style

-------------------------------- */
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  cursor: none;
}

body {
  font-size: 100%;
  font-family: 'Kanit', sans-serif;
  background-color: #333333;
}

p {
  font-family: 'Kanit', sans-serif;
  font-size:18px;
  line-height:18px;
  font-weight: 300;
}

.small-print {
    font-size:14px;
    line-height:16px;
}

.row .bullet-b {
    font-size: 22px;
    font-weight:400;
    color:#222a3b;
}

#sub-title {
    font-size:26px;
    margin-top:80px;
}

body, html {
  /* important */
  height: 100%;
}

a,
.row a {
  color: #111111;
  font-weight:300;    
}

a:hover,
.row a:hover {  
  color:#ffffff;
  text-decoration: underline;    
}

.row h1,
h1 {
  font-family: 'Kanit', sans-serif;
  font-weight:800; 
  text-transform: uppercase; 
  font-style: italic;    
  font-size:50px;
  line-height:40px;     
}

.row h2,
h2 {
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;    
  font-size:40px;
  line-height:40px;    
}

.row h3,
h3 {
  font-family: 'Kanit', sans-serif;
  font-weight: 400;    
  text-transform: uppercase;
  font-style: italic;    
  font-size:30px;
  font-weight: 800;
}

h3 a,
.row h3 a {
  font-family: 'Kanit', sans-serif;
  font-size:20px;
  font-weight: 800;
  color:#fff;
}

.row h4,
h4 {
  font-family: 'Kanit', sans-serif;
  font-style: italic;    
  font-size:20px;
  font-weight: 800;
  text-transform:uppercase;    
  color:#222;
  margin:6px 0;    
}

.row h5 {
  font-family: 'Kanit', sans-serif;
  font-size:24px;
  font-weight: 800;
  font-style:italic;    
  text-align: left;
  margin: -50px 0 0 20px;
  color:#fff;    
}

@media only screen and (max-width: 768px) {
h1,
.row h1    {
  font-family: 'Kanit', sans-serif;
  font-weight:800; 
  text-transform: uppercase; 
  font-style: italic;    
  font-size:40px;
  line-height:30px;    
}
h2,    
.row h2 {   
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;    
  font-size:30px;
  line-height:30px;    
}    
h3,
.row h3    {
  font-family: 'Kanit', sans-serif;
  font-size:20px;
}
#sub-title {
    font-size:20px;
    margin-top:100px;
    font-weight:200;
}    
}

.tilted {
	transform: rotate(-2deg);    
}

.nodec {
  text-decoration: none!important;
}

/* -------------------------------- 

Form style

-------------------------------- */

input,
textarea {
    width:100%;
    border-radius: 6px;
    border:1px solid #ccc;
}

.form-btn {
    width:30%;
    background-color:#111111;
    color:#fff;
}




/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.cd-container {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  width: 80%;
  max-width: 1400px;    
  margin: 0 auto;
}
.cd-container::after {
  /* clearfix */
  content: '';
  display: table;
  clear: both;
}

.open-table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid #ddd;
margin-bottom: 20px;
width: 100%;
}

.open-table tr td {
border: 1px solid #ddd;
padding:10px;
}

.row.lendo-video {
    padding-top:50px;
    width:100%;
    margin-left:0;
}

.title-logo img{
    width:100%
}
.title-logo {
    width: 100%;
    left:50vw;
    margin-left:-200px;
    max-width:400px;
    height:200px;
    position:absolute;
    top:-200px;
}





.header-btns {
    margin:0 auto 50px auto;
    padding:10px;
    max-width:400px;
    width:80%;
    display: flex;
}

.header-btns h1 {
    border-radius:10px;
    font-size:20px;
    color:#fff;
    border:1px solid #6c7895;
    padding:10px;
    margin:10px;
}

.header-btns a:hover {
    text-decoration: line-through!important;
}

.header-btns h1:hover {
    color:#000;
    background-color:#ffffff;
    border:1px solid #6c7895;
}

@media (max-width: 992px) {
.header-btns h1 {
       display:none;
}
}

.btn-outline {
    width: 40%;
    border-radius:10px;
    border:1px solid #fff;
    color:#fff;
    padding:8px;
    margin:0 30%;
}

.btn-outline a {
    color:#fff;
}

.btn-outline-d {
    width: 40%;
    border-radius:10px;
    border:1px solid #333;
    color:#333;
    padding:8px;
    margin:0 30%;
}

.btn-outline-d a {
    color:#333;
}

.btn-outline:hover {
    color:#333;
    text-decoration: line-through!important;
}

.get-btn {
    border-radius:10px;
    font-size:20px;
    color:#fff;
    border:1px solid #6c7895;
    padding:10px;
    margin:10px;
    width:60%;
}

.get-btn:hover {
    color:#000;
    background-color:#ffffff;
    border:1px solid #6c7895;
}

.sm-more-btn {
    border-radius:10px;
    border:1px solid #6c7895;
    font-size: 14px;
    padding:4px;
}

.skew-btn {
  display: inline-block;
  color: #333333!important;
  background-color: #f2f2f2;    
  text-transform: uppercase;
  font-family: 'Kanit', sans-serif;    
  font-weight: 800;
  font-style:italic;    
  padding:6px 10px;
  transform: rotate(-2deg);    
}

.skew-btn:hover {
  color: #222222!important;
  text-decoration: none!important;    
}

#grayskull {
    -webkit-filter: grayscale(100%);/* Safari 6.0 - 9.0 */
    filter: grayscale(100%);    
}

#ftr-links a {
    padding:0 8px;
    margin-left:6px;
    color:#ffffff;
    font-size: 12px;
}

.rounds {
  border-radius: 10px;
}

/* -------------------------------- 

Main components 

-------------------------------- */
.cd-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #111111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.cd-header:after {
  content: "";
  display: table;
  clear: both;
}
.cd-header #cd-logo {
  float: left;
  height: 50px;
  padding-top:5px;
  margin: 0 0 0 5%;
}
.cd-header #cd-logo img {
  display: block;
  padding:4px;
}
@media only screen and (min-width: 768px) {
  .cd-header {
    height: 60px;
  }
  .cd-header #cd-logo { 
    margin: 0 0 0 40px;
  }   
}



.cd-main-content {
  /* you need to assign a min-height to the main content so that the children can inherit it*/
  height: 100%;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.cd-main-content p {  

}
    
.cd-fixed-bg {
  position: relative;
  min-height: 80%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 1;
}

.cd-fixed-bg2 {
  position: relative;
  min-height: 80%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 1;
}

.cd-fixed-bg h1, 
.cd-fixed-bg h2,
.cd-fixed-bg h3,
.cd-fixed-bg2 h1, 
.cd-fixed-bg2 h2,
.cd-fixed-bg2 h3 {
  font-family: 'Kanit', sans-serif;    
  position: absolute;
  left: 50%;
  top: 50%;
  padding-top:50px;    
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: 90%;
  max-width: 420px;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  color: white;
}
.cd-fixed-bg2 h3 {
  top: 80%;   
}
.cd-fixed-bg.cd-bg-1 {
  background-image: url("../img/FIEC-Blank-720.mp4");
}
.cd-fixed-bg.cd-bg-2 {
  background-image: url("../img/funinelkcity-parallax1.png");
}
.cd-fixed-bg.cd-bg-3 {
  background-image: url("../img/funinelkcity-parallax4.png");
}
.cd-fixed-bg.cd-bg-4 {
  background-image: url("../img/about-hero.jpg");
  background-position: right;    
}
.cd-fixed-bg.cd-bg-5 {
  background-image: url("../img/team2.png");
}
.cd-fixed-bg.cd-bg-6 {
  background-image: url("../img/photography/aqua-sprinter.jpg");
}
.cd-fixed-bg.cd-bg-7 {
  background-image: url("../img/rh-web-hero2.jpg");
}
.cd-fixed-bg.cd-bg-8 {
  background-image: url("../img/background_licensed.jpg");
}
.cd-fixed-bg.cd-bg-9 {
  background-image: url("../img/background_ico.jpg");
}
.cd-fixed-bg.cd-bg-10 {
  background-image: url("../img/folio/fred-fox-hero.jpg");
}
.cd-fixed-bg.cd-bg-11 {
  background-image: url("../img/satellite.jpg");
}


.cd-fixed-bg2.cd-bg-2 {
  background-image: url("../img/folio/Squid-1920x1080.jpg");
}

.cd-fixed-bg2.cd-bg-3 {
  background-image: url("../img/folio/Fish-1920x1080.jpg");
}

.cd-fixed-bg2.cd-bg-4 {
  background-image: url("../img/folio/mb-hero1.jpg");
}

.cd-fixed-bg2.cd-bg-5 {
  background-image: url("../img/folio/DP-web-banner1.0.jpg");
}

.cd-fixed-bg2.cd-bg-6 {
  background-image: url("../img/folio/tea-fog.jpg");
}

.cd-fixed-bg2.cd-bg-7 {
  background-image: url("../img/folio/liquidleisure-aerial-hero.jpg");
}

.cd-fixed-bg2.cd-bg-8 {
  background-image: url("../img/folio/cap-pic1.jpg");
}

.cd-fixed-bg2.cd-bg-10 {
  background-image: url("../img/folio/fred-fox-hero.jpg");
}

.cd-fixed-bg2.cd-bg-11 {
  background-image: url("../img/photography/aqua-sprinter.jpg");
}

.cd-fixed-bg2.cd-bg-12 {
  background-image: url("../img/folio/sse-hero.jpg");
}

.cd-fixed-bg2.cd-bg-13 {
  background-image: url("../img/folio/muniro-hero.jpg");
}

.cd-fixed-bg2.cd-bg-14 {
  background-image: url("../img/folio/hats-hero.jpg");
}

.cd-fixed-bg2.cd-bg-14 {
  background-image: url("../img/folio/sse-hero.jpg");
}

.cd-fixed-bg2.cd-bg-15 {
  background-image: url("../img/folio/built-thirteen-hero1.jpg");
}

.cd-fixed-bg2.cd-bg-16 {
  background-image: url("../img/folio/pint-pulling.jpg");
}

.cd-fixed-bg2.cd-bg-17 {
  background-image: url("../img/folio/donforni-hero3.jpg");
}

.cd-fixed-bg2.cd-bg-18 {
  background-image: url("../img/folio/pipe-hit.jpg");
}

.cd-fixed-bg2.cd-bg-19 {
  background-image: url("../img/folio/beach.jpg");
}

@media only screen and (min-width: 768px) {
    .cd-fixed-bg h1,
    .cd-fixed-bg h2,
    .cd-fixed-bg2 h1,
    .cd-fixed-bg2 h2 {
        font-family: 'Kanit', sans-serif;
        font-weight: 800;
        transform: rotate(-2deg);
        font-size:60px;
        left: 10%;
        top:0;
        
  }
    .cd-fixed-bg2 h3,
    .cd-fixed-bg2 h3 {
        font-family: 'Kanit', sans-serif;
        font-weight: 800;
        font-size:20px;
        transform: rotate(-2deg);
        left: 10%;
        top:40vh;
        
  }    
}
@media only screen and (min-width: 1170px) {
  .cd-fixed-bg,
  .cd-fixed-bg2    {
    background-attachment: fixed;
  }
  .cd-fixed-bg h1, .cd-fixed-bg h2, .cd-fixed-bg h3 {
    font-weight: 800;
  }
}

.cd-fixed-bg.cd-fixed-bg--1:after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
    width:100%;
    height:50%;
    background: rgb(17,17,17);
    background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,1) 90%);
		opacity: 1;
    z-index: 99;
}

.cd-scrolling-bg {
  position: relative;
  min-height:auto;
  padding: 2em 0;
  line-height: 1.6;
  /*box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);*/
  z-index: 2;
}

.rh-scrolling-bg {
  position: relative;
  min-height:auto;
  padding-top: 60px;
  line-height:;
  z-index: 2;
}

.rh-container {
  width: 100%;    
  margin: 0;
  overflow:hidden;
}

.hero-label {
    position:relative;
    width:100%;
    margin-top:-100px;
    margin-left:5%;
}

.cd-scrolling-bg.cd-color-1 {
  background-color: #333333;
  color: #ffffff;
}
.cd-scrolling-bg.cd-color-1 h1,
.cd-scrolling-bg.cd-color-1 h2,
.cd-scrolling-bg.cd-color-1 h3,
.cd-scrolling-bg.cd-color-1 h4,
.cd-scrolling-bg.cd-color-5 h2{
  color: #ffffff;
}
.cd-scrolling-bg.cd-color-2 {
  background-color: #111111;
  color: #ffffff;    
}
.cd-scrolling-bg.cd-color-3 {
  background-color: #ffffff;
  color: #222222;
}
.cd-scrolling-bg.cd-color-4 {
  background-image: url("../img/FIEC-light-bkgd2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;    
  color: #333333;
}
.cd-scrolling-bg.cd-color-5 {
  background-image: url("../img/FIEC-dark-bkgd2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;    
  color: #ffffff;
}
.cd-scrolling-bg.cd-color-5 h1,
.cd-scrolling-bg.cd-color-5 h4 {
  color: #dcdcdc;    
}
@media only screen and (min-width: 768px) {
  .cd-scrolling-bg {
    padding: 6em 0;
    font-size: 20px;
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 300;
  }
}

.carousel-control-prev-icon {
 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}

.carousel-indicators li {
    background-color: #000;
}

.carousel-indicators li.active {
    background-color: #999;
}

.gallery-thumb {
    width:100%;
    margin-bottom:30px;
    opacity: 1;
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
}
.gallery-thumb:hover {
    opacity: 0.8;
}

.social {
    width:20px;
    opacity:.5;
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
}

.social:hover {
    opacity:1;
}

.carousel-control-next-icon {
    background-image: url("/img/rh-next.svg") !important;
    width:25px!important;
    height:25px!important;
}
.carousel-control-prev-icon {
    background-image: url("/img/rh-prev.svg") !important;
    width:25px!important;
    height:25px!important;
}



.bkgdanim {
    background: linear-gradient(270deg, #333333, #111111, #4b4b4b);
    background-size: 600% 600%;

    -webkit-animation: AnimationName 45s ease infinite;
    -moz-animation: AnimationName 45s ease infinite;
    animation: AnimationName 45s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes AnimationName { 
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}



.edina_tm_discover_wrap{
	position: absolute;
	z-index: 333;
	right: 4%;
	bottom: 250px;
	transform: rotate(-90deg);
}
.edina_tm_discover_wrap a{
	font-family: 'Kanit', sans-serif;
    font-weight: 800;
    font-style: italic;
	text-decoration: none;
	color: #fff;
	position: relative;
	display: block;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}
.edina_tm_discover_wrap a:hover{/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff6bb7+0,d300ba+100 */
color: #ff6bb7; /* Old browsers */
color: -moz-linear-gradient(top, #ff6bb7 0%, #d300ba 100%); /* FF3.6-15 */
color: -webkit-linear-gradient(top, #ff6bb7 0%,#d300ba 100%); /* Chrome10-25,Safari5.1-6 */
color: linear-gradient(to bottom, #ff6bb7 0%,#d300ba 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6bb7', endColorstr='#d300ba',GradientType=0 ); /* IE6-9 */;text-decoration: line-through;}
.edina_tm_discover_wrap a:hover:before{/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff6bb7+0,d300ba+100 */
color: #ff6bb7; /* Old browsers */
color: -moz-linear-gradient(top, #ff6bb7 0%, #d300ba 100%); /* FF3.6-15 */
color: -webkit-linear-gradient(top, #ff6bb7 0%,#d300ba 100%); /* Chrome10-25,Safari5.1-6 */
color: linear-gradient(to bottom, #ff6bb7 0%,#d300ba 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6bb7', endColorstr='#d300ba',GradientType=0 ); /* IE6-9 */}
.edina_tm_discover_wrap a:before{
	content: '\f104';
    position: absolute;
    bottom: -8px;
    left: -17px;
    line-height: 40px;
    font-family: xcon;
    font-size: 24px;
    color: #fff;
    -webkit-animation: secdownmoving 1000ms linear 0s infinite;
    -o-animation: secdownmoving 1000ms linear 0s infinite;
    animation: secdownmoving 1000ms linear 0s infinite;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}
@keyframes secdownmoving{
    0%{
        -webkit-transform: translateX(0px);
        -ms-transform: translateX(0px);
        -o-transform: translateX(0px);
        transform: translateX(0px);
    }
    50%{
        -webkit-transform: translateX(-10px);
        -ms-transform: translateX(-10px);
        -o-transform: translateX(-10px);
        transform: translateX(-10px);
    }
    100%{
        -webkit-transform: translateX(0px);
        -ms-transform: translateX(0px);
        -o-transform: translateX(0px);
        transform: translateX(0px);
    }
}

/*---------------------------------------------------*/
/*	08)	EDINA PORTFOLIO
/*---------------------------------------------------*/

.edina_tm_portfolio_wrap{
	width: 100%;
	height: auto;
	clear: both;
	float: left;
	margin-bottom: 70px;
	
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	   -moz-box-sizing: border-box; /* Firefox, other Gecko */
			box-sizing: border-box; /* Opera/IE 8+ */ 
}
.edina_tm_portfolio_filter{
	width:100%;
	height: auto;
	text-align:center;
	list-style-type:none;
	margin: 0px 0px 10px 0px;
  font-family: 'Kanit', sans-serif;
  font-style: italic;
  font-weight: 500;
	
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	   -moz-box-sizing: border-box; /* Firefox, other Gecko */
			box-sizing: border-box; /* Opera/IE 8+ */
}
.edina_tm_portfolio_filter li{
	display:inline-block;
	margin:0px 55px 13px 0px;
}
.edina_tm_portfolio_filter li:last-child{margin-right: 0px;}
.edina_tm_portfolio_filter li a{
	text-decoration:none;
	font-size:18px;
	color:#000;
	display: inline-block;
	margin-bottom: 10px;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}
.edina_tm_portfolio_filter li a.current{/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff6bb7+0,d300ba+100 */
color: #ff6bb7; /* Old browsers */
color: -moz-linear-gradient(top, #ff6bb7 0%, #d300ba 100%); /* FF3.6-15 */
color: -webkit-linear-gradient(top, #ff6bb7 0%,#d300ba 100%); /* Chrome10-25,Safari5.1-6 */
color: linear-gradient(to bottom, #ff6bb7 0%,#d300ba 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6bb7', endColorstr='#d300ba',GradientType=0 ); /* IE6-9 */}

/* PORTFOLIO LIST */

.edina_tm_portfolio_list{
	list-style-type:none;
	margin: 0px 0px 0px -30px;
	
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	   -moz-box-sizing: border-box; /* Firefox, other Gecko */
			box-sizing: border-box; /* Opera/IE 8+ */
}
.edina_tm_portfolio_list > li{
	width:33.3333%;
	float:left;
	position:relative;
	margin: 0px 0px 30px 0px;
	padding-left: 30px;
	
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	   -moz-box-sizing: border-box; /* Firefox, other Gecko */
			box-sizing: border-box; /* Opera/IE 8+ */
}
.edina_tm_portfolio_list .list_inner{
	width: 100%;
	height: auto;
	clear: both;
	float: left;
	position: relative;
	border-radius: 3px;
	overflow: hidden;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
	
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	   -moz-box-sizing: border-box; /* Firefox, other Gecko */
			box-sizing: border-box; /* Opera/IE 8+ */
}
.edina_tm_portfolio_list .list_inner .image_wrap{
	position: relative;
	top: 0px;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}
.edina_tm_portfolio_list .list_inner .image_wrap .main_image,
.edina_tm_portfolio_list .list_inner .image_wrap .web_image,
.edina_tm_portfolio_list .list_inner .image_wrap .des_image{
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

/* HOMEPAGE */
.edina_tm_portfolio_list > li:nth-child(1) .image_wrap .main_image{background-image: url(../img/folio/SSE-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(2) .image_wrap .main_image{background-image: url(../img/folio/LLW-thumb.png);}
.edina_tm_portfolio_list > li:nth-child(3) .image_wrap .main_image{background-image: url(../img/folio/bohdidharma-hero.jpg);}
.edina_tm_portfolio_list > li:nth-child(4) .image_wrap .main_image{background-image: url(../img/folio/rlt-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(5) .image_wrap .main_image{background-image: url(../img/folio/isbag-menu-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(6) .image_wrap .main_image{background-image: url(../img/folio/ee-ad-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(7) .image_wrap .main_image{background-image: url(../img/folio/hats-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(8) .image_wrap .main_image{background-image: url(../img/folio/aj-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(9) .image_wrap .main_image{background-image: url(../img/folio/muniro-thumb.jpg);}

/* WEB DESIGN */
.edina_tm_portfolio_list > li:nth-child(1) .image_wrap .web_image{background-image: url(../img/folio/LLW-thumb.png);}
.edina_tm_portfolio_list > li:nth-child(2) .image_wrap .web_image{background-image: url(../img/folio/SSE-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(3) .image_wrap .web_image{background-image: url(../img/folio/bohdidharma-hero.jpg);}
.edina_tm_portfolio_list > li:nth-child(4) .image_wrap .web_image{background-image: url(../img/folio/pulcinella-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(5) .image_wrap .web_image{background-image: url(../img/folio/built13-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(6) .image_wrap .web_image{background-image: url(../img/folio/isbag-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(7) .image_wrap .web_image{background-image: url(../img/folio/mbb-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(8) .image_wrap .web_image{background-image: url(../img/folio/fredfox-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(9) .image_wrap .web_image{background-image: url(../img/folio/donforni-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(10) .image_wrap .web_image{background-image: url(../img/folio/cap-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(11) .image_wrap .web_image{background-image: url(../img/folio/hwh-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(12) .image_wrap .web_image{background-image: url(../img/folio/eb-thumb.jpg);}

/* GRAPHIC DESIGN */
.edina_tm_portfolio_list > li:nth-child(1) .image_wrap .des_image{background-image: url(../img/folio/SSE-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(2) .image_wrap .des_image{background-image: url(../img/folio/LLW-thumb.png);}
.edina_tm_portfolio_list > li:nth-child(3) .image_wrap .des_image{background-image: url(../img/folio/bohdidharma-hero.jpg);}
.edina_tm_portfolio_list > li:nth-child(4) .image_wrap .des_image{background-image: url(../img/folio/rlt-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(5) .image_wrap .des_image{background-image: url(../img/folio/isbag-menu-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(6) .image_wrap .des_image{background-image: url(../img/folio/ee-ad-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(7) .image_wrap .des_image{background-image: url(../img/folio/hats-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(8) .image_wrap .des_image{background-image: url(../img/folio/aj-thumb.jpg);}
.edina_tm_portfolio_list > li:nth-child(9) .image_wrap .des_image{background-image: url(../img/folio/muniro-thumb.jpg);}



.edina_tm_portfolio_list .list_inner .definition_portfolio{
	position: absolute;
	top: 100%;
	background-color: #060606;
	width: 100%;
	text-align: center;
	padding: 25px 0px;
    font-family: 'Kanit', sans-serif;
    text-transform: lowercase;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
				
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	   -moz-box-sizing: border-box; /* Firefox, other Gecko */
			box-sizing: border-box; /* Opera/IE 8+ */ 
}
.edina_tm_portfolio_list .list_inner .definition_portfolio .first{
	color: #FFFFFF;
	display: block;
	text-transform: lowercase;
	font-size: 20px;
	position: relative;
}
.edina_tm_portfolio_list .list_inner .definition_portfolio .first:before{
	position: absolute;
	content: "";
	width: 13px;
	height: 1px;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff6bb7+0,d300ba+100 */
background: #ff6bb7; /* Old browsers */
background: -moz-linear-gradient(top, #ff6bb7 0%, #d300ba 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #ff6bb7 0%,#d300ba 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #ff6bb7 0%,#d300ba 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6bb7', endColorstr='#d300ba',GradientType=0 ); /* IE6-9 */
	bottom: -10px;
	left: 50%;
	margin-left: -6.5px;
}
.edina_tm_portfolio_list .list_inner .definition_portfolio .second{
	display: block;
	color: #eee;
    font-size: 14px;
	margin-top: 14px;
}
.edina_tm_portfolio_list .list_inner .definition_portfolio .first a{
	text-decoration: none;
	color: #FFFFFF;
	
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}
.edina_tm_portfolio_list .list_inner .definition_portfolio .first a:hover{/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff6bb7+0,d300ba+100 */
color: #ff6bb7; /* Old browsers */
color: -moz-linear-gradient(top, #ff6bb7 0%, #d300ba 100%); /* FF3.6-15 */
color: -webkit-linear-gradient(top, #ff6bb7 0%,#d300ba 100%); /* Chrome10-25,Safari5.1-6 */
color: linear-gradient(to bottom, #ff6bb7 0%,#d300ba 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6bb7', endColorstr='#d300ba',GradientType=0 ); /* IE6-9 */}

/*---------------------------------------------------*/
/*	16) EDINA MEDIA QUERIES (FOR SMALL DEVIVES)
/*---------------------------------------------------*/

@media (max-width: 1400px) {
	.edina_tm_to_top_wrap{position: relative;float: right;bottom: 61px;}
	.edina_tm_to_top_wrap.opened{bottom: 61px;}
}
@media (max-width: 1200px) {
	.edina_tm_about_wrap .rightbox{padding: 0px 70px 0px 0px;}
	.edina_tm_list_wrap[data-column="5"] ul.total > li{width: 25%;}
}
@media (max-width: 1040px) {
	.edina_tm_trigger{display: block;}
	.edina_tm_navigation_wrap .nav_list_wrap{display: none;}
	.edina_tm_navigation_wrap .logo{position: relative;top:-1px;}
	.edina_tm_navigation_wrap{padding: 30px 0px;background-color: rgba(0,0,0,.95);}
	.edina_tm_list_wrap[data-column="4"] ul.total > li{width: 33.3333%;}
	.edina_tm_list_wrap[data-column="5"] ul.total > li{width: 33.3333%;}
	.edina_tm_about_wrap .rightbox{padding: 0px 50px 0px 0px;}
	.edina_tm_hero_header .hero_title .first{font-size: 42px;}
	.edina_tm_universal_box_wrap .hero_title.homepage_third h3{font-size: 42px;}
	.edina_tm_animation_text_word{font-size: 18px;}
	#edina_tm_popup_blog .close{right: 0px;}
}
@media (max-width: 768px) {
	.edina_tm_navigation_wrap{padding: 25px 0px;}
	.edina_tm_about_wrap .leftbox{display: none;}
	.edina_tm_about_wrap .rightbox{width: 100%;padding: 0px;}
	.edina_tm_about_wrap .rightbox .name_holder{text-align: center;}
	.edina_tm_about_wrap .definition{text-align: center;}
	.edina_tm_about_wrap .sharebox{text-align: center;}
	.edina_tm_list_wrap[data-column="3"] ul.total > li{width: 50%;}
	.edina_tm_list_wrap[data-column="4"] ul.total > li{width: 50%;}
	.edina_tm_list_wrap[data-column="5"] ul.total > li{width: 50%;}
	.edina_tm_portfolio_filter li{margin: 0px 15px 0px 0px;}
	.edina_tm_portfolio_list > li{width: 50%;}
	.edina_tm_contact_wrap .short_contact ul li{width: 100%;margin-bottom: 20px;}
	.edina_tm_main_title_holder_wrap .number_wrap{width: 130px;height: 70px;line-height: 70px;}
	.edina_tm_main_title_holder_wrap .number_wrap span{font-size: 36px;}
	.edina_tm_main_title_holder_wrap .title_wrap span{font-size: 36px;}
	.edina_tm_main_title_holder_wrap{padding-bottom: 75px;}
	.edina_tm_universal_box_wrap .content.partners{padding: 60px 0px;}
	.edina_tm_hero_header .hero_title .first{font-size: 33px;}
	.edina_tm_universal_box_wrap .hero_title.homepage_third h3{font-size: 33px;}
	.edina_tm_universal_box_wrap .hero_title.homepage_third span{font-size: 15px;}
	.edina_tm_animation_text_word{font-size: 17px;}
	.edina_tm_main_demos_list_wrap ul li{width: 50%;}
	.edina_tm_about_wrap.homepage_second .rightbox{padding-left: 0px;}
}
@media (max-width: 480px) {
	.edina_tm_navigation_wrap{padding: 20px 0px;}
	.edina_tm_top_bar_wrap ul li{margin: 0px;}
	.edina_tm_list_wrap[data-column="2"] ul.total > li{width: 100%;}
	.edina_tm_list_wrap[data-column="3"] ul.total > li{width: 100%;}
	.edina_tm_list_wrap[data-column="4"] ul.total > li{width: 100%;}
	.edina_tm_list_wrap[data-column="5"] ul.total > li{width: 100%;}
	.edina_tm_portfolio_list{margin-left: 0px;}
	.edina_tm_portfolio_list > li{width: 100%;padding-left: 0px;}
	.edina_tm_to_top_wrap{right: 0px;}
	.edina_tm_discover_wrap{right: 0px;}
	.edina_tm_news_wrap .date_wrap p{font-size: 13px;}
	.edina_tm_news_wrap .date_wrap p a{font-size: 13px;}
	.edina_tm_news_wrap .title_holder h3 a{font-size: 20px;}
	.edina_tm_main_title_holder_wrap .number_wrap{width: 115px;height: 60px;line-height: 60px;}
	.edina_tm_main_title_holder_wrap .number_wrap span{font-size: 32px;}
	.edina_tm_main_title_holder_wrap .title_wrap span{font-size: 32px;}
	.edina_tm_main_title_holder_wrap{padding-bottom: 65px;}
	.edina_tm_universal_box_wrap .content.partners{padding: 50px 0px;}
	.edina_tm_hero_header .hero_title .first{font-size: 23px;}
	.edina_tm_universal_box_wrap .hero_title.homepage_third h3{font-size: 20px;}
	.edina_tm_universal_box_wrap .hero_title.homepage_third span{font-size: 12px;}
	.edina_tm_animation_text_word{font-size: 15px;}
	.edina_tm_main_demos_list_wrap ul{margin-left: 0px;}
	.edina_tm_main_demos_list_wrap ul li{width: 100%;padding: 0px;}
	.container{padding: 0px 20px !important;}
}










.picontainer {
  width: 100%;
  height: 60vh;
  background: #f3f4f5;
  border-radius: 0px;
  overflow: hidden;
}

.photo-container {
  position: relative;
  top: -90px;
  left: -120px;
  transform: rotate(10deg);
}

.photo-cont-item {
  display: flex;
  width: calc(380px * 6);
}
.photo-cont-item .photo-item {
  width: 320px;
  height: 200px;
  margin-right: 60px;
  margin-bottom: 60px;
  border-radius: 6px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0px 2px 40px rgba(0, 0, 0, 0.15);
}

.animation-1 {
  animation: scroller 40s linear infinite;
  display: flex;
  width: calc(380px * 12);
}

.animation-2 {
  margin-left: 150px;
  animation: scroller 30s linear infinite;
  display: flex;
  width: calc(380px * 12);
}

.animation-3 {
  animation: scroller 50s linear infinite;
  display: flex;
  width: calc(380px * 12);
}

@keyframes scroller {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-380px * 6));
  }
}
.photo-1 {
  background-image: url("../img/so-tv-logo.jpg");
}
.photo-2 {
  background-image: url("../img/origins-logo.jpg");
}
.photo-3 {
  background-image: url("../img/itv-client-logo.jpg");
}
.photo-4 {
  background-image: url("../img/anw-logo.jpg");
}
.photo-5 {
  background-image: url("../img/cattleya-logo.jpg");
}
.photo-6 {
  background-image: url("../img/dandd-logo.jpg");
}
/* Row 2 */
.photo-7 {
  background-image: url("../img/thundersbirds-logo.jpg");
}
.photo-8 {
  background-image: url("../img/nwuk-logo.jpg");
}
.photo-9 {
  background-image: url("../img/universal-logo.jpg");
}
.photo-10 {
  background-image: url("../img/itv-studios-dark.png");
}
.photo-11 {
  background-image: url("../img/bgt-logo.jpg");
}
.photo-12 {
  background-image: url("../img/possessed-logo.jpg");
}
/* Row 3 */
.photo-13 {
  background-image: url("../img/windlight-pictures.jpg");
}
.photo-14 {
  background-image: url("../img/stv-logo.jpg");
}
.photo-15 {
  background-image: url("../img/ff-logo.jpg");
}
.photo-16 {
  background-image: url("../img/tso-logo.jpg");
}
.photo-17 {
  background-image: url("../img/bedrock-logo.jpg");
}
.photo-18 {
  background-image: url("../img/nwg-logo.jpg");
}

/* photo gallery */ 

.photo-20 {
  background-image: url("../img/photography/rh-sb-jonty1.jpg");
}


.responsive-vid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; xz-index: -1; xpointer-events: none; overflow: hidden;  }

.responsive-vid iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%); }

.fade-in-down {
  animation: fade-in-down 2s ease infinite;
}
@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover gallery */

.containerGroup {
  display: flex;
  width: 100%;
  padding: 0 4%;
  box-sizing: border-box;
  height: 85vh;
  margin-bottom: 50px;
}

.box {
  flex: 1;
  overflow: hidden;
  transition: .5s;
  margin: 0 0%;
  box-shadow: 0 20px 30px rgba(0,0,0,0);
  line-height: 0;
}

.box > img {
  width: 150%;
  height: calc(100% - 10vh);
  object-fit: cover; 
  object-position: top;
  transition: .5s;
}

.box:hover { flex: 1 1 50%; }
.box:hover > img {
  width: 100%;
  height: 100%;
}

.pseudover,
.pseudover1,
.pseudover2,
.pseudover3,
.pseudover4 {
  position: relative;
  display: inline-block;   
}

.pseudover:after,
.pseudover1:after,
.pseudover2:after,
.pseudover3:after,
.pseudover4:after {
  content: attr(title);
  color: rgba(255, 255, 255, 0.75);
  padding: 0;
  font-family: helvetica;
  position: absolute;
  top: 0;
  right: 0;
  transition: all .25s ease-in-out;
}

.pseudover:hover:after {
  background-image: url("../img/funinelkcity-parallax1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;    
  color: #fff;
}

.pseudover1:hover:after {
  background-image: url("../img/funinelkcity-parallax1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;    
  color: #fff;
}

.pseudover2:hover:after {
  background-image: url("../img/funinelkcity-parallax1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;    
  color: #fff;
}

.pseudover3:hover:after {
  background-image: url("../img/funinelkcity-parallax1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;    
  color: #fff;
}

.pseudover4:hover:after {
  background-image: url("../img/funinelkcity-parallax1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;    
  color: #fff;
}

.pseudover.v2:after,
.pseudover1.v2:after,
.pseudover2.v2:after,
.pseudover3.v2:after,
.pseudover4.v2:after {
  content: "";
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.pseudover.v2:hover:before,
.pseudover1.v2:hover:before,
.pseudover2.v2:hover:before,
.pseudover3.v2:hover:before,
.pseudover4.v2:hover:before {
  content: attr(title);
  position: absolute;
  margin-top: -.5em;
  top: 50%;
  left: 0;
  width: 100%;
  z-index: 9999999999;    
}

.v-pseudover,
.v-pseudover1,
.v-pseudover2,
.v-pseudover3,
.v-pseudover4 {
  position: relative;
  display: inline-block;   
}

.v-pseudover:after,
.v-pseudover1:after,
.v-pseudover2:after,
.v-pseudover3:after,
.v-pseudover4:after {
  content: attr(title);
  color: rgba(255, 255, 255, 0.75);
  padding: 0;
  font-family: helvetica;
  position: absolute;
  top: 0;
  right: 0;
  transition: all .25s ease-in-out;
}


/* Gallery */

.gallery-title {
    color: #EDEDED;
    position:absolute;
    bottom:0;
    left: auto;
    padding:20px;
    width:90%;
}

.gallery_product {
    width:90%;
    height:360px;
    background-size: cover;
    background-position: center;
}

.gallery_product:before {
    content: "";
    position: absolute;
    width: 100%;
    overflow:hidden;    
    bottom: 0;
    left:0;
    height: 50%;
    background: rgb(17,17,17);
    background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,1) 90%);
    opacity: 1;    
}

.filter-button
{
    font-family: "kanit", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size:16px;
    color:#fff!important;
    background-color: #111111;
    padding:10px 20px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    border:0;
    -webkit-transition: background-color .5s ease-out;
    -moz-transition: background-color .5s ease-out;
    -o-transition: background-color .5s ease-out;
    transition: background-color .5s ease-out;

}
.filter-button:hover
{
    color:#111!important;
    background-color:#fff;
    border: 0;    
    text-decoration: none!important;

}
.filter-button:active
{
    background-color: #fff;
    color: #111;
}

@media only screen and (max-width: 576px) { 
.gallery-title {
    color: #EDEDED;
    position:absolute;
    bottom:0;
    left: auto;
    padding:5px;
    width:90%;
}
.gallery_product {
    width:90%;
    height:260px;
    background-size: cover;
    background-position: center;
}
}




/* Scroll window */

.window {
  width: 100%;
  margin: auto;
  border: 7px solid #fff;
  border-radius: 5px;
  box-shadow: 0px 10px 40px 2px #111111;
  cursor: s-resize;
}
.window img {
  width: 100%;
  object-fit: cover;
  object-position: top;
  height: 300px;
  transition: 10s all ease;
}
.window img:hover {
  object-position: bottom;
}



.custom-cursor {
  position: fixed;
  opacity: 0;
  top: 0;
  left: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  width: 50px;
  margin-left: -25px;
  margin-top: -25px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: white;
  transition-property: transform, scale, opacity;
  transition-duration: 250ms;
  transition-timing-function: ease-in-out;
  scale: 0.3;
  z-index: 99999;
}

.custom-cursor--link {
  scale: 1;
}

.custom-cursor--init {
  opacity: 1;
}



/* Boot nav  */

span.logo {
  position: absolute;
  margin-top: -12px;
}

#nav-icon1 {
    width: 30px;
    height: 30px;
    position: relative;
    margin-top: 10px;
    float: right;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: none;
    z-index: 999;
  }

  #nav-icon1 span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

  #nav-icon1 span:nth-child(1) {
    top: 0px;
  }

  #nav-icon1 span:nth-child(2) {
    top: 10px;
  }

  #nav-icon1 span:nth-child(3) {
    top: 20px;
  }

  #nav-icon1.open span:nth-child(1) {
    top: 10px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  #nav-icon1.open span:nth-child(2) {
    opacity: 0;
    left: -1200px;
    background:orange;
  }

  #nav-icon1.open span:nth-child(3) {
    top: 10px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }

.overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  background-color: rgba(0,0,0,.98);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
  overflow: hidden;
  z-index: 1;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  height: 100%;
}

.overlay-content  {
  position: relative;
  width: 100%; 
  text-align: center; 
}


.overlay a  {
  font-family: 'Kanit', sans-serif;
  font-weight: 400;    
  text-transform: uppercase;
  font-style: italic;    
  font-size:30px;
  font-weight: 800;
  padding: 10px;
  text-decoration: none;
  color: white;
  display: block;
  transition: ease-in-out .2s;
}

.overlay a:hover  {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}















/* ECS Gallery */

.escgallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-gap: 21px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 15px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.card:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: rgb(17,17,17);
  background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,1) 90%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.card:nth-child(2), .card:nth-child(4), .card:nth-child(7), .card:nth-child(9), .card:nth-child(12) {
  grid-row: span 2;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 15px 9px;
  width: 100%;
  font-family: 'Kanit', sans-serif;
  font-size:20px;
  font-weight: 800;
  color:#fff;
  z-index: 1;
  opacity: 0;
  transform: translateY(-12px) rotate(-3deg);
  transition: opacity 0.6s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0, 0, 0, 0.5) 0 12px 24px -12px;
}
.card:hover:after {
  opacity: 1;
}
.card:hover img {
  transform: scale(1.05);
}
.card:hover figcaption {
  opacity: 1;
  transform: translateY(0) rotate(-3deg);
}
