/*
Theme Name: Nick-Udal-Theme-1
Author: Nick Udal
Author URL: https://www.u-la.com
Version: 1.0
*/

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
	line-height: 1.8em;
	font-weight: lighter;
	background-color: #fff;
	color:#435566;
    margin: 0;
    min-height: 100%;
}

/* FONTS GENERAL/MOBILE */
/* TOP LINE */
h1{
    font-size: 7vw;
    font-weight: lighter;
    line-height: 1.2;
    margin: 0;
}
/* SINGLE PROJECT HEADLINE */
h2{
    font-size: 6vw;
    font-weight: lighter;
    line-height: 1.2;
    margin: 0;
}
/* FRONT PAGE/SINGLE PROJECT SUB-HEADLINE GREY */
h3{
    font-size: 5vw;
    font-weight: lighter;
    line-height: 1.1;
    margin: 0;
    color:#a0adb8;
}
/* ABOUT/CONTACT HEADLINE */
h4{
	font-size: 5.5vw;
    margin: 0;
    line-height: 1.2;
    font-weight: lighter;
}
/* HOVER TEXT IN PROJECT BOX */
h5{
    font-size: 5vw;
    font-weight: lighter;
    line-height: 1.3;
    margin:0;
}
/* ABOUT/CONTACT SMALLER TEXT GREY */
h6{
    font-size: 5vw;
    font-weight: lighter;
    line-height: 1.3;
    margin:30px 10% 0 0;
    color:#a0adb8;
}

a:link {
	text-decoration: none;
    color: #435566;
}
a:visited {
    color: #435566;
}

/* FONTS TABLET */
@media only screen and (min-width:400px) and (max-width:900px) {

}
/* FONTS LAPTOP */
@media only screen and (min-width:900px) {
    h1{
        font-size: 5vw;
    }
    h2{
        font-size: 4vw;
    }
    h3{
        font-size: 3vw;
    }
    h4{
	    font-size: 3.5vw;
    }
    h5{
        font-size: 2.5vw;
    }
    h6{
        font-size: 2.5vw;
    }
}

/* HEADER GENERAL & MOBILE */
.container {
	width: 100%;
	background-color: #fff;
}
.site-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 25px 10px 4%;
}
.site-nav-header {
  display: flex;
  justify-content: flex-end;
}
/* menu bar container */
.site-nav-header ul {
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  font-size: 1.1em;
  font-weight: 500;
  padding: 0;
  margin: 14px 0 0 0;
}

/* menu list items */
.site-nav-header ul li {
  flex: 1 0 20%;
  height: 30px;
  text-align: center;
  margin: 0 2px 0 2px;
}
/* individual menu items for normal & visited */
.site-nav-header ul li a:link,
.site-nav-header ul li a:visited {
  display: block;
  padding: 7px 10px;
}
/* for hover */
.site-nav-header ul li a:hover,
.site-nav-header a:hover {
  color: #F2F2F2;
  background-color: #4D7E83;
}

.logo {
  width: 40%;
}

/* HEADER TABLET */
@media only screen and (min-width:600px) and (max-width:900px) {
  .site-nav-header {
    padding-top: 7px;
  }
  .site-nav-header ul {
    font-size: 1.1em;
    padding: 0 0 0 15px;
    margin: 0;
  }
  .site-nav-header ul li {
    flex: 1 0 25%;
  }
  .site-nav-header ul li a:link,
  .site-nav-header ul li a:visited {
    width: 90px;
  }
  .current-menu-item {
    display: block;
  }
  .logo {
    width: 20%;
    position: relative;
    top: -25px;
  }
}
/* HEADER LAPTOP */
@media only screen and (min-width:900px) {
  .site-nav-header {
    padding-top: 25px;
  }
  .site-nav-header ul {
    font-size: 1.5em;
    padding: 0 15px;
    margin: 0;
  }
  .site-nav-header ul li {
    /* margin: 0 4px 0 4px; */
    flex: 1 0 25%;
  }
  .current-menu-item {
    display: block;
  }

  .logo {
    width: 20%;
    position: relative;
    top: -25px;
  }
}

/* FRONT PAGE GENERAL & MOBILE */
/* Front page sub-headline */
.statement1 {
    margin: 60px 18% 10px 4%;
}
.statement2 {
  margin: 20px 25% 30px 4.2%;
}

/* FRONT PAGE TABLET 2*/
@media only screen and (min-width:400px) and (max-width:900px) {

}

/* FRONT PAGE LAPTOP*/
@media only screen and (min-width:900px) {

}

/* PROJECTS PAGE GENERAL & MOBILE */
/* Projects grid */
/* container is the parent for the grid items  */

.projects, .content-area, .post-page {
  padding: 50px 4% 150px 4%;
}
.project-grid-container {
  display: grid; /* defines grid */
  grid-template-columns: auto; /* fraction of available space - whole screen for mobile */
  grid-template-rows: auto;
  grid-gap: 20px;
}

/* project boxs (contains feature image and text) */
.project-box {
  position: relative; /* moves project box relative to grid item */
  aspect-ratio: 1/1;
}

.project-box img {
  width: 100%;
  height: 100%;
  display: block; /* fills container */
  object-fit: cover; /* maintains aspect ratio (only when full height) */
}



.project-box h5{
  position: absolute; /* sits above box padding */
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: #fff;
  display: none;
  padding: 25px 25px 25px 25px;
}

.project-box p{
  display: none;
  position: absolute; /* sits above box padding */
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 5px 25px 25px 25px;
}
.project-box:hover {
  opacity: 1;
}
.project-box:hover h5{
  display: block;
  background:rgba(0,0,0,0.4); /* to make black overlay */
}

.project-box:hover p{
  display: block;
}

.project-box a:link {
    color: #fff;
}
.project-box a:visited {
    color: #fff;
}

/* PROJECTS PAGE TABLET */
@media only screen and (min-width:600px) and (max-width:900px) {


  .project-grid-container {
    grid-template-columns: auto auto auto; /* 3 columns for grid */
  }
}


/* PROJECTS PAGE LAPTOP */
@media only screen and (min-width:900px) {

  .project-grid-container {
    grid-template-columns: auto auto auto; /* 3 columns for grid */
    grid-template-rows: auto;
    grid-gap: 35px 35px;
  }

}

/* SINGLE PROJECT GENERAL & MOBILE */

.projects-single {
  padding: 50px 4% 150px 4%;
}

.project-title-2 {
    padding: 0 40% 0 3px;
}

.project-page p {
  margin: 8px 9px 18px 7px;
}

.wp-block-image {
  padding: 35px 7px 5px 7px;
}

.wp-block-media-text {
  padding: 35px 7px 12px 7px;
}
.wp-block-media-text>.wp-block-media-text__content {
    padding: 0 5%;
}


.wp-block-columns {
    margin-bottom: 25px;
}

/* SINGLE PROJECT ONLY FOR MOBILE */
@media only screen and (max-width:650px) {
  /* Make gallery form one column in mobile */
  .wp-block-gallery .wp-block-image {
    width:100% !important;
  }

}


/* SINGLE PROJECT TABLET */
@media only screen and (min-width:400px) and (max-width:900px) {
  .project-page p {
    line-height: 1.5;
  }
  .project-title {
    padding-bottom: 35px;
  }

}
/* SINGLE PROJECT LAPTOP */
@media only screen and (min-width:900px) {

  .project-title {
    padding: 25px 0 5px 0;
  }

}




/* ABOUT PAGE GENERAL & MOBILE */
/* about section */
.about {
  padding: 50px 18% 100px 4%;
}

.about-box img {
  width: 100%;
  height: 100%;
  display: block; /* fills container */
  object-fit: cover;
}

.about-image {
  height: 650px;
}


/* ABOUT PAGE TABLET */
@media only screen and (min-width:400px) and (max-width:600px) {

}
/* ABOUT PAGE TABLET 2*/
@media only screen and (min-width:600px) and (max-width:900px) {

}
/* ABOUT PAGE LAPTOP */
@media only screen and (min-width:900px) {


}



/* CONTACT PAGE GENERAL & MOBILE */
/* contact section */
.contact {
    padding: 50px 4% 150px 4%;
}

.contact-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.contact-detail {
  vertical-align: top;
  margin: 10px 0px 10px 0px;
  min-width: 400px;
}



a[href^="tel"] {
  color: inherit; /* Inherit text color of parent element. */
  text-decoration: none; /* Remove underline. */
}

.people {
    object-fit: cover;
    width: 50%;
    height: 100%;
    margin: 50px 80px 10px 0;
}

/* Social media buttons */
.social-media-area {
  width: 42px;
  padding: 4px 0 0 0;
}

.social-media {
    max-height: 100%;
}

.map-image {
    object-fit: cover;
    width: 100%;
    height: auto;
    margin: 50px 0 50px 0;
}


/* CONTACT PAGE TABLET */
@media only screen and (min-width:400px) and (max-width:900px) {

}

/* CONTACT PAGE LAPTOP */
@media only screen and (min-width:900px) {

  .people {
    width: 28%;
}

  

}

/* FOOTER GENERAL & MOBILE */
/* site footer*/
.site-footer {
  display: flex;
	padding: 10px 0 100px 0;
  justify-content: center;
}
/* Site Footer Menu */
.site-nav-footer ul li a:link,
.site-nav-footer ul li a:visited {
    text-decoration: none !important;
}
.site-nav-footer ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0px;
  margin: 0;
  font-size: 1.2em;
}
.site-nav-footer ul li {
  flex: 1 0 25% ;
  height: 30px;
  text-align: center;
  margin: 0 4px 0 4px;
  width: 80px;
}
.site-nav-footer ul li a:link,
.site-nav-footer ul li a:visited {
  display: block;
  padding: 5px 12px;
  
}
/* for hover */
.site-nav-footer ul li a:hover,
.site-nav-footer a:hover {
  color: #F2F2F2;
  background-color: #4D7E83;
}
.credits {
  padding: 8px;
  margin: 0;
}

/* FOOTER TABLET */
@media only screen and (min-width:600px) and (max-width:900px) {
  .site-nav-footer ul {
    font-size: 1.3em;
  }
}
/* FOOTER LAPTOP */
@media only screen and (min-width:900px) {
  .site-nav-footer ul li {
    width: 100px;
  }

  .site-nav-footer ul {
    font-size: 1.5em;
  }
}

.error-message{
	margin-left: 25px;
}
