.cross--workMenu {
  display: block;
}

.cross--workMenu-mobile {
  display: none;
}

.off--desktop {
  display: none;
}

.projPrevNext_pad {
  height: 82px;
}

@media (max-width: 1180px) {
  .sel-project div {
    flex-direction: column;
    margin-top: 5px;
  }

  .selected-info {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }

  .disclaimer p {
    margin-top: 34px;
  }

  .contacts-fixed-info dt,
  .other-contacts dt {
    grid-column: 5 / span 2;
  }

  .contacts-fixed-info dd,
  .other-contacts dd {
    grid-column: 7 / -1;
  }

  .sub-menu-wrapper {
    flex-direction: row;
  }

  .atelier-text {
    width: 70%;
  }

  .atelier-slider-text p {
    max-width: 97%;
  }

  .project-text {
    width: 70%;
  }

  .list-items.inactive-project {
    color: var(--second--type-color) !important;
  }

}

@media (max-width: 48em) {

  body {
    margin: 0;
    padding-top: env(safe-area-inset-top, 20px);
    /* Default to 20px for browsers that do not support env() */
    background-color: #000;
    /* Change to your desired color */
  }

  /* -------------------------------------------- */
  /* GENERAL */
  /* -------------------------------------------- */

  .off--desktop {
    display: inline;
  }

  .title__mobile {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: calc(100vw - (var(--main--margin) * 2));
    height: var(--align--top);
    align-items: flex-end;
    background: var(--main--color);
    margin: 0px var(--main--margin);
    border-bottom: 1px solid;
    padding-bottom: 1rem;
    z-index: 3;
  }

  .hidden {
    visibility: visible;
    opacity: 1;
  }

  .hide_mobile {
    display: none !important;
  }

  .hide_from_mobile {
    display: none !important;
  }

  .hide_desktop {
    display: block;
  }

  .pointer__events {
    pointer-events: none;
  }

  /* -------------------------------------------- */
  /* NAV */
  /* -------------------------------------------- */

  .pl-logo {
    transform-origin: top left;
    transform: scale(1.3);
  }

  .menu-items ul {
    gap: 9px;
  }

  .menu-items ul {
    transition: opacity 0.5s ease-in-out 0.2s, visibility 0.2s ease-in-out;
    visibility: hidden;
  }

  .menu-languages {
    position: relative;
    top: 14rem;
    opacity: 0;
    pointer-events: none;
    gap: 15px;
    transition: opacity 0.3s ease-in;
  }

  #nav.open .menu-languages {
    opacity: 1;
    transition: opacity 0.3s ease-in 0.2s;
    pointer-events: all;
  }

  .language {
    color: var(--second--type-color);
    transition: all 250ms ease-in-out;
    opacity: 1;
    visibility: visible;
  }

  .menu-items {
    left: unset;
    top: 90px;
    right: var(--main--margin);
    z-index: 9;
  }

  #menu-button,
  #menu-button-cross {
    text-align: end;
    font-size: 22px;
    margin-top: unset;
    position: absolute;
    right: 0;
    top: -70px;
  }


  #nav.open #menu-button-cross {
    display: block;
  }

  #nav.open #menu-button-cross {
    display: block;
  }

  .menu-items a {
    margin-left: auto;
  }

  .sub-menu {
    display: flex;
    position: absolute;
    top: 3.7rem;
    font-size: 15px;
    background-color: var(--selected-color);
    height: 41px;
    padding-top: 6px;
    padding-right: none;
    justify-content: flex-start;
    width: 100%;

  }

  .sub-menu {
    top: 3.7rem !important;
  }

  .list-of-projects .sub-menu {
    top: 3.9rem !important;
  }

  .sub-menu-wrapper {
    gap: 1.5rem;
  }

  .project-list ul li:first-child {
    margin-top: 24px;
  }


  nav.open {
    height: 20rem;
    transition: height 0.3s ease-in;
  }

  nav.open .sub-menu {
    background-color: unset;
  }

  nav.open .sub-menu-wrapper {
    pointer-events: none;
    transition: visibility 0.3s ease-in;
    opacity: 0;
  }

  .list-of-projects #nav {
    background-color: var(--list-color);
  }

  .contacts #nav {
    background-color: var(--contacts-color);
  }

  .project .project-cross.open,
  .project .project-cross {
    opacity: 0;
    pointer-events: none;
  }

  .project nav {
    /* position: sticky; */
    position: fixed;
    top: 0;
  }

  .list-of-projects nav {
    position: fixed;
  }

  .project .menu-languages {
    opacity: 0;
    pointer-events: none;
  }

  .project nav.open~main {
    position: fixed;
  }

  .project nav.open~footer {
    display: none;
  }

  /* -------------------------------------------- */
  /* HOME */
  /* -------------------------------------------- */

  .home .project-title {
    display: none;
  }

  .home .slide .column-span-3:last-of-type {
    display: none;
  }

  .home .slidercontainer::before {
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0));
  }

  /* SELECTED */

  .sel-project {
    padding: 0 var(--main--margin);
  }

  .sel-project a>div {
    flex-direction: column;
    margin-top: 10px;
  }

  .selected-projects picture,
  .selected-projects picture.is-portrait,
  .selected-projects picture.is-square {
    width: calc(100vw - var(--main--margin)* 2);
  }

  .selected-projects .selected-info {
    gap: 5px;
    margin-top: 0;
    justify-content: flex-start;
  }

  .selected-projects li:not(nav *) {
    margin-bottom: 50px;
  }

  .selected-projects ul {
    padding-bottom: 12rem;
  }

  .selected-projects main {
    padding-top: 9rem;
}


  /* PROJECTS */

  .close-project {
    position: absolute;
    right: var(--main--margin);
    font-size: 22px;
    top: 16px;
    pointer-events: all;
  }

  .project-list_head {
    display: none !important;
  }

  .list-items.inactive-project {
    color: var(--second--type-color) !important;
  }

  .project-list {
    top: calc(var(--nav--height) + 3.6rem);
  }

  .project-list {
    height: calc(var(--full-height) - 7rem);
  }

  nav.open+main .project-list {
    transform: unset;
  }

  .project-list ul {
    padding-bottom: 12rem;
  }

  .list-of-projects .sub-menu {
    background-color: var(--list-color) !important;
  }

  .project-list .name-cat::before {
    background-color: transparent;
  }


  .list-of-projects .main-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: var(--main--margin);
    grid-column: 1 / -1;
    position: relative;
    padding: 5px 0 2px 0;
    font-size: var(--text-font-size);
    grid-auto-rows: min-content;
  }

  .name-cat {
    grid-column: span 5;
  }

  .project-list .year-cat,
  .project-list .location-cat,
  .project-list .specialities-cat,
  .project-list .status-cat {
    opacity: 1 !important;
  }

  .cat-sub-grid {
    grid-column: 2 / -1;
    position: relative;
    display: flex;
    column-gap: 3px;
    flex-wrap: wrap;
    color: var(--second--type-color);
  }

  .list-of-projects .location-cat {
    width: 75%;
  }

  .list-items {
    border-top: 1px solid;
    padding-top: 5px;
    /* height: 7.8rem !important; */
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }

  .list-of-projects main {
    height: unset;
    padding-bottom: 15rem;
    margin-top: unset;
  }

  .list-of-projects footer dl {
    display: flex !important;
  }

  .list-of-projects footer .main-grid {
    font-size: 15px !important;
    line-height: 16px !important;
  }

  .list-of-projects footer dd {
    margin-left: 0;
  }

  .list-image picture {
    opacity: 1;
    display: none;
  }


  /* -------------------------------------------- */
  /* PROJECT */
  /* -------------------------------------------- */

  .arrows-wrapper {
    display: none !important;
  }

  .project main>* {
    padding: 0 var(--main--margin) 0 var(--main--margin);
  }

  .project main {
    padding: 0 0 12rem 0;
    transition: transform 250ms ease-in;
  }



  .image--2 {
    display: none;
  }

  .hero figure.images-total-2 picture {
    width: unset;
    max-width: 100%;
  }

  .project-page-title {
    position: sticky;
    justify-content: flex-start;
    background-color: var(--project-color);
    display: flex;
    flex-direction: column;
    justify-items: flex-start;
    align-items: flex-start;
    top: 0;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    height: fit-content;
  }

  .hero.block-type-slider {
    margin-top: 2rem;
    height: 72vh;
    width: calc(100vw - var(--main--margin)* 2);
    padding: 0;
  }

  .hero figure {
    padding: 0;
  }

  .hero .images-total-1 img {
    height: unset;
    max-width: 100%;
    margin: unset;
  }

  .hero .images-total-1 img.is-square {
    object-fit: contain;
    width: 100%;
    max-width: unset;
    margin: unset;
    height: unset;
  }

  .hero img.is-portrait {
    object-fit: cover;
    width: calc(100vw - var(--main--margin) * 2);
    align-self: self-start;
  }

  .hero img {
    align-self: self-start;
  }

  .prev-project a {
    color: var(--second--type-color) !important;
  }

  .hero .counter,
  .gallery .counter {
    font-size: 15px !important;
    color: var(--main--type-color) !important;
    width: calc(100vw - var(--main--margin)* 2);
    justify-content: flex-start;
    bottom: unset;
  }

  .project-text {
    padding: 2rem 0 0 0;
    width: calc(100vw - var(--main--margin) * 2);
  }

  .gallery-title {
    margin-top: 95px;
    padding: 5px 0 30px 0;
    font-weight: 535 !important;
    border-top: 1px solid;
    width: calc(100vw - var(--main--margin)* 2);
  }

  .gallery.block-type-slider {
    width: calc(100% + var(--main--margin));
    min-height: unset;
  }

  .adapt-width-false {
    width: calc(100vw - var(--main--margin)) !important;
  }

  .gallery .slide {
    padding: 0;
    padding-right: var(--main--margin);

  }

  .gallery .slidercontainer {
    margin-bottom: 3px;
  }

  .gallery .counter {
    padding: 0;
  }

  .project .fixed-info,
  .custom-info {
    font-size: var(--text-font-size);
    padding: 4rem 0 0 0;
    display: flex;
    flex-direction: column;
  }

  .project .fixed-info dt,
  .custom-info dt {
    grid-column: span 1;
    padding-bottom: 2px;
    margin-top: 1.2rem;
    font-weight: 535;
  }

  .project .fixed-info dt:first-of-type,
  .custom-info dt:first-of-type {
    margin-top: 0;
  }

  .custom-info,
  .fixed-info {
    gap: 0px;
  }

  .custom-info {
    padding: 0;
  }

  .other-links {
    width: 100%;
    padding: 40px 0 0 0;
  }

  .other-links>*:not(:first-child) {
    color: var(--main--type-color) !important;
    line-height: 22px;
  }

  .other-links h2 {
    font-weight: 535;
  }

  .next-prev {
    justify-content: unset;
    padding: 4rem 0 0 0;
    flex-direction: column-reverse;
    width: calc(100vw - var(--main--margin)* 2);
  }

  .next-prev>* {
    color: var(--main--type-color) !important;
    width: 100%;
  }

  .link-next-project h2:first-of-type,
  .prev-link {
    font-weight: 535 !important;
  }

  .prev-project a {
    display: flex !important;
    flex-direction: column;
  }


  /* -------------------------------------------- */
  /* ATELIER */
  /* -------------------------------------------- */


  .atelier-text {
    padding-bottom: 2rem;
    width: 100%;
  }

  .atelier-text+figure {
    padding-bottom: 7rem;
  }

  .atelier picture {
    padding-bottom: 4.5rem;
  }

  .atelier-slider {
    height: 55px;
  }

  .atelier-team,
  .premios {
    padding-bottom: 140px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid;
    padding-top: 5px;
  }

  .atelier-team ul,
  .premios ul {
    columns: 1;
    padding-top: 1.8rem;
  }

  .atelier .premios h3 {
    font-weight: 535 !important;
  }

  .premios {
    padding-bottom: 15rem;
  }

  .inactive-member {
    display: none;
  }

  .atelier-header {
    height: 48px;
  }

  .specialities-drawer {
    flex-direction: column;
  }

  .atelier-slider-text {
    width: 100%;
    padding-bottom: 1.5rem;
  }

  .atelier .block-type-slider {
    height: 40vh !important;
    padding-bottom: 6rem;
    width: calc(100vw - var(--main--margin)* 2);
  }

  .atelier-slider.atelier-close {
    height: 72vh;
  }

  .premios ul li {
    padding-bottom: 1.5rem;
  }

  /* -------------------------------------------- */
  /* CONTACTS */
  /* -------------------------------------------- */

  .contacts-hero {
    /* height: unset; */
    justify-content: flex-start;
    font-size: var(--text-font-size);
  }

  .contacts-fixed-info {
    padding-bottom: unset;
  }

  .contacts dt {
    font-weight: 535;
  }

  .contacts-fixed-info,
  .other-contacts,
  .disclaimer,
  .nvc {
    position: static;
    display: flex;
    flex-direction: column;
  }

  .contacts-fixed-info {
    margin-top: 5rem;
    margin-bottom: 4rem;
  }

  .contacts-fixed-info dt,
  .other-contacts dt {
    margin-top: 1.8rem;
  }

  .address,
  .email {
    margin-bottom: unset;
  }

  .nvc {
    padding-top: 3.5rem;
  }

  .nvc a {
    display: flex;
    flex-direction: column;
    font-weight: 485;
  }

  .nvc a span {
    font-weight: 535;
  }

  .disclaimer p {
    font-size: 14px !important;
    line-height: 19px !important;
  }

  .contacts footer {
    display: flex;
    flex-direction: column;
    align-items: start;
    font-size: var(--info-font-size) !important;
    line-height: 16px !important;
    margin-bottom: 3rem;
  }

  .credits {
    flex-direction: column-reverse;
    display: flex;
  }

  .disclaimer p {
    margin-top: 5rem;
  }

  .nvc {
    font-size: var(--info-font-size);
    line-height: 16px;
  }


  /* FOTTER */

  footer {
    height: 290px;
  }

  .contacts footer {
    height: 100px;
  }

  footer .main-grid {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 16px;
  }

  .adress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  footer dt {
    margin-top: 1.5rem;
  }

  footer .info {
    padding-top: 62px;
    padding-bottom: 1rem;
  }
}