/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

#root, #__next {
  isolation: isolate;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

@font-face {
  font-family: "ABCSocialCondensed";
  src: url("../assets/fonts/ABCSocialCondensed-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "ABCMarist";
  src: url("../assets/fonts/ABCMarist-Book.woff2") format("woff2");
}
/* Font familly */
/* Font Size */
/* Spacing */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.row {
  margin-left: -16px;
}
.row:after {
  display: table;
  clear: both;
  content: "";
}

.content {
  padding-top: var(--header-size);
}

@media (min-width: 768px) {
  .grid {
    gap: 20px;
  }
  .grid-10 {
    grid-template-columns: repeat(10, 1fr);
  }
  .grid-11 {
    grid-template-columns: repeat(11, 1fr);
  }
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .row {
    margin-left: -20px;
  }
}
@media (min-width: 1200px) {
  .grid-13 {
    grid-template-columns: repeat(13, 1fr);
  }
  .row {
    margin-left: -20px;
  }
}
.mr-0 {
  margin-right: 0;
}

.ml-0 {
  margin-left: 0;
}

.mr-1 {
  margin-right: 4px;
}

.ml-1 {
  margin-left: 4px;
}

.mr-2 {
  margin-right: 8px;
}

.ml-2 {
  margin-left: 8px;
}

.mr-3 {
  margin-right: 16px;
}

.ml-3 {
  margin-left: 16px;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mt-5 {
  margin-top: 40px;
}

.mb-5 {
  margin-bottom: 40px;
}

.mt-6 {
  margin-top: 48px;
}

.mb-6 {
  margin-bottom: 48px;
}

.mt-7 {
  margin-top: 56px;
}

.mb-7 {
  margin-bottom: 56px;
}

.mt-8 {
  margin-top: 64px;
}

.mb-8 {
  margin-bottom: 64px;
}

.mt-9 {
  margin-top: 64px;
}

.mb-9 {
  margin-bottom: 64px;
}

.mt-10 {
  margin-top: 96px;
}

.mb-10 {
  margin-bottom: 96px;
}

@media (min-width: 768px) {
  .mt-md-0 {
    margin-top: 0;
  }
  .mb-md-0 {
    margin-bottom: 0;
  }
  .mt-md-1 {
    margin-top: 8px;
  }
  .mb-md-1 {
    margin-bottom: 8px;
  }
  .mt-md-2 {
    margin-top: 16px;
  }
  .mb-md-2 {
    margin-bottom: 16px;
  }
  .mt-md-3 {
    margin-top: 24px;
  }
  .mb-md-3 {
    margin-bottom: 24px;
  }
  .mt-md-4 {
    margin-top: 32px;
  }
  .mb-md-4 {
    margin-bottom: 32px;
  }
  .mt-md-5 {
    margin-top: 40px;
  }
  .mb-md-5 {
    margin-bottom: 40px;
  }
  .mt-md-6 {
    margin-top: 48px;
  }
  .mb-md-6 {
    margin-bottom: 48px;
  }
  .mt-md-7 {
    margin-top: 56px;
  }
  .mb-md-7 {
    margin-bottom: 56px;
  }
  .mt-md-8 {
    margin-top: 64px;
  }
  .mb-md-8 {
    margin-bottom: 64px;
  }
  .mt-md-9 {
    margin-top: 64px;
  }
  .mb-md-9 {
    margin-bottom: 64px;
  }
  .mt-md-10 {
    margin-top: 96px;
  }
  .mb-md-10 {
    margin-bottom: 96px;
  }
}
@media (min-width: 1200px) {
  .mt-lg-0 {
    margin-top: 0;
  }
  .mb-lg-0 {
    margin-bottom: 0;
  }
  .mt-lg-1 {
    margin-top: 8px;
  }
  .mb-lg-1 {
    margin-bottom: 8px;
  }
  .mt-lg-2 {
    margin-top: 16px;
  }
  .mb-lg-2 {
    margin-bottom: 16px;
  }
  .mt-lg-3 {
    margin-top: 24px;
  }
  .mb-lg-3 {
    margin-bottom: 24px;
  }
  .mt-lg-4 {
    margin-top: 32px;
  }
  .mb-lg-4 {
    margin-bottom: 32px;
  }
  .mt-lg-5 {
    margin-top: 40px;
  }
  .mb-lg-5 {
    margin-bottom: 40px;
  }
  .mt-lg-6 {
    margin-top: 48px;
  }
  .mb-lg-6 {
    margin-bottom: 48px;
  }
  .mt-lg-7 {
    margin-top: 56px;
  }
  .mb-lg-7 {
    margin-bottom: 56px;
  }
  .mt-lg-8 {
    margin-top: 64px;
  }
  .mb-lg-8 {
    margin-bottom: 64px;
  }
  .mt-lg-9 {
    margin-top: 64px;
  }
  .mb-lg-9 {
    margin-bottom: 64px;
  }
  .mt-lg-10 {
    margin-top: 96px;
  }
  .mb-lg-10 {
    margin-bottom: 96px;
  }
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3 {
  text-transform: uppercase;
  font-weight: 400;
  font-family: "ABCSocialCondensed", Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  line-height: 1.4rem;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.ft-body {
  text-transform: none;
  font-family: "ABCMarist", serif;
  font-size: 1.1rem;
  line-height: 1.4rem;
  letter-spacing: 0.01em;
}

@media (min-width: 1920px) {
  .ft-body {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }
}
.admin-bar header {
  padding-top: calc(var(--header-padding) + var(--wp-header-height));
}

header {
  --header-padding: 16px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  padding: 18px 0;
  font-family: "ABCSocialCondensed", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header nav,
header nav a {
  pointer-events: none;
}
header nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  opacity: 0;
  background-color: var(--c-grey);
  font-size: 18px;
  line-height: 23px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: opacity 0.3s;

}
header nav li {
  margin: 30px 0;
}
header.visible nav {
  opacity: 1;
  pointer-events: all;
}
header.visible nav a {
  pointer-events: all;
}


h1,
.header-menu {
  position: relative;
  z-index: 1;
}

.header-menu {
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.header-menu:hover {
  opacity: 0.5;
}

@media (min-width: 768px) {
  header nav {
    position: static;
    pointer-events: all;
    opacity: 1;
    background: transparent;
    height: auto;
    font-size: 1.1rem;
    line-height: 1.4rem;
  }
  header nav li {
    margin: 0;
  }

  header nav a {
    pointer-events: auto;
  } 

  header ul {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .header-menu {
    display: none;
  }
}
.tpl-hp {
  position: relative;
}

.gallery-item {
  position: relative;
  height: 0;
  padding-bottom: 71.4975845411%;
  background: var(--c-grey);
  overflow: hidden;
}
.gallery-item picture {
  position: absolute;
  top: 0;
  height: 100%;
  left: 0;
  width: 100%;
  filter: grayscale(1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-item a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  overflow: hidden;
}
.gallery-item a picture {
  transition: filter 0.3s;
}
.gallery-item a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.85;
  background-color: var(--c-white);
}
.gallery-item h2, .gallery-item p {
  position: relative;
}
.gallery-item:hover a {
  opacity: 1;
}
.gallery-item:hover a picture {
  filter: blur(2px);
}

.gallery-item--empty a {
  opacity: 1;
}

@media (min-width: 768px) {
  .tpl-hp__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .tpl-hp__gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-column: 2/13;
    gap: 60px;
  }
}
.tpl-single-project .grid-10 {
  position: relative;
  grid-template-columns: 1fr;
}

.tpl-single-project__content {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr 1fr;
}
.tpl-single-project__content h2 {
  margin-bottom: 12px;
}
.tpl-single-project__content .project-content__block {
  margin-bottom: 24px;
}

.project-gallery__item picture {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.project-gallery__item img {
  object-position: center;
  object-fit: contain;
}

.tpl-single-project__main-image,
.tpl-single-project__gallery,
.project-gallery,
.project-gallery__item {
  margin: auto;
}

.project-content_column-right {
  grid-column: 2/4;
}

.project-gallery__item--double {
  grid-template-columns: 1fr 1fr;
}

.project-gallery-pagination {
  display: none;
}

.project-gallery__item--main {
  display: none;
}

.tpl-single-project__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .tpl-single-project .grid-10 {
    grid-template-columns: repeat(10, 1fr);
  }
  .tpl-single-project.is-hidden .tpl-single-project__main-image,
  .tpl-single-project.is-hidden .tpl-single-project__content,
  .tpl-single-project.is-hidden .tpl-single-project__footer {
    opacity: 0;
  }
  .tpl-single-project__main-image {
    display: none;
  }
  .project-gallery__item--main {
    display: flex;
  }
  .project-content__block {
    position: sticky;
    top: calc(var(--main-padding-t));
  }
  .tpl-single-project__content {
    gap: 20px;
    grid-column: 7/10;
  }
  .tpl-single-project__content .project-content__block {
    margin-bottom: 40px;
  }
  .tpl-single-project__gallery {
    transition: background 0.3s;
    grid-row: 1;
  }
  .tpl-single-project__gallery.is-full {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(241, 241, 241, 0.85);
    display: flex;
    z-index: 2;
  }
  .tpl-single-project__gallery.is-full .project-gallery {
    max-width: 77.8935185185%;
    max-height: calc(100vh - 240px);
  }
  .tpl-single-project__gallery.is-full .project-gallery__item {
    display: flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    max-height: calc(100vh - 240px);
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    opacity: 0;
  }
  .tpl-single-project__gallery.is-full .project-gallery__item picture {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .tpl-single-project__gallery.is-full .project-gallery__item img {
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
  }
  .tpl-single-project__gallery.is-full .project-gallery__item img:hover {
    opacity: 1;
  }
  .tpl-single-project__gallery.is-full .project-gallery__item.is-visible {
    opacity: 1;
  }
  .tpl-single-project__gallery.is-full .project-gallery-pagination {
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    text-align: center;
  }
  .tpl-single-project__main-image img,
  .project-gallery img {
    cursor: pointer;
  }
  .tpl-single-project__gallery,
  .tpl-single-project__main-image {
    grid-column: 2/7;
  }
  .tpl-single-project__footer {
    grid-column: 1/11;
    position: sticky;
    bottom: 32px;
    left: 0;
    right: 0;
  }
  .project-footer__link {
    display: block;
    margin-left: auto;
  }
}
.tpl-archive-project {
  background-color: var(--c-grey);
  min-height: 100vh;
}

.list-project__heading {
  margin-bottom: 6px;
}

.list-project__wrapper {
  row-gap: 0;
}

.list-project__item .item-title,
.list-project__heading {
  grid-template-columns: repeat(3, 1fr);
}

.list-project__item {
  position: relative;
  --project-item-color: var(--c-grey-dark);
  padding: 6px 0;
  color: var(--project-item-color);
}
.list-project__item .item-title {
  color: var(--project-item-color);
  transition: color 0.2s;
}
.list-project__item .item-title:hover {
  opacity: 1;
}
.list-project__item:before, .list-project__item:after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.list-project__item:before {
  top: -1px;
  border-top: 1px solid var(--project-item-color);
}
.list-project__item:after {
  bottom: 0;
  border-bottom: 1px solid var(--project-item-color);
}
.list-project__item.is-active {
  --project-item-color: var(--c-black);
}
.list-project__item.is-active:after, .list-project__item.is-active:before {
  z-index: 1;
}

.list-project__cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.list-project__heading-address,
.list-project__cell--address {
  display: none;
}

.project-filters__item {
  opacity: 1;
  transition: opacity 0.2s, filter 0.2s;
}
.project-filters__item button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.project-filters__item.is-active {
  opacity: 0.4;
}
.project-filters__item:hover {
  opacity: 0.7;
}

.tpl-archive-project__right {
  display: none;
}

@media (min-width: 768px) {
  .tpl-archive-project .container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .tpl-archive-project .container > .grid {
    flex: 1;
  }
  .tpl-archive-project__footer {
    position: sticky;
    top: 60px;
    grid-column: 7;
    background-color: var(--c-grey);
  }
  .list-project {
    grid-column: 2/7;
  }
  .list-project {
    grid-row: 1;
  }
  .list-project.is-focusing .list-project__item:not(.is-focused) {
    --project-item-color: var(--c-grey-dark);
    filter: blur(1px);
  }
  .list-project__item .item-title,
  .list-project__heading {
    grid-template-columns: repeat(4, 1fr);
  }
  .list-project__cell--custom_date {
    width: 30px;
  }
  .list-project__heading-address,
  .list-project__cell--address {
    display: block;
  }
  .list-project__cell--custom_date {
    position: relative;
    width: 50px;
    text-align: right;
    overflow: visible;
  }
  .list-project__cell--custom_date:before, .list-project__cell--custom_date:after {
    content: "";
    position: absolute;
    left: -20px;
    right: 0;
  }
  .list-project__cell--custom_date:before {
    top: -7px;
    border-top: 1px solid var(--project-item-color);
    z-index: 1;
  }
  .list-project__cell--custom_date:after {
    bottom: -6px;
    border-bottom: 1px solid var(--project-item-color);
  }
  .list-project__heading-year {
    width: 50px;
    text-align: right;
  }
  .list-project__item:before, .list-project__item:after {
    width: calc(74.2857142857% + 60px);
  }
  .list-project__item.is-active .list-project__cell--custom_date:before, .list-project__item.is-active .list-project__cell--custom_date:after {
    z-index: 2;
  }
  .tpl-archive-project__right {
    display: block;
    position: sticky;
    top: 60px;
    grid-row: 1;
    height: 600px;
    min-height: 600px;
    display: flex;
    justify-content: center;
    grid-column: 8/12;
    pointer-events: none;
    z-index: 1;
  }
  .tpl-archive-project__picture {
    width: 600px;
    height: 600px;
  }
  .tpl-archive-project__picture img {
    object-fit: contain;
    object-position: center;
    background-color: var(--c-white);
  }
  .tpl-archive-project__picture.unactive {
    opacity: 0;
  }
}
.tpl-about__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 40px;
}

.tpl-about h2, .tpl-about h1, .tpl-about h3, .tpl-about h4, .tpl-about h5, .tpl-about h6 {
  margin-bottom: 8px;
}

.tpl-about__left .tpl-about__columns {
  margin-top: 32px;
}
.tpl-about__left .tpl-about__mentions {
  display: none;
}

.tpl-about__left .tpl-about__certification-images {
  display: none;
}

.tpl-about__mentions {
  margin-top: 32px;
}

.tpl-about__certification-images {
    display: flex;
  }

@media (min-width: 768px) {
  .tpl-about {
    display: flex;
    min-height: 100%;
  }
  .tpl-about .container {
    flex: 1;
  }
  .tpl-about__mentions {
    display: none;
  }
  .tpl-about__certification-images {
    display: none;
  }
  .tpl-about__left {
    position: relative;
    margin-top: 0;
    grid-column: 2/6;
  }
  .tpl-about__left .tpl-about__columns {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 1;
  }
  .tpl-about__left .tpl-about__left-content {
    grid-column: 1/3;
  }
  .tpl-about__left .tpl-about__left-top {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
  }
  .tpl-about__left .tpl-about__mentions {
    margin-top: 64px;
    display: block;
  }
  .tpl-about__left .tpl-about__certification-images {
    display: flex;
  }
  .tpl-about__left-wrapper {
    position: sticky;
    top: calc(var(--main-padding-t));
  }
  .tpl-about__columns {
    display: block;
    grid-column: 3/5;
  }
  .tpl-about__content {
    grid-column: 7/10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 64px;
  }
}
.tpl-default h2 {
  margin-bottom: 8px;
}
.tpl-default .grid {
  gap: 32px;
}
.tpl-default .tpl-default__right .tpl-default__column {
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .tpl-default__main {
    grid-column: 2/4;
  }
  .tpl-default__right {
    grid-column: 5/9;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
  }
}
html {
  font-size: 62.5%;
}

body {
  --c-white: #fff;
  --c-grey: #F5F5F5;
  --c-grey-dark: #D6D6D6;
  --c-black: #000000;
  --vh: 1vh;
  --header-height: 54px;
  --wp-header-height: 48px;
  --main-padding-t: 56px;
  --main-padding-b: 16px;
  font-family: "ABCMarist", serif;
  font-size: 1.1rem;
  line-height: 1.4rem;
  letter-spacing: 0.01em;
  background: var(--c-white);
}

a {
  color: var(--c-black);
  text-decoration: none;
  transition: 0.3s opacity;
}
a:hover {
  opacity: 0.5;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

main {
  position: relative;
  padding-top: var(--main-padding-t);
  padding-bottom: var(--main-padding-b);
}

nav {
  font-family: "ABCSocialCondensed", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.flex-page {
  display: flex;
}

.transition-fade {
  transition: 0.25s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
}

.rte div, .rte p {
  margin-bottom: 16px;
}
.rte div div {
  margin-bottom: 0;
}
.rte p:last-of-type {
  margin-bottom: 0;
}
.rte ul {
  list-style: none;
}
.rte ul, .rte li {
  padding: 0;
  margin: 0;
}
.rte * ~ h1,
.rte * ~ h2,
.rte * ~ h3,
.rte * ~ h4 {
  margin-top: 16px;
}

.tpl-about a,
.tpl-single a,
.tpl-home a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  body {
    --wp-header-height: 32px;
  }
}
@media (min-width: 1200px) {
  body {
    --main-padding-t: 112px;
    --main-padding-b: 32px;
  }
}
@media (min-width: 1920px) {
  body {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }
}
