/* ==========================================================================
HELPERS CLASSES
========================================================================== */

:root {
   --icon-angle: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
   --bs-gutter-y: 1.5rem;
   --border-color: #dee2e6;
   --fs-mobile-heading: 1.5rem;
   --offset-panel: clamp(3.75rem, 3.1944rem + 2.7778vw, 5.625rem);
}

.mark,
mark {
   padding: unset;
   color: unset;
   background-color: unset;
}

figure {
   margin: unset;
}

b,
strong {
   font-weight: 700;
}

body.no-scroll {
   overflow: hidden;
   padding-inline-end: 0px;
}

.overlay {
   position: fixed;
   width: 100%;
   height: 100%;
   left: 0;
   top: 0;
   display: none;
}

summary {
   list-style: none;
}

summary::-webkit-details-marker {
   display: none;
}

.grecaptcha-badge {
   right: -300px !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
hr {
   margin-block-start: var(--wp--custom--main-size);
   margin-block-end: 0;
   &:first-child {
      margin-block-start: 0;
   }
}

a {
   outline: 0;
   &:hover,
   &:focus,
   &:active {
      outline: 0;
   }
}

.btn-close:focus,
.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn.focus:active,
.btn:active:focus,
.btn:focus {
   outline: 0;
   box-shadow: none;
}

.form-control:focus {
   border-color: none;
   box-shadow: none;
}

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

.map {
   line-height: 1;
   iframe {
      width: 100%;
   }
}

@media (max-width: 1199px) {
   .mobile-scroll::-webkit-scrollbar {
      display: none;
   }
   .mobile-scroll.list-posts.list-post-grid {
      width: 100vw;
      margin-inline: -1.5rem !important;
      padding-inline: 1.5rem;
      display: flex;
      flex-wrap: nowrap;
      gap: var(--wp--custom--main-size);
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar;
      >* {
         flex: 1 0 min(90%, 400px);
      }
   }
}

.loading {
   position: fixed;
   width: 100%;
   height: 100%;
   z-index: 9999;
   left: 0;
   top: 0;
   background-color: rgba(255, 255, 255, .75);
   text-align: center;
   place-content: center;
   display: none;
}

.loader {
   width: 3rem;
   height: 3rem;
   border: 5px solid var(--wp--preset--color--primary);
   border-bottom-color: transparent;
   border-radius: 50%;
   display: inline-block;
   box-sizing: border-box;
   animation: loaderRotation 0.8s linear infinite;
}

@keyframes loaderRotation {
   0% {
      transform: rotate(0deg);
   }
   100% {
      transform: rotate(360deg);
   }
}


/* ==========================================================================
FORMS
========================================================================== */

::placeholder {
   opacity: 0.8;
}

label {
   display: block;
}

select,
input[type='text'],
input[type='url'],
input[type='date'],
input[type='file'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='password'],
input[type='number'],
input[type='file'],
input[type='search'],
textarea {
   display: block;
   width: 100%;
   padding: .531rem .75rem;
   line-height: 1.5;
   background-color: #fff;
   background-clip: padding-box;
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
   border: 1px solid var(--border-color);
   border-radius: var(--wp--custom--border-radius);
   color: var(--wp--preset--color--primary);
   &:focus {
      outline: none;
      box-shadow: none;
   }
   &[readonly] {
      background-color: #e9ecef;
      opacity: 1;
   }
}

textarea {
   height: 120px;
}

select {
   -moz-padding-start: calc(0.75rem - 3px);
   line-height: 1.5;
   background-repeat: no-repeat;
   background-position: right 0.75rem center;
   background-size: 1.25rem auto;
   background-image: var(--icon-angle);
}

button,
input[type='button'],
input[type='submit'] {
   border: none;
   background: transparent;
   text-decoration: none;
   vertical-align: middle;
   cursor: pointer;
   -webkit-user-select: none;
   -moz-user-select: none;
   user-select: none;
}

button {
   color: currentColor;
}

.wp-block-read-more,
.wp-block-post-excerpt__more-link,
.wp-element-button,
.wp-block-button.is-style-outline .wp-element-button,
.wp-block-button__link,
.btn,
button,
.woocommerce .button,
input[type='button'],
input[type='submit'] {
   font-weight: 500;
   text-align: center;
   padding: var(--wp--custom--button-padding-y) var(--wp--custom--button-padding-x);
   border-width: var(--wp--custom--button-border-width);
   border-style: var(--wp--custom--button-border-style);
   border-radius: var(--wp--custom--button-border-radius);
   transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wp-block-read-more,
.wp-block-post-excerpt__more-link,
.btn-custom,
.xoo-wsc-ft-btn,
.xoo-wsc-body a.xoo-wsc-btn,
.woocommerce .button,
input[type='button'],
input[type='submit'] {
   text-decoration: none;
   background-color: var(--wp--preset--color--primary);
   color: #FFF;
   border-color: var(--wp--preset--color--primary);
   &:hover {
      color: #FFF;
      background-color: var(--wp--custom--color-primary-hover);
      border-color: var(--wp--custom--color-primary-hover);
   }
}

.wp-block-button {
   &.is-style-outline {
      .wp-block-button__link {
         &:hover {
            border-color: var(--wp--preset--color--primary);
            background-color: var(--wp--preset--color--primary);
            color: #FFFFFF;
         }
      }
   }
}

.wp-block-button {
   &.is-style-alternative {
      .wp-block-button__link {
         background-color: var(--wp--preset--color--secondary);
         border-color: var(--wp--preset--color--secondary);
         color: #FFF;
         &:hover {
            background-color: var(--wp--custom--color-secondary-hover);
            border-color: var(--wp--custom--color-secondary-hover);
         }
      }
   }
}

.btn-link {
   --bs-btn-color: var(--wp--preset--color--primary);
   --bs-btn-hover-color: var(--wp--custom--color-primary-hover);
   --bs-btn-active-color: var(--wp--custom--color-primary-hover);
   --bs-btn-disabled-color: #6c757d;
   padding: 0;
   border: 0;
   font-size: inherit;
}


.light-form {
   ::placeholder {
      opacity: 0.8;
      color: #FFF;
   }
   a,
   label {
      color: #FFF;
   }
   select,
   input[type='text'],
   input[type='url'],
   input[type='date'],
   input[type='file'],
   input[type='email'],
   input[type='tel'],
   input[type='number'],
   input[type='password'],
   input[type='number'],
   input[type='file'],
   input[type='search'],
   textarea {
      background: none;
      color: #FFF;
      border-color: currentColor;
   }
   select {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
   }
}

.alm-btn-wrap {
   margin: 0;
   padding: 0;
}

/* ==========================================================================
OWL CAROUSEL
========================================================================== */

.owl-carousel {
   --owl-button-size: 2.813rem;
   position: relative;
   &:not(.owl-loaded) {
      display: flex !important;
      opacity: 0;
   }
   .owl-stage {
      display: flex;
      flex-wrap: wrap;
   }
   &.owl-theme {
      .owl-nav:not(.disabled) {
         margin-top: var(--wp--custom--main-size);
         text-align: unset;
         display: flex;
         justify-content: center;
         gap: calc(var(--wp--custom--main-size) * .5);
         button {
            span {
               display: none;
            }
         }
         [class*="owl-"] {
            transition: background-color 0.3s ease-out;
            width: var(--owl-button-size);
            height: var(--owl-button-size);
            overflow: hidden;
            margin: 0;
            position: relative;
            &::after,
            &::before {
               content: '';
               position: absolute;
               top: calc(50% - 1px);
               left: 0;
               width: 100%;
               height: 2px;
               background-color: #FFF;
            }
            &::before {
               transform: rotate(90deg);
            }
            &.owl-prev {
               &::before {
                  display: none;
               }
            }
         }
         [class*="owl-"] {
            margin-block: 0;
         }
         [class*="owl-"].disabled {
            opacity: 0;
            pointer-events: none;
         }
         [class*="owl-"]:hover {
            background-color: transparent;
         }
      }
   }
}

.owl-theme {
   .owl-nav.disabled+.owl-dots {
      margin-top: var(--wp--custom--main-size);
   }
   .owl-dots {
      margin-top: var(--wp--custom--main-size);
      line-height: 1;
      .owl-dot {
         span {
            width: 1rem;
            height: 1rem;
            margin: .25rem;
            background: none;
            border: 1px solid var(--wp--preset--color--primary);
            transition: background .3s ease-out;
         }
         &.active,
         &:hover {
            span {
               background-color: var(--wp--custom--color-primary-hover);
               opacity: 1;
            }
         }
      }
   }
}

@media (min-width: 992px) {
   .is-style-middle-arrows {
      position: relative;
      .owl-carousel {
         .owl-nav {
            mix-blend-mode: exclusion;
            margin-top: 0 !important;
            position: absolute;
            top: calc(50% - 1.563rem);
            left: 0;
            width: 100%;
            pointer-events: none;
            display: flex;
            justify-content: space-between !important;
            padding-inline: var(--wp--custom--main-size);
            button {
               margin: 0;
               pointer-events: auto;
            }
         }
      }
   }
}

/* ==========================================================================
NAVIGATION
========================================================================== */

.navigation {
   .screen-reader-text {
      display: none;
   }
   &.pagination {
      .nav-links {
         width: 100%;
         display: flex;
         justify-content: center;
         gap: calc(var(--wp--custom--main-size) / 1.5);
         font-size: 1.375rem;
         line-height: 1;
      }
      a,
      span {
         border: none;
         transition: opacity 0.3s ease-out;
         text-decoration: none;
      }
      a:hover,
      span.current {
         opacity: 0.5;
      }
   }
}

nav.woocommerce-pagination,
.wp-block-query-pagination {
   padding-top: calc(var(--wp--custom--main-size) * 2);
   margin-block-start: 0;
   line-height: 1;
   .page-numbers {
      list-style: none;
   }
   .page-numbers,
   .wp-block-query-pagination-numbers {
      display: flex;
      justify-content: center;
      gap: calc(var(--wp--custom--main-size) / 1.5);
      font-size: 1.375rem;
      a,
      span {
         border: none;
         color: var(--wp--preset--color--primary);
         transition: opacity 0.3s ease-out;
         text-decoration: none;
      }
      a:hover,
      span.current {
         opacity: 0.5;
      }
   }
   .wp-block-query-pagination-previous-arrow,
   .wp-block-query-pagination-next-arrow {
      margin: 0;
      font-size: 1.375rem;
      line-height: 1;
   }
}

.wp-block-query-pagination>.wp-block-query-pagination-next,
.wp-block-query-pagination>.wp-block-query-pagination-numbers,
.wp-block-query-pagination>.wp-block-query-pagination-previous {
   margin: 0;
}

/* ==========================================================================
404
========================================================================== */

.error404 {
   main {
      place-content: center;
   }
   section {
      h1 {
         line-height: 1;
      }
      h2 {
         line-height: 1;
      }
   }
}

/* ==========================================================================
GENERAL
========================================================================== */

body {
   display: grid;
   grid-template-rows: auto 1fr auto;
   min-height: 100dvh;
}

a:where(:not(.wp-element-button)) {
   transition: color .3s ease-out;
}

table {
   width: 100%;
   max-width: 100%;
   background-color: transparent;
   &:not(:first-child) {
      margin-block-start: var(--wp--custom--main-size);
   }
}

table:not(.variations) td,
table:not(.variations) th {
   padding: .3rem;
}

table:not(.variations) td,
table:not(.variations) th {
   border-top: 1px solid #dee2e6;
}

.container,
.container-xl,
.container-xxl {
   padding-inline: var(--wp--style--root--padding-left);
   max-width: 1320px;
}

.container-fluid {
   padding-inline: var(--wp--style--root--padding-left);
}

.section {
   padding-block: var(--wp--custom--main-size);
   margin-block-start: 0;
}

/* ==========================================================================
GUTENBERG
========================================================================== */

.is-style-d-none {
   display: none !important;
}

.wp-block-details {
   summary {
      border-bottom: 1px solid currentColor;
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
      padding: 0 0 1rem 0;
      line-height: 1.3;
      &:after {
         flex-shrink: 0;
         width: 1.25rem;
         height: 1.25rem;
         margin-inline-start: auto;
         content: "";
         background-repeat: no-repeat;
         background-image: var(--icon-angle);
         transition: transform 0.2s ease-in-out;
      }
   }
   &[open] {
      padding-block-end: var(--wp--custom--main-size);
      summary {
         &:after {
            transform: rotate(-180deg);
         }
      }
   }
   &.has-background {
      border-radius: var(--wp--custom--border-radius);
      summary {
         padding-inline: var(--wp--custom--main-size);
         padding-block-start: 1rem;
      }
      > :where(:not(summary)) {
         margin-inline: var(--wp--custom--main-size);
      }
   }
}

hr,
.wp-block-separator {
   opacity: unset;
   border-top: 1px solid currentColor;
   border-block-end: 0;
}

.has-global-padding>.wp-block-group.alignfull.has-background.is-layout-constrained {
   padding-inline: var(--wp--custom--main-size);
}

.wp-block-social-link {
   transition: opacity 0.3s ease-out;
   &:hover {
      transform: scale(1);
      opacity: 0.8;
   }
}

body {
   &.page-no-top-space {
      main {
         padding-block-start: 0;
      }
   }
   &.page-no-bottom-space {
      main {
         padding-block-end: 0;
      }
   }
}

.pll-switcher {
   list-style: none;
   margin: 0;
   padding: 0;
   text-transform: uppercase;
   display: flex;
   gap: calc(var(--wp--custom--main-size) * .5);
   font-size: 0.875rem;
   li.current-lang {
      pointer-events: none;
   }
   li:not(.current-lang) {
      text-decoration: underline;
   }
   a {
      text-decoration: none;
      &:after {
         content: '.';
      }
   }
}

/* ==========================================================================
HEADER
========================================================================== */

.main-header {
   padding: var(--wp--custom--main-size);
   display: flex;
   align-items: center;
   justify-content: space-between;
   font-size: var(--wp--custom--font-size-site-title);
   font-weight: 500;
   position: sticky;
   top: 0;
   width: 100%;
   z-index: 990;
   letter-spacing: -.03em;
   line-height: 1;
   gap: var(--wp--custom--main-size);
}

@media (min-width: 992px) {
   .main-header {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: var(--wp--custom--main-size);
      .site-name {
         grid-column: span 7;
         text-decoration: none;
         display: inline-block;
         line-height: 1;
         span {
            display: inline-block;
            position: relative;
            cursor: pointer;
            &:after {
               transition: all 0.5s;
               content: '';
               position: absolute;
               right: 0;
               bottom: 0;
               width: 0;
               height: 1px;
               background-color: currentColor;
            }
            &:hover {
               &:after {
                  left: 0;
                  width: 100%;
               }
            }
         }
      }
      nav {
         grid-column: span 5;
      }
      .btn-main-menu {
         display: none;
      }
   }
}

/* ==========================================================================
MENU
========================================================================== */

#main-navigation {
   line-height: 1;
   ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      gap: var(--wp--custom--main-size);
      li {
         a {
            text-decoration: none;
            display: inline-block;
            position: relative;
            text-transform: lowercase;
            cursor: pointer;
            &:after {
               transition: all 0.5s;
               content: '';
               position: absolute;
               right: 0;
               bottom: -.15em;
               width: 0;
               height: 1px;
               background-color: currentColor;
            }
         }
         &.current-menu-item {
            a {
               text-decoration: none;
               &:after {
                  left: 0;
                  width: 100%;
               }
            }
         }
      }
   }
}

@media (min-width: 992px) {
   #main-navigation {
      ul {
         justify-content: space-between;
         li {
            a {
               &:after {
                  bottom: -2px;
               }
               &:hover {
                  &:after {
                     left: 0;
                     width: 100%;
                  }
               }
            }
            &.current-menu-item {
               a {
                  text-decoration: none;
                  &:after {
                     left: 0;
                     width: 100%;
                  }
               }
            }
         }
      }
   }
}

.single-post #main-navigation ul li.item-general-practices a:after {
   left: 0;
   width: 100%;
}
.single-project #main-navigation ul li.item-projects a:after {
   left: 0;
   width: 100%;
}

/* ==========================================================================
FOOTER
========================================================================== */

.main-footer {
   background-color: #FFF;
   padding: var(--wp--custom--main-size);
   display: flex;
   flex-wrap: wrap;
   align-items: flex-end;
   gap: var(--wp--custom--main-size);
   justify-content: space-between;
   z-index: 99;
   position: relative;
   padding-block-start: calc(var(--wp--custom--main-size) * 4);
   a {
      text-decoration: none;
   }
   p {
      margin: 0;
   }
   .img-fpue {
      display: flex;
      gap: 0.75rem;
      img {
         max-width: 100px;
      }
   }
   .legal-menu-footer {
      width: 100%;
   }
   ul.menu {
      list-style: none;
      padding: 0;
      margin: 0;
      font-weight: 300;
      font-size: 0.75rem;
      display: flex;
      gap: var(--wp--custom--main-size);
      font-family: monospace;
      a {
         text-decoration: underline;
         &:hover {
            text-decoration: none;
         }
      }
   }
   @media (min-width: 992px) {
      .img-fpue {
         img {
            max-width: 100%;
         }
      }
      .pll-switcher {
         order: 1;
      }
      .legal-menu-footer {
         width: auto;
      }
   }
   @media (min-width: 1200px) {
      justify-content: flex-start;
      gap: calc(var(--wp--custom--main-size) * 5);
      .pll-switcher {
         margin-inline-start: auto;
      }
   }
}

/* ==========================================================================
CUSTOM
========================================================================== */

h1.wp-block-post-title-main {
   margin-bottom: calc(var(--wp--custom--main-size) * 2);
   text-transform: lowercase;
}

#open-info {
   position: relative;
   display: inline-flex;
   align-items: center;
   gap: 0.375rem;
   span {
      display: block;
      width: .7em;
      height: .7em;
      position: relative;
      &::before,
      &::after {
         content: '';
         position: absolute;
         top: 50%;
         left: 0;
         width: 100%;
         height: 1px;
         background-color: currentColor;
      }
      &::before {
         transform: rotate(90deg);
      }
   }
}

/* ==========================================================================
PANEL STUDIO
========================================================================== */

@media (max-width: 991px) {
   .grid-info-about {
      display: block !important;
   }
}

.item-info-grid {
   transition: .35s ease-out;
   a {
      transition: .35s ease-out;
      text-decoration: none;
   }
   &:hover {
      color: #989696;
      a {
         text-decoration: underline;
         color: #989696;
      }
   }
}

@media (min-width: 992px) {
   .item-info-grid {
      margin: 0;
      display: flex;
      p:nth-child(1) {
         width: 70px;
      }
      p:nth-child(2) {
         width: 330px;
      }
      p:nth-child(3) {
         padding-inline-start: var(--wp--custom--main-size);
      }
   }
}

@media (min-width: 992px) {
   .info-contact {
      padding-inline-start: calc(var(--wp--custom--main-size) * 2);
   }
   .colum-description-1 {
      >* {
         padding-inline-end: calc(var(--wp--custom--main-size) * 2);
      }
   }
}

/* ==========================================================================
PANELS
========================================================================== */

.panel {
   box-shadow: 0px -8px 8px 0px #0000000D;
   background-color: #FFF;
   content: '';
   position: fixed;
   left: 0;
   width: 100%;
   padding: 0;
   transition: transform .5s cubic-bezier(.7, 0, .3, 1);
   transform: translateY(105%);
   bottom: 0;
   overflow-y: auto;
   h1 {
      position: sticky;
      top: 0;
      margin-block-end: calc(var(--wp--custom--main-size) * 5);
   }
   .inner {
      padding: var(--wp--custom--main-size);
      &.inner-big-space {
         padding-block: calc(var(--wp--custom--main-size) * 2);
      }
   }
   .panel-header {
      display: flex;
      justify-content: space-between;
      font-size: var(--wp--custom--font-size-site-title);
      line-height: 1;
      position: sticky;
      top: 0;
      width: 100%;
      left: 0;
      padding: var(--wp--custom--main-size);
      z-index: 15;
      h3,
      h2 {
         font-size: inherit;
         line-height: 1;
         &:not(#project-title) {
            text-transform: lowercase;
         }
      }
      p {
         margin: 0;
      }
   }
}

@media (min-width: 992px) {
   .panel {
      display: grid;
      grid-template-rows: auto 1fr auto;
      .inner {
         &.inner-big-space {
            padding-block: calc(var(--wp--custom--main-size) * 5);
         }
      }
   }
}

.overlay-level-1 {
   z-index: 990;
}

.panel-level-1 {
   z-index: 991;
   height: calc(100dvh - calc(var(--offset-panel) * .5));
}

.overlay-level-2 {
   z-index: 992;
}

.panel-level-2 {
   z-index: 993;
   height: calc(100dvh - var(--offset-panel));
}

body {
   &.show-panel-about {
      overflow: hidden;
      padding-inline-end: 0px;
      .main-header {
         .site-name {
            span {
               &:after {
                  width: 100%;
               }
            }
         }
      }
      #main-navigation {
         ul {
            li {
               &.current-menu-item {
                  a {
                     &:after {
                        width: 0;
                     }
                  }
               }
            }
         }
      }
      #panel-studio {
         transform: translateY(0);
      }
      .overlay {
         &:hover {
            +#panel-studio {
               transform: translateY(calc(var(--offset-panel) * .5));
            }
         }
      }
   }
}

body {
   &.show-panel-archive {
      overflow: hidden;
      padding-inline-end: 0px;
      #main-navigation {
         ul {
            li {
               &.open-archive {
                  a {
                     &:after {
                        width: 100% !important;
                     }
                  }
               }
               &.current-menu-item {
                  a {
                     &:after {
                        width: 0;
                     }
                  }
               }
            }
         }
      }
      #panel-archive {
         transform: translateY(0);
      }
      .overlay {
         &:hover {
            +#panel-archive {
               transform: translateY(calc(var(--offset-panel) * .5));
            }
         }
      }
      .overlay-project {
         z-index: 994;
      }
      #panel-project {
         z-index: 995;
         height: calc(100dvh - var(--offset-panel));
         #project-img {
            img {
               height: calc(100dvh - var(--offset-panel));
               pointer-events: none;
            }
         }
      }
      .overlay-project-info {
         z-index: 996;
      }
      #panel-project-info {
         z-index: 997;
         height: calc(100dvh - calc(var(--offset-panel) * 1.5));
      }
   }
}

body.show-panel-project {
   overflow: hidden;
   padding-inline-end: 0px;
   #panel-project {
      transform: translateY(0);
   }
   .overlay {
      &:hover {
         +#panel-project {
            transform: translateY(calc(var(--offset-panel) * .5));
         }
      }
   }
}

body.show-panel-project-info {
   overflow: hidden;
   padding-inline-end: 0px;
   #panel-project-info {
      transform: translateY(0);
   }
   .overlay {
      &:hover {
         +#panel-project-info {
            transform: translateY(calc(var(--offset-panel) * .5));
         }
      }
   }
}

/* ==========================================================================
PROJECT
========================================================================== */

#panel-project {
   padding: unset;
   overflow: unset;
   .panel-header {
      position: absolute;
      top: 0;
      left: 0;
      #project-year {
         display: none;
      }
   }
   .inner {
      padding: 0;
      position: absolute;
      width: 100%;
      height: 100%;
      overflow-y: auto;
   }
   #project-img {
      margin-block-start: 0;
      img {
         width: 100%;
         max-width: none;
         height: calc(100dvh - calc(var(--offset-panel) * .5));
         object-fit: cover;
      }
   }
   #project-content {
      padding-block: calc(var(--wp--custom--main-size) * 2);
      background-color: #FFF;
      position: relative;
      z-index: 10;
   }
   .project-header {
      position: sticky;
      top: 0;
      #project-subtitle {
         position: absolute;
         bottom: 0;
         left: 0;
         font-size: var(--wp--custom--font-size-site-title);
         padding: var(--wp--custom--main-size);
         line-height: 1;
      }
   }
}

#panel-project-info {
   h3 {
      font-size: inherit;
      line-height: 1;
      text-transform: lowercase;
      font-size: var(--wp--custom--font-size-site-title);
   }
   #project-details {
      display: grid;
      grid-gap: var(--wp--custom--main-size);
      grid-template-columns: minmax(0, 1fr);
   }
}

@media (min-width: 992px) {
   #panel-project-info {
      #project-details {
         grid-template-columns: repeat(12, minmax(0, 1fr));
         >div:nth-child(1) {
            grid-column: span 4;
         }
         >div:nth-child(2) {
            grid-column: 6 / span 3;
         }
         >div:nth-child(3) {
            grid-column: 9 / span 3;
         }
      }
   }
   #panel-project {
      #project-content {
         padding-block: calc(var(--wp--custom--main-size) * 5);
      }
      .project-header {
         #project-subtitle {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
         }
      }
   }
}

@media (min-width: 992px) {
   #panel-project {
      .panel-header {
         #project-year {
            display: block;
         }
      }
   }
}

/* ==========================================================================
GRID SINGLE IMAGES
========================================================================== */

.row-grid-images-home,
.is-layout-constrained> :where(.wp-block-group.row-grid-images) {
   --bs-gutter-x: var(--wp--custom--main-size);
   --bs-gutter-y: var(--wp--custom--main-size);
   display: flex;
   flex-wrap: wrap;
   margin-right: calc(-0.25 * var(--bs-gutter-x)) !important;
   margin-left: calc(-0.25 * var(--bs-gutter-x)) !important;
   max-width: 1200px;
   gap: calc(var(--wp--custom--main-size) * 3) 0;
   >* {
      margin-block-start: unset;
      box-sizing: border-box;
      flex-shrink: 0;
      width: 100%;
      max-width: 100%;
      padding-right: calc(var(--bs-gutter-x) * .25);
      padding-left: calc(var(--bs-gutter-x) * .25);
   }
   figure {
      img {
         max-width: none;
         width: 100%;
      }
   }
   .img-col-1 {
      flex: 0 0 auto;
      width: 8.33333333%;
   }
   .img-col-2 {
      flex: 0 0 auto;
      width: 16.66666667%;
   }
   .img-col-3 {
      flex: 0 0 auto;
      width: 25%;
   }
   .img-col-4 {
      flex: 0 0 auto;
      width: 33.33333333%;
   }
   .img-col-5 {
      flex: 0 0 auto;
      width: 41.66666667%;
   }

   .img-col-6 {
      flex: 0 0 auto;
      width: 50%;
   }
   .img-col-7 {
      flex: 0 0 auto;
      width: 58.33333333%;
   }
   .img-col-8 {
      flex: 0 0 auto;
      width: 66.66666667%;
   }
   .img-col-9 {
      flex: 0 0 auto;
      width: 75%;
   }
   .img-col-10 {
      flex: 0 0 auto;
      width: 83.33333333%;
   }
   .img-col-11 {
      flex: 0 0 auto;
      width: 91.66666667%;
   }
   .img-col-12 {
      flex: 0 0 auto;
      width: 100%;
   }
   .img-offset-1 {
      margin-left: 8.33333333%;
   }
   .img-offset-2 {
      margin-left: 16.66666667%;
   }
   .img-offset-3 {
      margin-left: 25%;
   }
   .img-offset-4 {
      margin-left: 33.33333333%;
   }
   .img-offset-5 {
      margin-left: 41.66666667%;
   }
   .img-offset-6 {
      margin-left: 50%;
   }
   .img-offset-7 {
      margin-left: 58.33333333%;
   }
   .img-offset-8 {
      margin-left: 66.66666667%;
   }
   .img-offset-9 {
      margin-left: 75%;
   }
   .img-offset-10 {
      margin-left: 83.33333333%;
   }
   .img-offset-11 {
      margin-left: 91.66666667%;
   }
   .img-align-middle {
      align-content: center;
   }
   .img-align-bottom {
      align-content: end;
   }
}

@media (min-width: 992px) {
   .is-layout-constrained> :where(.wp-block-group.row-grid-images) {
      margin: 0 auto !important;
      gap: calc(var(--wp--custom--main-size) * 5) 0;
      >* {
         margin-block-start: unset;
         box-sizing: border-box;
         flex-shrink: 0;
         width: 100%;
         max-width: 100%;
         padding-right: var(--wp--custom--main-size);
         padding-left: var(--wp--custom--main-size);
      }
   }
}

@media (min-width: 1200px) {
   .is-layout-constrained> :where(.wp-block-group.row-grid-images) {
      max-width: 80%;
   }
}

/* ==========================================================================
PROJECTS
========================================================================== */

.row-grid-images-home {
   padding-block: var(--wp--custom--main-size);
   max-width: unset;
   align-items: start;
   .img-align-middle {
      align-self: center;
   }
   .img-align-bottom {
      align-self: flex-end;
   }
   article {
      h3 {
         margin-block-start: calc(var(--wp--custom--main-size) * .5);
      }
      .meta {
         display: none;
         p {
            margin: 0;
         }
      }
   }
}

@media (max-width: 767px) {
   .row-grid-images-home {
      padding-inline: calc(var(--wp--custom--main-size) * .25);
      display: grid;
      grid-gap: calc(var(--wp--custom--main-size) * 4);
      >* {
         padding: 0 !important;
         flex: 0 0 auto !important;
         width: 75% !important;
         margin: 0 !important;
         &:nth-child(even) {
            margin-left: 25% !important;
         }
      }
   }
}


@media (min-width: 992px) {
   .row-grid-images-home {
      article {
         flex: 0 0 auto;
         width: 50%;
         cursor: pointer;
         display: grid;
         grid-template-columns: repeat(2, minmax(0, 1fr));
         grid-gap: calc(var(--wp--custom--main-size) * .5);
         figure {
            grid-column: span 2;
         }
         h3 {
            margin-block-start: 0;
         }
         .meta {
            display: block;
            line-height: 1.2;
            p {
               padding-block-end: .25rem;
            }
         }
      }
   }
}

@media (min-width: 992px) {
   .row-grid-images-home {
      article {
         h3,
         .meta {
            opacity: 0;
            transition: opacity .5s ease-out;
         }
         &:hover {
            h3,
            .meta {
               opacity: 1;
            }
         }
      }
   }
}

/* ==========================================================================
LIST PROJECT ARCHIVE
========================================================================== */

#panel-archive {
   .panel-header {
      margin-block-end: calc(var(--wp--custom--main-size) * 2);
      flex-wrap: wrap;
      gap: calc(var(--wp--custom--main-size) * .5);
   }
   .filters {
      display: flex;
      flex-wrap: wrap;
      gap: var(--wp--custom--main-size);
      align-items: flex-start;
      align-content: flex-start;
      button {
         border: 0;
         padding: 0;
         line-height: 1.4;
         font-size: clamp(0.875rem, 0.6898rem + 0.9259vw, 1.5rem);
         text-transform: lowercase;
         text-align: start;
      }
      .option-filter {
         line-height: 0;
         position: relative;
         &.option-filter-status {
            .list-terms {
               left: unset;
               right: 0;
               button {
                  text-align: end;
               }
            }
         }
      }
      .list-terms {
         display: none;
         flex-direction: column;
         position: absolute;
         left: 0;
         top: 100%;
         gap: .25rem;
         padding-block-start: .5rem;
         button {
            font-size: 15px;
            width: 100%;
         }
      }
      .btn-filter {
         position: relative;
         &.active {
            &+.list-terms {
               display: flex;
            }
         }
      }
      .btn-line {
         &:after {
            transition: all 0.5s;
            content: '';
            position: absolute;
            right: 0;
            bottom: .1rem;
            width: 0;
            height: 1px;
            background-color: currentColor;
         }
         &:hover {
            &:after {
               left: 0;
               width: 100%;
            }
         }
      }
      .btn-option:not(.btn-line) {
         &.current {
            text-decoration: underline;
         }
      }
   }
}

.list-projects-archive {
   display: grid;
   gap: var(--wp--custom--main-size);
   grid-template-columns: repeat(2, 130px);
   justify-content: space-between;
   article {
      cursor: pointer;
   }
   .meta {
      p {
         margin: 0;
      }
   }
   .inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-gap: var(--wp--custom--main-size);
   }
   figure {
      img {
         aspect-ratio: 3/4;
         object-fit: contain;
         object-position: 0 50%;
         max-width: none;
         width: 100%;
      }
   }
}

@media (min-width: 600px) {
   .list-projects-archive {
      grid-template-columns: repeat(3, 130px);
   }
}

@media (min-width: 992px) {
   .list-projects-archive {
      grid-template-columns: repeat(4, 180px);
      justify-content: space-between;
   }
}

#panel-project-archive-info {
   .wp-block-image {
      img {
         max-width: none;
         width: 100%;
      }
   }
}

@media (min-width: 992px) {
   #panel-project-archive-info {
      .inner {
         display: grid;
         grid-template-columns: repeat(12, minmax(0, 1fr));
         grid-gap: var(--wp--custom--main-size);
         #project-archive-details-1 {
            grid-column: span 4;
            padding-inline-end: calc(var(--wp--custom--main-size) * 2);
         }
         #project-archive-details-2 {
            grid-column: span 3;
         }
         #project-archive-content {
            grid-column: span 5;
         }
      }
   }
}

.alm-listing::after {
   display: none !important;
}

/* ==========================================================================
SINGLE
========================================================================== */

.single {
   .overlay-level-1 {
      display: block;
   }
}

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

/* ==========================================================================
RESPONSIVE
========================================================================== */

@media (max-width: 767px) {
   .panel .inner,
   #project-content,
   .panel .panel-header,
   .main-header,
   .main-footer {
      padding-inline: calc(var(--wp--custom--main-size) * .5);
   }
   article.has-global-padding {
      --wp--style--root--padding-left: calc(var(--wp--custom--main-size) * .5);
      --wp--style--root--padding-right: calc(var(--wp--custom--main-size) * .5);
   }
}