html {
  box-sizing: border-box;
  height: 100%;
  font-family: 'Suisse Intl', sans-serif;
  font-size: 16px;
  /* background-color: #E6E6E6; */
  background-color: #fff;
}

body {
  font-family: 'Suisse Intl', sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 1rem;
  min-height: 100vh;
  box-sizing: border-box;
  
}

/* Fonts */
@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-Regular.woff2') format('woff2'),
      url('fonts/SuisseIntl-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-Light.woff2') format('woff2'),
      url('fonts/SuisseIntl-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
      url('fonts/SuisseIntl-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Base */

button {
  background-color: transparent;
  border: none;
  text-decoration: none;
}

p {
  font-size: 1rem;
}
.entry-content p {
  font-size: 12px;
  max-width: 1200px;
  max-width: 1170px;
  margin: 16px auto;
}
.sub {
  font-size: 12px;
  text-align: right;
  padding: 0px;
}
figure {
  margin: 0;
}
a {
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header{
  display: flex;
  align-items: flex-start;
  width: 100%;
  left: 0;
  top: 0;
  position: fixed;
  padding: 1em;
  z-index: 10;
}
header a.home-link{
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}
header a.home-link:hover{
  opacity: .5;
}
.menu-button{
  display: none;
}
/* Nav */

nav {
  display: grid;
  font-size: 0.75rem;
  width: 100%;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 16px;
  padding: 10px 16px 16px;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #fff;
  z-index: 10;
}
.hide-nav {
  /* transform: translateY(160px); */
  transform: translateY(128px);
  transition: transform 0.3s ease;
}

nav.hide-nav:hover {
  transform: translateY(0px);
}
nav a{
  color: #000;
}
nav ul {
  margin: 0;
  padding: 0;
}
nav a.active-menu-item {
  text-decoration: underline;
}
/* Menu */
.menu-title{
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.primary-menu{
  display: flex;
  flex-direction: column;
  grid-column: span 1;
}
.primary-menu ul li:last-child{
  margin-top: 1rem;
}
.cat-nav {
  grid-column: span 5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 16px;
}
.menu-item {
  display: flex;
  flex-direction: column;
}
.menu-item .active{
  text-decoration: underline;
  opacity: .25;
}
.project-item {
  display: none;
}
.project-item.active {
  display: grid; 
}
.project-wrapper{
  width: 100%;
  font-size: 0.75rem;
}
.project-item {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 16px;
}
.project-info a{
  font-weight: 600;
  color: #000;
}
.project-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.project-title{
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 32px;
}
.project-tags{
  margin-bottom: 10em;
}
.project-excerpt p{
  font-size: 0.75rem;
}
.project-wrapper figure {
  max-height: calc(100vh - 230px);
  height: 100%;
  display: flex;
  justify-content: end;
}

/* SINGLE */

article{
  margin-bottom: 174px;
  margin-bottom: 22px;
  border-bottom: 1px solid #000;
}
.single-portfolio .project-item figure {
  max-height: calc(100vh - 230px);
}
.single-portfolio figure {
  max-height: none;
}
figcaption {
  display: none;
}
.wp-block-gallery{
  gap: 16px !important;
}

#project-home figure img{
  width: auto;
}
.project-item figure img{
  /* width: 100%; */
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position:top right;
}
.single-portfolio .project-item{
  margin-bottom: 16px;
  border-bottom: 1px solid #000;
  padding-bottom: 16px;
}

/* Related */
.related-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 2rem 0;
  border-top: 1px solid #000;
}

.related-project {
  text-align: center;
}

.related-project .related-thumb {
  display: block;
  overflow: hidden;
  height:360px;
  margin-top: 16px;
}

.related-project .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.related-project .related-thumb:hover img {
  transform: scale(1.05);
}

.related-title {
  margin: .5rem 0 0;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.related-title a {
  color: inherit;
  text-decoration: none;
}

.related-title a:hover {
  text-decoration: underline;
}
/* Page */
.entry-title {
  font-size: 0.75rem;
  margin-top: 16px;
}
/* Footer */

footer {
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  padding-top: 100px;
  display: none;
}

.footer-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: transparent;
  align-items: center;
}

footer img {
  height: 100%;
  width: 100%;
}

/* Socials */

.socials {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.socials img {
  height: 25px;
}

.icon {
  position: relative;
  width: auto;
  height: 25px;
}

.hidden {
  display: none;
}

/* Content */

.content {
  padding: 0;
  padding-bottom: 0 20px;
  display: none;
  overflow: hidden;
  background-color: transparent;
  font-size: 20px;
  padding-top: 15px;
}

/* Gallery */

.gallery {
  column-count: 5;
  column-gap: 20px;
  gap: 20px;
  width: 100%;
}

.gallery_items {
  width: auto;
  height: 200px;
  object-fit: contain;
}

.gallery_items > imgs {
  object-fit: contain;
}

/* Newsletter */

#mc_embed_signup {
  max-width: 400px;
  font-family: system-ui, sans-serif;
  padding: 0;
  border-radius: 8px;
  height: calc(100vh - 255px);
  box-sizing: border-box;
  font-size: 12px;
}

#mc_embed_signup label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 12px;
  display: none;
}

#mc_embed_signup input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  font-size: 12px;
  margin-bottom: 1rem;
  transition: border 0.3s;
  box-sizing: border-box;
}

#mc_embed_signup input[type="email"]:focus {
  border-color: #000;
  outline: none;
}

#mc_embed_signup .button {
  display: inline-block;
  width: 100%;
  padding: 0.5rem;
  background: #000;
  color: #fff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

#mc_embed_signup .button:hover {
  background: #333;
}

#mc_embed_signup .response {
  font-size: 16px;
  margin-top: 1rem;
  color: red;
}
/* Page Transition */
article {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

article.loaded {
  /* Stop animation, preserve opacity */
  animation: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

article.fade-out {
  opacity: 0;
}

.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2), .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){
  width: 100% !important;
}
@media screen and (max-width: 1320px) {
  .cat-nav{
    display: none;
  }
  nav {
    transform: translateY(0px);
  }
  .hide-nav{
    transform: translateY(0px);
  }
  .home nav{
    display: flex;
    padding: 10px 16px 16px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
  }
  nav {
    position: relative;
    padding: 1em 0;
    grid-template-columns: 1fr;
  }
  .single-portfolio article {
    margin-bottom: 0;
  }
  header{
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
  }

  /* Home */
  body.home .project-item{
    margin-bottom: 120px;
  }
  .project-tags {
    margin-bottom: 5em;
  }
  /* Mobile Menu */
  .menu-button {
    width: 30px;
    height: 10.5px;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }
  .menu-button span{
    background-color: #000;
    height: 1.5px;
    width: 100%;
    margin-bottom: 3px;
  }
  .menu-button span:last-child{
    margin-bottom: 0;
  }
  body.menu-open span:last-child, body.menu-open span:nth-child(2) {
    display: none;
  }
  /* MENU */
  body.menu-open nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 50px;
    padding: 16px;
    left: 0;
    height: calc(100% - 50px);
    overflow-y: auto;
    padding-bottom: 4em;
    padding-top: 0;
    transform: translateY(0px);
  }
  body.menu-open nav .cat-nav{
    display: flex;
    flex-direction: column;
  }
  /* SINGLE PAGE */
  .project-title{
    margin-top: 32px;
  }
  
}
@media screen and (max-width: 1080px) {
  .project-info{
    margin-top: 40px !important;
  }
  .project-wrapper {
    width: 100%;
    position: relative;
    right: 0;
    font-size: 0.75rem;
    margin-top: 32px;
  }
  
  .project-item{
    grid-template-columns: 1fr;
  }
  .project-title{
    margin-top: 0em;
  }
  .project-item figure img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: top right;
  }
  .related-project .related-thumb{
    height: 200px;
  }
}
@media screen and (max-width: 480px) {
  .related-projects{
    grid-template-columns: 1fr;
  }
  .related-project .related-thumb{
    height: auto;
  }
}

