/*
Theme Name: DATNGUYEN
Text Domain: DATNGUYEN
Version: 1.23
*/

:root {
  --blue: #0f173d;
  --brown: #bf8049;
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #2ea3f2;
  transition: all 0.3s ease;
}
a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 1em;
}

h1,
h2 {
  font-family: "Vollkorn", Times New Roman, serif;
  font-weight: 400;
}
h1 {
  font-family: "Vollkorn", Times New Roman, serif;
  font-size: 31px;
  line-height: 36px;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
h2 {
  font-size: 22px;
}

img.aligncenter {
  display: block;
  margin: auto;
}
img.alignright {
  float: right;
  margin-bottom: 1em;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}
.wp-block-post-content {
  max-width: 840px;
  margin: auto;
}
main {
  position: relative;
  z-index: 1;
}

.inner {
  max-width: 1260px;
  margin: auto;
  padding: 0 30px;
  width: 100%;
  position: relative;
}

.ani,
.link svg,
.link svg path {
  transition: all 0.3s ease;
}

/*menu btn*/
.m-menu {
  width: 27px;
  height: 16px;
  position: relative;
}

.m-menu span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #222;
  opacity: 1;
  left: 0;
  border-radius: 2px;
}

.m-menu span:nth-child(1) {
  top: 0;
}

.m-menu span:nth-child(2) {
  top: 8px;
}

.m-menu span:nth-child(3) {
  top: 16px;
}

.m-menu {
  transform: rotate(0);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  margin-right: 20px;
  z-index: 11;
  position: absolute;
  right: 10px;
  top: 25px;
  display: none;
}

.m-menu span {
  transform: rotate(0);
  transition: 0.25s ease-in-out;
}

.mm-open .m-menu span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.mm-open .m-menu span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mm-open .m-menu span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 11;
  transition: all 0.3s ease;
}
.admin-bar .header {
  top: 32px;
}
.stick .header {
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
}

.header .logo svg {
  width: 38px;
}
.header .logo:hover {
  opacity: 0.8;
}
.header .inner {
  height: 70px;
  display: flex;
  align-items: center;
}
.header nav {
  margin-left: auto;
}

.header nav li {
  display: inline-block;
}
.header nav li a {
  display: block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid #000;
  color: #000;
  padding: 15px 0;
  width: 140px;
  text-align: center;
  text-decoration: none;
}
.header nav li a:hover {
  background: #000;
  color: #fff;
}

.main {
  padding-top: 180px;
}
.hello {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin: 0 0 30px 0;
  display: block;
  font-weight: 700;
  line-height: 12px;
}

.headshot {
  width: 57px;
  margin-right: 8px !important;
  margin-top: 3px;
  float: left;
}

.more-content {
  overflow: hidden;
  transition: all 0.3s ease;
  max-height: 0;
  margin-bottom: 30px;
}


a.wp-element-button {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 20px;
  border: 1px solid #808080;
  min-width: 230px;
  text-align: center;
  color: #000;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
a.wp-element-button:hover {
  background: #000;
  color: #fff;
}
.wp-block-separator {
  margin: 50px 0 0;
  border: none;
  border-bottom: 1px dashed #222;
}

#say-hello a {
  color: inherit;
}

/* NINJA FORMS */
.nf-field-element input, .nf-field-element textarea { padding: 16px;
  background-color: #eee;
  font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
  font-size: 14px;
  border: none !important; }

#nf-field-4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 20px !important;
  border: 1px solid #000 !important;
  border-radius: 0;
  min-width: 230px;
  text-align: center;
  color: #000;
  display:block;
  text-decoration: none;
  cursor: pointer;
}


.nf-form-fields-required {
  display: none;
}
input[type="email"],
input.text,
textarea {  color: #333 !important; }
field-wrap input[type="button"] { opacity: 1; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; border: 1px solid #000 !important; border-radius: 0; color: #000; padding-top: 15px !important; padding-bottom: 15px !important; font-size: 18px !important; display: inline-block; float: right; font-family: inherit; cursor: pointer; position: relative; padding: 0.3em 1em; background: transparent; line-height: 1.7em !important; transition: all 0.2s; }

.field-wrap input[type="button"]:hover { background-color: #000; color: #fff; transition: all 0.2s; }
.nf-response-msg p { font-family: "Vollkorn", Times New Roman, serif; font-size: 22px; line-height: 24px; color: #000; margin: 25px 0 25px; font-style: italic; }
.single .work { padding-top: 100px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); grid-gap: 40px; }
.projects a { display: block; border: 1px solid #333; position: relative; background: #000; }
.projects img { display: block; width: 100%; transition: all 0.3s ease; aspect-ratio: 1/1; object-fit: cover; }
.projects a:hover img { opacity: 0.2; }
.projects a:after {
  content: "";
  display: block;
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cpath fill='%23ffffff' d='M506.134,241.843c-0.006-0.006-0.011-0.013-0.018-0.019l-104.504-104c-7.829-7.791-20.492-7.762-28.285,0.068 c-7.792,7.829-7.762,20.492,0.067,28.284L443.558,236H20c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20h423.557 l-70.162,69.824c-7.829,7.792-7.859,20.455-0.067,28.284c7.793,7.831,20.457,7.858,28.285,0.068l104.504-104 c0.006-0.006,0.011-0.013,0.018-0.019C513.968,262.339,513.943,249.635,506.134,241.843z'/%3E%3C/svg%3E");
  width: 70px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  margin-left: -40px;
  transition: all 0.3s ease;
  transform: translateY(30px);
  opacity: 0;
}

.projects a:hover:after { transform: translateY(0px); opacity: 1; }
.project-content { display: flex; align-items: flex-start; }
.project-content .content { width: 26%; margin-right: 3%; position: sticky; top: 100px; }
.admin-bar .project-content .content { top: 130px; }
.project-content .right { width: 70%; max-width: 800px; margin-left: auto; }
.project-content .right img { }
.project-content .right .width_50 { width: 45%; margin:20px 0; }
.right { }

.projects h3 { position: absolute; top: 30px; left: 20px; transition: all 0.3s ease; color: #fff; font-size: 20px; z-index: 11; opacity: 0; transform: translateY(-30px); }
.projects a:hover h3 { opacity: 1; transform: translateY(0px); }
.are-vertically-aligned-top { align-items: flex-start !important; }
footer { background: #d1d1d1; padding: 80px 0 50px; margin-top: 80px; }
.copyright { font-size: 0.8em; color: #333; margin-top: 7% !important; }
#say-hello { scroll-margin-top: 80px; }

@media (max-width: 1200px) { 
	.projects { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-gap: 30px; } 
}

@media (max-width: 810px) {
	.main { padding-top: 120px; }
	h1 { font-size: 24px; }
	.project-content { display: block; }
	.project-content .content, .project-content .right { width: 100%; margin: 40px 0 0 0; }
	.project-content .content { position: static; top: 0; }
	.right .project_logo { display: none; }
	.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column { flex-basis: 100%!important; }
	.wp-block-columns { flex-wrap: wrap!important; }
}



@media (max-width: 570px) {
	h1 { font-size:23px; line-height:30px; letter-spacing:-0.01em; margin-bottom: 30px; }
	.header nav { position: absolute; left: 0; right: 0; top: 0; top: 100%; padding: 20px 30px 0; background: #fff; opacity: 0; visibility: hidden; transition: all 0.3s ease; transform: translateY(30px); }
	.header nav li { display: block; margin-bottom: 20px; }
	.header nav li a { max-width: 100%; width: 100%; }
	.m-menu { display: block; }
	.mm-open .header nav { opacity: 1; visibility: visible; transform: translateY(0px); box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); }
	.mm-open.stick .header { box-shadow: none; }
}
