/* ==========================================================================
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;
   --header-size: 70px;
}

.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;
}

.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: currentColor;
            }
            &::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 {
   display: grid;
   grid-template-rows: auto 1fr auto;
   min-height: 100vh;
   main {
      margin-block-start: 0;
      place-content: center;
      >* {
         max-width: 900px;
      }
   }
   .main-footer {
      padding-block-start: var(--wp--custom--main-size);
   }
   section {
      h1 {
         line-height: 1;
      }
      h2 {
         line-height: 1;
      }
   }
}

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

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;
      }
   }
}

body.page {
   h1.wp-block-post-title {
      border: 0;
      clip-path: inset(50%);
      height: 1px;
      margin: -1px;
      margin-right: -1px;
      margin-left: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute;
      width: 1px;
      word-wrap: normal !important;
      +* {
         margin-block-start: 0;
      }
   }
}

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

.main-header {
   position: sticky;
   top: 0;
   z-index: 999;
   height: var(--header-size);
   padding-inline: var(--wp--custom--main-size);
   align-content: center;
   #main-navigation {
      width: 100%;
   }
   .btn-hamburguer-menu {
      position: absolute;
      right: var(--wp--custom--main-size);
      top: 50%;
      transform: translateY(-50%);
      z-index: 999;
   }
}

.site-name {
   font-weight: 700;
   font-family: var(--wp--preset--font-family--exposure);
   text-align: center;
   position: sticky;
   top: 0;
   z-index: 990;
   a {
      text-decoration: none;
   }
   &.site-name-small {
      font-size: 1.25rem;
      p {
         line-height: 1.5;
      }
   }
   &.site-name-big {
      display: none;
      font-size: 5rem;
      pointer-events: none;
      p {
         padding-block: calc(var(--wp--custom--main-size) * 1.5);
         a {
            pointer-events: auto;
         }
      }
   }
}

@media (min-width: 992px) {
   .main-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      pointer-events: none;
      .btn-hamburguer-menu {
         display: none;
      }
      a {
         pointer-events: auto;
      }
   }
   .site-name {
      &.site-name-small {
         padding: calc(var(--wp--custom--main-size) * .9);
         position: absolute;
         font-size: 2rem;
         top: 0;
         left: 50%;
         transform: translateX(-50%);
      }
   }
   body.page {
      .site-name {
         &.site-name-small {
            display: none;
         }
         &.site-name-big {
            display: block;
         }
      }
   }
}

.main-content {
   margin-block-start: calc(var(--wp--custom--main-size) * 2);
}

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

.btn-hamburguer-menu {
   position: relative;
   padding: 0;
   width: 1.875rem;
   height: 1.25rem;
   border: none;
   line-height: 1;
   display: flex;
   justify-content: center;
   align-items: center;
   color: var(--wp--preset--color--primary);
   border-radius: 0;
   span,
   &::after,
   &::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 2px;
      left: 0;
      background-color: currentColor;
      transition: all .15s ease;
   }
   &::before {
      top: 1px;
   }
   &::after {
      bottom: 1px;
   }
   span {
      top: calc(50% - 1px);
   }
}

.wrap-mobile-navigation {
   position: fixed;
   background-color: #FFF;
   top: 0;
   right: 0;
   width: 100%;
   height: 100%;
   z-index: 995;
   transition: transform .5s cubic-bezier(.7, 0, .3, 1);
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: calc(var(--wp--custom--main-size) * 2.5);
   justify-content: space-between;
   padding-inline: var(--wp--custom--main-size);
   padding-block-start: calc(var(--wp--custom--main-size) * 8);
   padding-block-end: calc(var(--wp--custom--main-size) * 4);
   line-height: 1.5;
   transform: translateY(-105%);
   font-size: 1.5rem;
   font-weight: 300;
   a {
      text-decoration: none;
   }
   .contact-info {
      .wp-block-group:last-child {
         margin-block-start: calc(var(--wp--custom--main-size) * 2);
      }
      .download-cv {
         display: none;
      }
   }
   .menu {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
   }
}

body {
   &.show-mobile-menu {
      overflow: hidden;
      padding-right: 0px;
      .wrap-mobile-navigation {
         transform: translateY(0);
      }
      .btn-hamburguer-menu {
         &::before {
            top: calc(50% - 1px);
            transform: rotate(45deg);
         }
         &::after {
            bottom: calc(50% - 1px);
            transform: rotate(-45deg);
         }
         span {
            opacity: 0;
         }
      }
   }
}

#main-navigation {
   line-height: 1;
   display: none;
   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;
            cursor: pointer;
            font-weight: 300;
            &: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 {
      display: block;
      ul {
         gap: calc(var(--wp--custom--main-size) * 3);
         li {
            a {
               &:after {
                  bottom: -2px;
               }
               &:hover {
                  &:after {
                     left: 0;
                     width: 100%;
                  }
               }
            }
            &:nth-child(3) {
               margin-inline-start: auto;
            }
            &.current-menu-item {
               a {
                  text-decoration: none;
                  &:after {
                     left: 0;
                     width: 100%;
                  }
               }
            }
         }
      }
   }
}

@media (min-width: 1200px) {
   #main-navigation {
      display: block;
      ul {
         display: grid;
         grid-gap: var(--wp--custom--main-size);
         grid-template-columns: repeat(9, minmax(0, 1fr));
         li {
            grid-column: span 2;
            &:nth-child(3) {
               margin-inline-start: unset;
               grid-column: 7 / span 2;
            }
            &:nth-child(4) {
               text-align: right;
               grid-column: span 1;
            }
         }
      }
   }
}

.single-artwork #main-navigation ul li#menu-item-11 a:after {
   left: 0;
   width: 100%;
}

.single-curatorial #main-navigation ul li#menu-item-13 a:after {
   left: 0;
   width: 100%;
}

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

.main-footer {
   padding: calc(var(--wp--custom--main-size) * 4) var(--wp--custom--main-size) var(--wp--custom--main-size) var(--wp--custom--main-size);
   display: grid;
   grid-gap: var(--wp--custom--main-size);
   grid-template-columns: repeat(9, minmax(0, 1fr));
   font-weight: 300;
   >* {
      &:nth-child(1) {
         grid-column: span 5;
         align-content: end;
      }
      &:nth-child(2) {
         grid-column: span 4;
      }
   }
}

/* ==========================================================================
BIO
========================================================================== */

.home {
   article {
      img {
         max-width: none;
         width: 100%;
      }
   }
   .main-footer {
      display: none !important;
   }
}

@media (max-width: 991px) {
   .home {
      article {
         img {
            max-width: none;
            width: 100%;
            height: calc(100vh - 6.875rem);
            object-fit: cover;
         }
      }
   }
}

/* ==========================================================================
CURATORIAL
========================================================================== */

.list-post-curatorial {
   display: flex;
   flex-direction: column;
   gap: calc(var(--wp--custom--main-size) * 2);
   min-height: calc(100svh - var(--header-size));
   article {
      font-size: var(--wp--preset--font-size--large);
      position: relative;
      h3,
      p {
         margin: 0;
         font-size: inherit;
         line-height: 1.1;
      }
      h3 {
         margin-block-start: calc(var(--wp--custom--main-size) * .5);
         font-style: italic;
      }
      .meta {
         opacity: .4;
      }
      .texts {
         grid-column: span 5;
         display: block;
         text-decoration: none;
      }
      figure {
         display: none;
         grid-column: span 4;
      }
   }
}

@media (min-width: 768px) {
   .list-post-curatorial {
      display: grid;
      gap: calc(var(--wp--custom--main-size) * 2);
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }
}

@media (min-width: 1200px) {
   .list-post-curatorial {
      display: flex;
      gap: calc(var(--wp--custom--main-size) * 2);
      article {
         display: grid;
         gap: var(--wp--custom--main-size);
         grid-template-columns: repeat(9, minmax(0, 1fr));
         a {
            .wp-post-image {
               display: none;
            }
         }
         .texts {
            grid-column: span 5;
         }
         figure {
            opacity: 0;
            display: block;
            grid-column: span 4;
            position: relative;
            img {
               position: absolute;
               right: 0;
               top: 0;
            }
         }
         &:hover {
            opacity: 1;
         }
      }
   }
}

@media (min-width: 1200px) {
   .list-post-curatorial {
      article {
         .texts {
            &:hover+figure {
               opacity: 1;
            }
         }
         figure {
            transition: opacity .3s;
         }
      }
   }
}

.single-curatorial {
   .main-header {
      .site-name-big {
         opacity: 0;
      }
   }
   article {
      display: flex;
      flex-direction: column;
      gap: var(--wp--custom--main-size);
      .curatorial-header {
         text-align: center;
         font-size: var(--wp--preset--font-size--x-large);
         padding-block: var(--wp--custom--main-size);
         h1 {
            font-size: inherit;
            font-style: italic;
            line-height: .8;
         }
         p {
            margin: 0;
         }
         .date {
            font-size: 1.5rem;
            line-height: 1;
         }
      }
      .post-gallery {
         grid-column: span 4;
         display: flex;
         flex-direction: column;
         gap: var(--wp--custom--main-size);
         img {
            max-width: none;
            width: 100%;
         }
      }
   }
}

@media (min-width: 768px) {
   .single-curatorial {
      article {
         display: grid;
         grid-template-columns: repeat(9, minmax(0, 1fr));
         .curatorial-header {
            grid-column: span 9;
         }
         .texts {
            grid-column: span 5;
         }
         .post-gallery {
            grid-column: span 4;
         }
      }
   }
}

@media (min-width: 1200px) {
   .single-curatorial {
      article {
         .curatorial-header {
            padding-block-end: calc(var(--wp--custom--main-size) * 3);
         }
      }
   }
}

/* ==========================================================================
ARTWORK
========================================================================== */

.page-template-artwork {
   article.page {
      display: flex;
      flex-direction: column;
      gap: var(--wp--custom--main-size);
      .ajax-load-more-wrap,
      .list-post-artwork {
         grid-column: span 5;
      }
      figure {
         display: none;
         height: calc(100svh - var(--header-size) - var(--wp--custom--main-size));
         grid-column: span 4;
         img {
            max-width: unset;
            width: 100%;
            height: 100%;
            position: sticky;
            top: var(--header-size);
            background-color: #CCC;
            object-fit: cover;
         }
      }
   }
}

@media (min-width: 992px) {
   .page-template-artwork {
      article.page {
         display: grid;
         grid-gap: var(--wp--custom--main-size);
         grid-template-columns: repeat(9, minmax(0, 1fr));
         figure {
            display: block;
         }
      }
   }
}

.wrap-alm-filters {
   position: fixed;
   bottom: 0;
   left: 0;
   width: 100%;
   z-index: 99;
   padding: 0 var(--wp--custom--main-size) var(--wp--custom--main-size) var(--wp--custom--main-size);
   display: flex;
   justify-content: center;
}

.alm-filters {
   text-align: center;
   .inner {
      border: 1px solid #17171733;
      border-radius: 1rem;
      line-height: 1;
      display: inline-flex;
      flex-wrap: wrap;
      padding: calc(var(--wp--custom--main-size) * .5) var(--wp--custom--main-size);
      gap: calc(var(--wp--custom--main-size) * .5);
      font-family: var(--wp--preset--font-family--ibm-plex-mono);
   }
   button {
      line-height: 1;
      border: none;
      padding: 0;
      font-size: 0.75rem;
      text-transform: uppercase;
      opacity: .5;
      color: var(--wp--preset--color--primary);
      &.current {
         opacity: 1;
      }
   }
}

.page-id-9 {
   .main-content {
      min-height: calc(100svh - calc(var(--wp--custom--main-size) * 8));
   }
   .main-footer {
      padding-block-end: calc(var(--wp--custom--main-size) * 4);
      .download-cv {
         display: none;
      }
   }
}

@media (min-width: 992px) {
   .wrap-alm-filters {
      display: grid;
      grid-gap: var(--wp--custom--main-size);
      grid-template-columns: repeat(9, minmax(0, 1fr));
      .alm-filters {
         grid-column: span 5;
      }
   }
   .page-id-9 {
      .main-content {
         min-height: unset;
      }
      .main-footer {
         padding-block-end: var(--wp--custom--main-size);
      }
   }
}

.list-post-artwork {
   /* display: flex;
   flex-direction: column; */
   display: grid;
   gap: var(--wp--custom--main-size);
   grid-template-columns: repeat(2, minmax(0, 1fr));
   article {
      font-size: var(--wp--preset--font-size--medium);
      a {
         display: block;
         text-decoration: none;
         padding-block: calc(var(--wp--custom--main-size) * .125);
      }
      h3 {
         margin-block-start: calc(var(--wp--custom--main-size) * .5);
         font-size: inherit;
         display: flex;
         flex-direction: column;
         gap: var(--wp--custom--main-size);
         /* align-items: center;
         justify-content: space-between; */
         span {
            display: none;
            font-size: .7em;
            text-transform: uppercase;
            opacity: 0;
            font-family: var(--wp--preset--font-family--ibm-plex-mono);
         }
      }
   }
}

@media (min-width: 992px) {
   .list-post-artwork {
      display: flex;
      flex-direction: column;
      gap: 0;
      article {
         .wp-post-image {
            display: none;
         }
         h3 {
            margin: 0;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            span {
               display: block;
            }
         }
      }
   }
}

@media (min-width: 1200px) {
   .list-post-artwork {
      article {
         h3 {
            transition: padding .25s ease-out;
            span {
               transition: opacity .25s ease-out;
            }
         }
         a:hover {
            h3 {
               padding-inline-start: var(--wp--custom--main-size);
               span {
                  opacity: 1;
               }
            }
         }
      }
   }
}

.alm-btn-wrap {
   position: fixed !important;
   width: 100% !important;
   height: 100% !important;
   top: 0 !important;
   left: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   align-content: center;
   pointer-events: none;
}

.page-template-artwork .alm-btn-wrap {
   padding-inline-end: 42% !important;
}

.single-artwork {
   .main-header {
      margin-block-end: 0;
      position: fixed;
      top: 0;
      width: 100%;
   }
   .main-content {
      margin-block-start: 0;
   }
   .artwork-header {
      border: 0;
      clip-path: inset(50%);
      height: 1px;
      margin: -1px;
      margin-right: -1px;
      margin-left: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute;
      width: 1px;
      word-wrap: normal !important;
   }
   .site-name-big {
      display: none;
   }
   .owl-artworks {
      width: 100vw;
      .item {
         padding-block-start: calc(var(--header-size) + var(--wp--custom--main-size));
         padding-block-end: calc(var(--wp--custom--main-size) * 3);
         height: 100svh;
         display: flex;
         flex-direction: column;
         justify-content: center;
         gap: var(--wp--custom--main-size);
         figure {
            position: relative;
            min-height: 0;
            text-align: center;
         }
         img {
            width: auto;
            max-height: 100%;
            margin-inline: auto;
         }
         figcaption {
            min-height: 0;
            text-wrap: balance;
            text-align: center;
            margin-inline: auto;
            font-family: var(--wp--preset--font-family--exposure);
            font-weight: 100;
            font-size: var(--wp--preset--font-size--medium);
            padding-inline: var(--wp--custom--main-size);
         }
      }
      &.owl-theme {
         .owl-nav:not(.disabled) {
            margin: 0;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            gap: 0;
            border-radius: 0;
            padding: 0;
            [class*="owl-"] {
               width: 50%;
               height: 100%;
               &:after,
               &:before {
                  display: none;
               }
               &.owl-prev {
                  cursor: url('../images/owl-prev.svg'), pointer;
               }
               &.owl-next {
                  cursor: url('../images/owl-next.svg') 50 0, pointer;
               }
            }
         }
      }
   }
   .post-bottom {
      font-size: var(--wp--preset--font-size--medium);
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: var(--wp--custom--main-size);
      z-index: 999;
      .artworks-navigation {
         display: flex;
         justify-content: space-between;
         font-family: var(--wp--preset--font-family--exposure);
         font-weight: 100;
      }
      a {
         text-decoration: none;
         position: relative;
         &:after {
            transition: all 0.5s;
            content: '';
            position: absolute;
            right: 0;
            bottom: -.15em;
            width: 0;
            height: 1px;
            background-color: currentColor;
         }
         &:hover {
            &:after {
               left: 0;
               width: 100%;
            }
         }
      }
   }
   .main-footer {
      display: none;
   }
}

@media (min-width: 992px) {
   .single-artwork {
      .owl-artworks {
         .item {
            display: grid;
            justify-content: unset;
            grid-template-rows: 1fr auto;
            padding-block-end: 0;
            figcaption {
               max-width: calc(100% - 450px);
               padding-block-end: var(--wp--custom--main-size);
            }
         }
      }
   }
}

/* ==========================================================================
BIO
========================================================================== */

@media (max-width: 767px) {
   .grid-bio {
      display: flex !important;
      flex-direction: column;
   }
}

/* ==========================================================================
VIEW TRANSITION
========================================================================== */

@view-transition {
   navigation: auto
}

@keyframes fade-in {
   from {
      opacity: 1;
   }

   to {
      opacity: 0;
   }
}

@keyframes fade-out {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

::view-transition-old(root) {
   animation: .6s ease-out both fade-in;
}

::view-transition-new(root) {
   animation: .6s .6s ease-in both fade-out;
}