/*
Theme Name: th_theme
Theme URI: https://tigerhsu.com
Author: Tiger Hsu
Author URI: https://tigerhsu.com
Description: A clean theme for Tiger Hsu portfolio
Version: 1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: clean, portfolio
Text Domain: th_theme
*/

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: white;
  margin: 0;
}

#preloader{
	z-index:200;
	position:fixed;
	background-color:white;
}

.hidden {
    visibility: hidden;
}
.transparent {
	opacity:0;
}

.out_right {
	transform: translateX(110%);
}

.fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
}

.halfscreen_panel {
  position: absolute;
  height: 100vh;
  top:0;
  overflow:hidden;
  display:flex;
  align-items: center;
}
.landing_title {
  font-size: 10vw; /* locked by media queries*/
  font-weight:900;
  padding:0 0.3em;
  position:relative;
}
.landing_title p {
    margin:0;
}

.landing_subtitle {
    position: absolute;
    width: 45vw;
    width: calc(50vw - 0.35em);
    /*bottom: -0.1em;*/
    padding-left: 0.05em;
}
.landing_subtitle p {
    font-size: 1.5vw;
    font-weight: 700;
    color: #AAA;
}
@media screen and (max-width: 921px) {
    .landing_subtitle p {
        font-size: 13.8px;
    }
}

@media screen and (min-width: 1100px) {
    .landing_title {
        font-size: 110px;
    }
}
@media screen and (min-width: 1440px) {
    .landing_subtitle p {
        font-size: 21.6px;
    }
}

#landing_top {
	z-index:2;
}

#landing_top .half_left {
  justify-content: flex-end;
}

.half_right .landing_title > p >span:last-child{
    font-family: Montserrat;
}

.half_right {
  left: 50%;
  width: 50%;
}
.half_left {
	right:50%;
	width:50%;
}

.bg_bl {
  background-color: black;
  color:white;
}
.bg_wh {
  background-color: white;
  color:black;
}

#landing_scroll {
    position: absolute;
    bottom: 1rem;
    bottom: calc(100vh - (var(--vh, 1vh) * 100) + 1rem);
    right: 50%;
    opacity: 0;
    transition: opacity 0.5s ;
    -webkit-animation: scroll_arrow_anim 1s cubic-bezier(0.7, 0, 0.3, 1) infinite alternate;
    -moz-animation: scroll_arrow_anim 1s cubic-bezier(0.7, 0, 0.3, 1) infinite alternate;
    animation: scroll_arrow_anim 1s cubic-bezier(0.7, 0, 0.3, 1) infinite alternate;
}
@keyframes scroll_arrow_anim {
  from {transform: translatey(0);}
  to {transform: translatey(-1rem);}
}

.th_square {
  position: relative;
  /* width: 10%; */
  /* border: red solid 2px; */
  /* background-color:yellow; */
  /* min-width: 100px; */
}

.th_square:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

#th_nav .th_square {
  width:100%;
}
#th_nav {
  z-index: 100;
  position:fixed;
  top:50%;
  left:4%;
  /*margin-left:1rem;*/
}

.th_wrap {
    margin-top: -50%;
    margin-top: calc( -52% + 0.5rem);
    min-width: 30px;
    max-width: 80px;
    width: 7.1vw;
    padding:0.5rem;
	position:relative;
}
.th_wrap::before {
	content: "";
	position:absolute;
	background-color: white;
	width:100%;
	height:100%;
    top: 0;
    left: 0;
    border-radius: 15px;
	transition: all .7s ease;
}
#th_nav.opened .th_wrap::before {
	height: calc( 100% + 5rem );
}

.th_el {
  background-color: black;
  position: absolute;
}

.t-h {
  top: 0;
  left: 2.53%;
  height: 29.22%;
  width: 94.94%;
}

.t-v {
  top: 28.22%;
  left: 35.57%;
  height: 29.55%;
  width: 29.18%;
}

.h-v1 {
  /*top: 35.67%;
  left: 2.93%;
  height: 64.33%;
  width: 25.8%;*/
  top: 35.67%;
  left: -61.4%; /* */
  height: 25.8%;
  width: 64.33%;
  transform: rotate(-90deg);
  transform-origin: 100% 0%;
}

.h-v2 {
  /* top: 35.67%; */
  /* left: 71.18%; */
  /* height: 64.33%; */
  /* width: 25.8%; */
  top: 35.67%;
  left:96.97%;
  height: 25.8%;
  width: 64.33%;
  transform: rotate(90deg);
  transform-origin: 0% 0%;
}

.h-h {
  top: 64.39%;
  left: 5%;
  height: 24.06%;
  width: 90%;
}

/* MENU */

.th_nav-content {
  /* display: none; */
  position: absolute;
   /*background-color: #f1f1f1; */
/*   min-width: 100px; */
  z-index: 1;
/*   height:4.5rem; */
/*   overflow:hidden; */
  padding-left: 0.5rem;
}

.th_nav-content a {
  color: black;
  padding: 0 0.2rem;
  font-size: 0.8rem;
/*   line-height: 1rem; */
  text-decoration: none;
  display: block;
  position: absolute;
  transition: all .7s ease;
  opacity: 0;
  top:-1.8rem;
	transform: scaleX(0.7);
    visibility: hidden;
}

#th_nav.opened .th_nav-content {display: block;}

#th_nav.opened .th_nav-content a {
	opacity: 1;
	transform: scaleX(1);
    visibility: visible;
 }
#th_nav.opened .th_nav1 {
  top: 0.4rem;
}
#th_nav.opened .th_nav2 {
  top: 1.8rem;
}
#th_nav.opened .th_nav3 {
  top: 3.2rem;
}
.th_nav-content a:hover {
  font-weight:700;
}
.th_nav_over{
	width: 50px;
    height: 50px;
    position: absolute;
    top: -46px;
}

.social_menu_vert span, .social_menu_vert a{
	padding:0.5rem 1.5rem;
	font-weight:300;
	font-size:0.9rem;
	color: #999;
	text-decoration:none;
}
.social_menu_vert {
	position:fixed;
	top:0;
	right:0%;
	height:100%;
	width:40px;
	opacity:0;
/* 	z-index:-1; */
}
.social_menu_vert .inner {
	position:absolute;
	left:50%;
	top:50%;
	transform:  translateX(-50%) translateY(50%)  rotate(90deg);
}


.container {
	max-width:1200px;
	margin: 0 auto;
}
@media screen and (max-width: 1400px) {
/* 	1200 + 100*2 */
    .container {
        margin-left: 100px;
        margin-right: 30px;
    }
}
@media screen and (max-width: 768px) {
/* 	1200 + 130*2 */
    .container {
        margin:0;
    }
    #th_nav{
        top:1rem;
    }
    .th_wrap{
        margin-top:0;
    }
    .th_nav-content{
/*         padding-left: 0.5rem; */
    }
	.th_nav-content a {
		font-size:1.2rem;
	}
	#th_nav.opened .th_wrap::before {
		height: calc( 100% + 6.4rem );
		width: 6rem;
    	background-color: #EEE;
	}
	#th_nav.opened .th_nav1 {
	  top: 0.4rem;
	}
	#th_nav.opened .th_nav2 {
	  top: 2.2rem;
	}
	#th_nav.opened .th_nav3 {
	  top: 4rem;
	}

}
@media screen and (min-width: 1100px) {
    #th_nav{
        left: calc( (50% - 360px) / 2 - (94px / 2 ));
    }
}

.about {
    margin-right: 30px;
}

.about h1,.portfolio h1 {
	font-weight:900;
	font-size:5rem;
	margin-bottom:0.2em;
	margin-top: 1em;
}

.about_text {
/* 	padding-left:7vw; */
	font-weight:700;
/* 	font-size:2rem; */
	font-size: 2.5rem;
    padding-bottom: 9rem;
}

@media screen and (max-width: 1400px) {
	.about h1,.portfolio h1 {
		font-size:5.7vw;
	}
	.about_text {
    	font-size: 2.3vw;
	}
}
@media screen and (max-width: 768px) {
	.about h1,.portfolio h1 {
		font-size:2.7rem;
		padding-left: 1em;
	}
	.about_text {
		font-size: 1.15rem;
		margin-left:2.7rem;
	}
}



.portfolio {
	margin-top:3rem;
    background: white;
    z-index: 2;
    position: relative;
}

/*gallery*/
nnnnot.pgcsimplygalleryblock-justified-item:first-child {
	display:none!important;
}


.project:first-of-type{
	padding-top:3rem;
}
.project:not(:first-of-type){
    margin-top: 10rem;
}
.project .wp-block-image{
    margin: 0;
}

.project-flex {
display: flex;
/* flex-wrap: wrap; */
/* align-content: stretch; */
/* height: 250px; */
}
.flex-col{
    flex-direction:column;
    flex-wrap: wrap;
}

.item {
/* width: 40%; */
background-color: yellow;
margin:1rem;
}

.project-text{
    margin-bottom: 0.5rem;
}
.project-num {    
    border-right: solid 1px black;
    word-break: normal;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 8rem;
    line-height: 8rem;
    padding-right: 1rem;
    margin-right: 1rem;
}

.project-titles {padding-right:1rem;}
.project-titles h2{
    text-transform: uppercase;
    font-weight:900;
    font-size: 2.5rem;
	line-height: 3.7rem;
    margin:0;
}
.project-titles h3{
    font-weight:800;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.project-desc {
    font-weight:700;
}

@media (max-width: 922px)
{
    .project-desktop{
    display: none;
    }
    .project-num {
        font-size:5rem;
        line-height:5rem;
    }
    .project-titles h2{
        font-size:1.7rem;
    }
  
}

@media (min-width: 922px)
{
    .project-mobile {
    display: none;
  }
}
.project{
	transition: transform 0.5s;
	overflow:hidden;
}

.project-titles { grid-area: titles; }
.project-poster { grid-area: poster; }
.project-number { grid-area: number; }
.project-descr { grid-area: descr; }
.project-gallery { grid-area: gallery; }

.project-container {
  display: grid;
  grid-template-areas:
    'poster number titles'
    'poster number descr'
    'poster gallery gallery';
  grid-template-columns: 35% auto 2fr;
  grid-template-rows: max-content max-content min-content;
  grid-gap: 10px;
/*   background-color: #2196F3; */
/*   padding: 10px; */
/*   margin-top: 10rem; */
	transition: transform 0.5s;
}

/* .project-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px 0;
  font-size: 30px;
} */
.project-poster { padding-right:1rem}
.project-poster > img {
	max-width:100%;
}

.project-number {    
    border-right: solid 1px black;
    word-break: normal;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 9rem;
    line-height: 8rem;
    padding-right: 1rem;
    margin-right: 1rem;
}

.project-descr { font-weight:700;padding-right:1rem;}

@media (max-width: 899px) {
  .project-container {
    grid-template-areas:
      'poster number titles'
      'poster descr descr'
      'poster gallery gallery';
  }
	.project-number {
        font-size:5rem;
        line-height:5rem;
    }
    .project-titles h2{
        font-size:1.7rem;
		line-height: 3rem;
    }
}

@media (max-width: 700px) {
  .project-container {
    grid-template-areas:
      'poster number titles'
      'poster descr descr'
      'gallery gallery gallery';
    grid-template-rows: max-content
      
  }
}

@media (max-width: 622px) {
  .project-container {
    grid-template-areas:
      'number titles'
      'descr descr'
      'gallery gallery';
    grid-template-columns: auto 1fr;
  }

  .project-poster {
    display: none;
  }
	.project-number {padding-left:1rem;}
	.project-descr {padding-left:1rem;}
}


#contact {
	margin-top:7rem;
    flex-wrap: wrap-reverse;
}

.vertical_spread {
	display: flex;
	flex-direction:column;
	justify-content: space-between;
}

.row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.column {
	display: flex;
	flex-direction: column;
	flex: 1;
    align-items: center;
}
.has_single_child_full_height {
    flex-direction: row;
    align-items: stretch;
}

.fill_height_or_more {
	min-height: 100vh;
}

.contact_top{
	width:100%;
	padding-left: 25.5px;
}
.contact_top_text{
	font-size: 34px;
    color: #AAA;
    font-weight: 700;
}

@media (max-width: 1700px) {
	.contact_top_text{
		font-size:2vw;
	}
	.contact_top{
		padding-left: 1.5vw;
	}
}


@media (max-width: 700px) {
	.contact_top_text{
		font-size:4vw;
	}
	.contact_top{
		padding-left: 3vw;
	}
	#contact .column{
		flex-basis:100%;
	}
}

.contact_details {
	padding-right: 40px;
    padding: 30vh 40px 2rem 1rem;
    box-sizing: border-box;
    align-items: start;
    width: 90%;
}

.contact_text {
	width: 100%;
    max-width: 700px;
    font-weight: 900;
}
.round_dot{
    font-family: 'Montserrat';
}

#contact .details {
	font-size: 1.3rem;
    line-height: 1.8em;
    text-align: right;
    width: 95%;
    max-width: 900px;
}
@media (max-width: 800px) {
	#contact .details{
		font-size:1.2rem;
	}
}
#contact .details a {
	position: relative;
	color: #555;
    text-decoration: none;
}
#contact .details a::before{
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	right: 0;
	background-color: #555;
	visibility: hidden;
	transition: all 0.3s ease-in-out 0s;
}

#contact .details a:hover::before {
	visibility: visible;
	width: 100%;
}
.contact_form {
	justify-content: center;
	position:relative;
}
.contact_form::before {
	content: "";
	position:absolute;
	top:0;
	right:0;
	width:100%;
	height:100%;
	background-color:white;
	transition: all 0.8s linear 0s;
}
.contact_form.in_view::before {
	width:0;
}

.wpcf7-form-control-wrap { 
	display: block;
    margin: 2rem 0;
}

.wpcf7 {
    max-width: 700px;
    width: 75%;
}

.wpcf7, .wpcf7 input, .wpcf7 textarea {
	font-size:1.3rem;
	font-weight:300;
}
@media (max-width: 899px) {
	.wpcf7, .wpcf7 input, .wpcf7 textarea {
		font-size:1.1rem;
	}
}
/* .wpcf7 input:not([type=submit]), .wpcf7 select, .wpcf7 textarea { */
.wpcf7 input, .wpcf7 textarea {
	border: none;
	outline: none;
	background: #e0e0df;
	padding:1em;
    padding-top: 1.5em;
	transition: 0.2s ease;
}
.wpcf7 input:not([type=submit]), .wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
}

.wpcf7 input[type=submit] {
	padding: 1em;
}

.wpcf7 textarea{
	height:15em;
}
.wpcf7 input[type=submit], .wpcf7-form-control-wrap > label {
	color: #444;
}


.wpcf7-form-control-wrap > label {
	position: absolute;
    top: 1.25em;
	left: 0;
    padding-left: 1em;
    pointer-events: none;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}


.wpcf7-form-control-wrap .has-value + label, .wpcf7-form-control:focus + label {
	font-size: 60%;
    top: 0.5em;
}

div.wpcf7-response-output {
	margin-left:0;
	margin-right:0;
}

.grecaptcha-badge { visibility: hidden; }