:root {
  /* Color variables */

  --primary-blue: #0d2457;

  --secondary-blue: #0544a4;

  --white: #ffffff;

  --black: #1f1f21;

  --yellow: #ffff00;

  --border: #dddddd;

  --red: #ab2b30;

  --placeholder: #999999;

  /* Backgrounds */

  --background-light: #f6f6f6;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", serif;

  overflow-x: hidden;

  min-height: 100vh;

  color: var(--black);
}

.skip-link {
  display: none;
}

.section-inner {
  width: 100%;

  margin: 0 auto;

  padding: 0 16px;

  @media screen and (min-width: 768px) {
    max-width: 540px;
  }

  @media screen and (min-width: 768px) {
    max-width: 720px;
  }

  @media screen and (min-width: 992px) {
    max-width: 960px;
  }

  @media screen and (min-width: 1200px) {
    max-width: 1140px;
  }

  @media screen and (min-width: 1400px) {
    max-width: 1320px;
  }
}

.header-inner {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 16px;

  align-items: center;

  @media (min-width: 768px) {
    gap: 24px;
  }
}

.mobile-nav-toggle,
.header-toggles {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }

  .nav-toggle {
    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 6px;

    background-color: var(--white);

    cursor: pointer;
  }
}

.menu-modal {
  position: fixed;

  right: 0;

  top: 0;

  bottom: 0;

  width: 280px;

  background-color: var(--black);

  z-index: 999;

  overflow: hidden;

  transform: translateX(100%);

  transition: transform 300ms ease;
}

.menu-wrapper {
  padding: 0;
}

.close-nav-toggle {
  cursor: pointer;

  width: 100%;

  color: var(--white);

  background-color: transparent;

  display: grid;

  grid-template-columns: 1fr auto;

  align-items: center;

  gap: 20px;

  padding: 20px;

  span {
    font-size: 18px;

    text-decoration: underline;
  }

  svg {
    polygon {
      fill: var(--white);
    }
  }
}

.menu-modal-inner {
  overflow-y: auto;

  height: 100%;
}

.modal-menu {
  padding-top: 16px;

  a {
    display: block;

    padding: 16px 20px;

    color: var(--white);

    text-decoration: none;

    font-size: 20px;

    font-weight: 300;
  }

  .current_page_item {
    background-color: var(--yellow);

    a {
      color: var(--black);
    }
  }
}

.showing-menu-modal {
  .menu-modal {
    transform: translateX(0);
  }
}

#site-footer {
  position: relative;

  padding-top: 32px;

  .divider {
    height: 1px;

    background-color: var(--border);
  }

  .footer--social {
    display: grid;

    justify-content: space-between;

    padding: 20px 0 80px;

    gap: 20px;

    align-items: center;

    justify-content: center;

    @media (min-width: 768px) {
      display: flex;

      justify-content: space-between;

      padding: 32px 0 80px;
    }

    @media (min-width: 1400px) {
      padding: 32px 0;
    }
  }

  .footer-social {
    display: flex;

    gap: 24px;

    justify-content: center;

    a {
      width: 48px;

      height: 48px;

      display: flex;

      align-items: center;

      justify-content: center;

      border: 1px solid var(--black);

      color: var(--black);

      border-radius: 100%;

      transition: all 200ms ease;

      &:hover {
        color: var(--white);

        border-color: var(--secondary-blue);

        background-color: var(--secondary-blue);
      }

      svg {
        width: 16px;

        height: auto;
      }
    }
  }

  .to-the-top {
    position: fixed;

    right: 20px;

    bottom: 20px;

    z-index: 99;

    width: 48px;

    height: 48px;

    border-radius: 100%;

    background-color: var(--secondary-blue);

    color: var(--white);

    display: flex;

    align-items: center;

    justify-content: center;

    transition: background-color 200ms ease;

    &:hover {
      background-color: var(--primary-blue);
    }
  }

  .footer-copyright {
    font-size: 14px;

    line-height: 24px;

    color: var(--black);

    a {
      color: var(--black);

      text-decoration: none;
    }
  }

  .footer-grid {
    display: grid;

    gap: 30px;

    padding-bottom: 30px;

    @media (min-width: 576px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr) 500px;
    }

    .widget-title {
      font-size: 20px;

      line-height: 30px;

      font-weight: 600;

      margin-bottom: 12px;
    }

    .info {
      display: flex;

      flex-flow: column;

      gap: 10px;

      a {
        color: var(--black);

        svg {
          height: 60px;

          width: auto;
        }
      }

      .textwidget div {
        font-size: 16px;

        line-height: 24px;
      }
    }

    .menu {
      list-style-type: none;

      display: flex;

      flex-flow: column;

      gap: 10px;

      a {
        font-size: 14px;

        line-height: 20px;

        padding: 0;

        display: block;

        color: var(--black);

        text-decoration: none;

        .current-menu-item & {
          color: var(--secondary-blue);

          font-weight: 500;
        }
      }
    }

    .newsletter-wrap {
      @media (min-width: 576px) {
        grid-column: span 2;
      }

      @media (min-width: 992px) {
        grid-column: span 1;
      }

      p {
        font-size: 14px;

        line-height: 22px;
      }

      .wpcf7 {
        .wpcf7-form {
          .wpcf7-response-output {
            margin: 20px 0 0;

            font-size: 14px !important;

            text-align: center;
          }
        }

        .newsletter {
          p {
            position: relative;

            margin-top: 30px;

            border: 1px solid var(--border);

            border-radius: 50px;

            position: relative;

            [type="submit"] {
              cursor: pointer;

              position: absolute;

              right: 10px;

              bottom: 10px;

              top: 10px;

              font-size: 0px;

              width: 48px;

              height: 48px;

              background: var(--secondary-blue) url("../images/arrow-right.svg")
                center no-repeat;

              border: 0;

              border-radius: 100%;

              transition: background-color 200ms ease;

              padding: 10px;

              &:hover {
                background: var(--primary-blue) url("../images/arrow-right.svg")
                  center no-repeat;
              }
            }

            [type="email"] {
              height: 68px;

              border: 0;

              padding: 0 66px 0 20px;

              font-size: 18px;

              background-color: transparent;

              width: 100%;

              &:focus {
                outline: none;
              }
            }

            .wpcf7-spinner {
              position: absolute;
            }

            .wpcf7-not-valid-tip {
              position: absolute;

              left: 20px;

              top: -35px;

              text-align: center;

              background-color: var(--white);
            }
          }
        }
      }
    }
  }
}

#site-header {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  padding: 10px 0;

  z-index: 99;

  transition: all 600ms ease;

  @media (min-width: 768px) {
    padding: 32px 0;
  }

  &.fixed {
    background-color: var(--white);

    padding: 10px 0 0;

    box-shadow: 0 5px 15px rgb(from var(--black) r g b / 10%);

    .header-titles {
      a {
        color: var(--black);

        svg {
          height: auto;

          width: 90px;
        }
      }
    }

    .primary-menu {
      .menu-item {
        &:last-child {
          a {
            background-color: var(--secondary-blue);

            color: var(--white);

            border-radius: 30px;

            &[aria-current="page"] {
              color: var(--black);

              background-color: var(--yellow);
            }
          }
        }

        a {
          color: var(--black);

          &[aria-current="page"] {
            color: var(--secondary-blue);

            border-bottom-color: var(--secondary-blue);
          }
        }
      }
    }
  }

  .header-titles {
    a {
      color: var(--white);

      display: block;

      svg {
        transition: width 100ms ease;
      }
    }
  }

  .primary-menu {
    display: flex;

    align-items: center;

    list-style-type: none;

    .menu-item {
      a {
        font-size: 16px;

        text-transform: uppercase;

        font-weight: 500;

        text-decoration: none;

        border-bottom: 2px solid transparent;

        padding: 10px 20px;

        color: var(--white);

        &[aria-current="page"] {
          color: var(--yellow);

          border-bottom-color: var(--yellow);
        }

        &:hover {
          color: var(--yellow);
        }
      }

      &:last-child {
        a {
          background-color: var(--white);

          color: var(--black);

          border-radius: 30px;

          &[aria-current="page"] {
            background-color: var(--yellow);
          }
        }
      }
    }
  }

  .primary-menu-wrapper {
    display: none;

    @media (min-width: 768px) {
      display: flex;
    }
  }
}

.cover-header {
  position: relative;

  .home & {
    display: none;

    height: 0;
  }

  .cover-header-inner-wrapper {
    display: none;
  }
}

.home__banner {
  position: relative;

  &::after {
    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

    background-color: rgb(from var(--black) r g b / 20%);
  }

  img {
    height: 100vh;

    min-height: 600px;

    width: 100%;

    object-fit: cover;

    object-position: center;

    display: block;
  }

  .home__banner-info {
    position: absolute;

    z-index: 2;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    display: flex;

    flex-flow: column;

    justify-content: center;

    @media (min-width: 768px) {
      padding: 24px;
    }

    h1 {
      font-size: 18px;

      font-weight: 500;

      color: var(--white);

      position: relative;

      display: flex;

      flex-flow: column;

      gap: 10px;

      &::before {
        content: "";

        width: 20px;

        height: 2px;

        background-color: var(--yellow);

        display: inline-block;
      }

      @media (min-width: 768px) {
        font-size: 24px;

        flex-flow: row;

        align-items: center;
      }
    }

    h2 {
      font-size: 44px;

      font-weight: 600;

      line-height: 1.2;

      color: var(--white);

      text-transform: uppercase;

      margin: 32px 0 10px;

      @media (min-width: 768px) {
        font-size: 62px;

        margin: 44px 0 10px;

        line-height: 1;
      }

      @media (min-width: 992px) {
        font-size: 72px;

        margin: 48px 0 10px;
      }
    }

    h3 {
      font-size: 24px;

      font-weight: 300;

      color: var(--white);

      margin-bottom: 32px;

      @media (min-width: 768px) {
        font-size: 32px;

        margin-bottom: 48px;
      }
    }

    a {
      font-size: 18px;

      font-weight: 400;

      color: var(--white);

      display: inline-flex;

      align-items: center;

      gap: 20px;

      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }

      @media (min-width: 768px) {
        font-size: 24px;
      }

      span {
        width: 36px;

        height: 36px;

        background-color: var(--yellow);

        border-radius: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        @media (min-width: 768px) {
          width: 48px;

          height: 48px;
        }

        svg {
          width: 14px;

          height: auto;

          @media (min-width: 768px) {
            width: unset;
          }
        }
      }
    }
  }
}

.home__writeup {
  padding: 32px 0;

  @media (min-width: 768px) {
    padding: 100px 0;
  }

  h4 {
    font-size: 24px;

    line-height: 36px;

    color: var(--secondary-blue);

    margin-bottom: 16px;

    font-weight: 500;

    @media (min-width: 768px) {
      font-size: 40px;

      line-height: 60px;

      text-align: center;

      margin-bottom: 48px;
    }
  }

  p {
    font-size: 18px;

    line-height: 32px;

    color: var(--black);

    @media (min-width: 768px) {
      font-size: 20px;

      line-height: 36px;

      text-align: center;
    }
  }
}

.home__projects {
  padding: 32px 0 64px;

  @media (min-width: 768px) {
    padding: 100px 0;
  }

  @media (min-width: 992px) {
    padding: 100px 0 200px;
  }

  .swiper {
    overflow: visible;
  }

  .projects__item {
    a {
      position: relative;

      border-radius: 8px;

      overflow: hidden;

      display: block;

      @media (min-width: 768px) {
        border-radius: 20px;

        overflow: visible;
      }
    }

    img {
      display: block;

      z-index: 2;

      &:first-of-type {
        width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center;

        aspect-ratio: 16/12;

        @media (min-width: 768px) {
          aspect-ratio: 16/9;

          border-radius: 16px;
        }
      }

      &:nth-child(2) {
        width: 80px;

        aspect-ratio: 1/1;

        border-radius: 100%;

        position: absolute;

        left: 20px;

        top: -25px;

        border: 4px solid var(--white);

        box-shadow: 0 2px 0 var(--white);

        @media (min-width: 768px) {
          width: 180px;

          border: 6px solid var(--white);

          box-shadow: 0 6px 0 var(--white);

          top: -50px;
        }

        @media (min-width: 992px) {
          width: 380px;

          top: -50px;

          border: 6px solid var(--white);

          box-shadow: 0 10px 0 var(--white);
        }
      }

      &:nth-child(3) {
        width: 80px;

        aspect-ratio: 1/1;

        border-radius: 100%;

        position: absolute;

        right: 20px;

        bottom: -25px;

        border: 4px solid var(--white);

        box-shadow: 0 2px 0 var(--white);

        @media (min-width: 768px) {
          width: 140px;

          border: 5px solid var(--white);

          box-shadow: 0 5px 0 var(--white);

          bottom: -50px;
        }

        @media (min-width: 992px) {
          width: 280px;

          border: 10px solid var(--white);

          box-shadow: 0 10px 0 var(--white);

          right: -60px;

          bottom: -100px;
        }
      }
    }
  }

  .projects__item--title {
    padding: 20px 120px 20px 20px;

    position: absolute;

    left: 0px;

    right: 0;

    bottom: 0px;

    background: linear-gradient(
      rgb(from var(--black) r g b / 0%) 15%,
      rgb(from var(--black) r g b / 85%) 100%
    );

    z-index: 1;

    @media (min-width: 768px) {
      padding: 40px 24px 20px;

      border-radius: 0 0 16px 16px;
    }

    h6 {
      font-size: 20px;

      line-height: 1.2;

      color: var(--white);

      font-weight: 600;

      @media (min-width: 768px) {
        font-size: 40px;
      }
    }
  }

  .projects-nav {
    position: absolute;

    left: 0;

    top: 50%;

    height: 0px;

    width: 100%;

    z-index: 9;

    .projects-next,
    .projects-prev {
      position: absolute;

      width: 40px;

      height: 40px;

      border-radius: 100%;

      background-color: var(--white);

      box-shadow: 0 4px 18px rgb(from var(--black) r g b / 15%);

      display: flex;

      align-items: center;

      justify-content: center;

      cursor: pointer;

      transition: transform 300ms ease;

      @media (min-width: 768px) {
        width: 56px;

        height: 56px;
      }

      &.swiper-button-disabled {
        opacity: 0.5;

        color: var(--black);

        cursor: not-allowed;
      }

      svg {
        width: 16px;

        height: auto;

        @media (min-width: 768px) {
          width: unset;
        }
      }
    }

    .projects-prev {
      left: 0;

      transform: translate(10px, -50%) scale(1);

      @media (min-width: 992px) {
        transform: translate(-50%, -50%) scale(1);

        &:hover {
          transform: translate(-50%, -50%) scale(1.1);
        }
      }
    }

    .projects-next {
      right: 0;

      transform: translate(-10px, -50%) scale(1);

      @media (min-width: 992px) {
        transform: translate(50%, -50%) scale(1);

        &:hover {
          transform: translate(50%, -50%) scale(1.2);
        }
      }
    }
  }
}

.home__pillars {
  background-color: var(--black);

  padding: 32px 0;

  @media (min-width: 768px) {
    padding: 100px 0;
  }

  ul {
    display: grid;

    list-style-type: none;

    @media (min-width: 768px) {
      grid-template-columns: repeat(3, 1fr);

      gap: 24px;
    }

    @media (min-width: 992px) {
      gap: 64px;
    }

    li {
      color: var(--white);

      padding: 20px 0;

      @media (min-width: 768px) {
        padding: 0;
      }

      &:not(:last-child) {
        border-bottom: 1px solid var(--white);

        @media (min-width: 768px) {
          border: 0;
        }
      }
    }

    svg {
      width: 36px;

      height: auto;

      @media (min-width: 768px) {
        width: unset;
      }
    }

    .heading {
      color: var(--white);

      font-size: 24px;

      line-height: 32px;

      margin: 24px 0 10px;

      @media (min-width: 768px) {
        font-size: 30px;

        line-height: 48px;

        margin: 48px 0 16px;
      }

      @media (min-width: 992px) {
        font-size: 40px;

        line-height: 60px;

        margin: 64px 0 16px;
      }
    }

    .text {
      color: var(--white);

      font-size: 16px;

      font-weight: 300;

      line-height: 24px;

      @media (min-width: 768px) {
        font-size: 18px;

        line-height: 36px;
      }
    }
  }
}

.home__recent {
  padding: 32px 0;

  @media (min-width: 768px) {
    padding: 100px 0;
  }

  .swiper {
    overflow: visible;
  }

  .recent__item {
    a {
      display: block;

      text-decoration: none;

      img {
        display: block;

        width: 100%;

        height: 100%;

        aspect-ratio: 16/12;

        object-fit: cover;

        object-position: center;

        border-radius: 20px;

        @media (min-width: 768px) {
          aspect-ratio: 16/9;
        }
      }
    }

    h6 {
      font-size: 18px;

      line-height: 1.2;

      color: var(--secondary-blue);

      margin-top: 10px;

      text-decoration: none;

      font-weight: 500;

      @media (min-width: 768px) {
        font-size: 20px;

        margin-top: 20px;
      }

      @media (min-width: 992px) {
        font-size: 24px;

        margin-top: 24px;
      }
    }
  }

  .home__recent--title {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 32px;

    justify-content: space-between;

    h6 {
      font-size: 24px;

      line-height: 36px;

      font-weight: 500;

      @media (min-width: 768px) {
        font-size: 40px;

        line-height: 60px;
      }
    }

    .recent-nav {
      display: flex;

      align-items: center;

      gap: 10px;
    }

    .recent-next,
    .recent-prev {
      background-color: var(--background-light);

      color: var(--black);

      width: 48px;

      height: 48px;

      display: flex;

      align-items: center;

      justify-content: center;

      border-radius: 100%;

      cursor: pointer;

      transition: background-color 200ms ease;

      &.swiper-button-disabled {
        opacity: 0.5;

        cursor: not-allowed;
      }

      &:hover {
        background-color: var(--black);

        color: var(--white);
      }
    }
  }
}

.home__contact {
  background: linear-gradient(
    to bottom,
    var(--black) 0%,
    var(--black) 60%,
    var(--white) 60%,
    var(--white) 100%
  );

  padding: 20px 0;

  @media (min-width: 768px) {
    padding: 100px 0;
  }

  .contact-form {
    background-color: var(--white);

    max-width: 900px;

    margin: 0 auto;

    border-radius: 20px;

    padding: 20px;

    box-shadow: 0 4px 22px rgb(from var(--black) r g b / 10%);

    position: relative;

    z-index: 1;

    @media (min-width: 768px) {
      padding: 32px 64px;
    }

    @media (min-width: 992px) {
      padding: 48px 110px;
    }

    h6 {
      font-size: 24px;

      margin-bottom: 20px;

      font-weight: 600;

      @media (min-width: 768px) {
        font-size: 40px;
      }
    }
  }
}

.wpcf7 form.success .wpcf7-response-output {
  color: #00a0d2;

  border-color: #00a0d2;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  color: var(--red);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #ffb900;
}

.hero-banner {
  position: relative;

  &::after {
    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

    background-color: rgb(from var(--black) r g b / 20%);
  }

  img {
    width: 100%;

    height: 250px;

    display: block;

    object-fit: cover;

    object-position: center;

    @media (min-width: 768px) {
      height: 300px;
    }

    @media (min-width: 992px) {
      height: 450px;
    }
  }

  .info {
    position: absolute;

    left: 0;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    z-index: 3;

    @media (min-width: 768px) {
      font-size: 62px;

      margin: 44px 0 10px;

      line-height: 1;

      transform: translateY(-25%);
    }

    h1 {
      font-size: 44px;

      font-weight: 600;

      line-height: 1.2;

      color: var(--white);

      text-transform: uppercase;

      margin: 100px 0 10px;

      @media (min-width: 768px) {
        font-size: 62px;

        margin: 44px 0 10px;

        line-height: 1;
      }

      @media (min-width: 992px) {
        font-size: 72px;

        margin: 48px 0 10px;
      }
    }
  }
}

.services__content {
  .services__section {
    padding: 24px 0;

    @media (min-width: 768px) {
      padding: 100px 0;
    }

    &:nth-child(2) {
      background-color: #fff8f6;

      .section-inner {
        @media (min-width: 992px) {
          flex-flow: row-reverse;
        }
      }
    }

    img {
      width: 100%;

      height: auto;

      display: block;
    }

    .section-inner {
      display: flex;

      flex-flow: column-reverse;

      gap: 20px;

      max-width: 1600px;

      padding: 0 5vw;

      @media (min-width: 992px) {
        flex-flow: row;

        align-items: center;

        gap: 40px;

        padding: 0 16px;
      }

      img {
        width: unset;

        @media (min-width: 992px) {
          max-width: 300px;
        }

        @media (min-width: 1200px) {
          max-width: 600px;
        }

        @media (min-width: 1400px) {
          max-width: 800px;
        }
      }
    }
  }

  .content {
    h2 {
      font-size: 24px;

      line-height: 36px;

      color: var(--secondary-blue);

      margin-bottom: 16px;

      font-weight: 500;

      @media (min-width: 1200px) {
        font-size: 40px;

        line-height: 60px;
      }
    }

    h5 {
      font-size: 18px;

      line-height: 36px;

      color: var(--black);

      margin-bottom: 10px;

      font-weight: 700;

      @media (min-width: 768px) {
        font-size: 20px;

        line-height: 40px;
      }
    }

    p {
      font-size: 16px;

      line-height: 30px;

      color: var(--black);

      margin-bottom: 10px;

      font-weight: 400;

      @media (min-width: 768px) {
        font-size: 18px;

        line-height: 36px;
      }
    }
  }
}

.gallery-page {
  padding: 24px 0;

  display: grid;

  gap: 16px;

  @media (min-width: 768px) {
    display: flex;

    flex-wrap: wrap;

    padding: 100px 0;
  }

  .projects__item {
    position: relative;

    @media (min-width: 768px) {
      &:nth-child(4n + 1) {
        width: calc(65% - 8px);
      }

      &:nth-child(4n + 2) {
        width: calc(35% - 8px);
      }

      &:nth-child(4n + 3) {
        width: calc(35% - 8px);
      }

      &:nth-child(4n + 4) {
        width: calc(65% - 8px);
      }
    }
   
    img {
      display: block;

      width: 100%;

      height: 100%;

      object-fit: cover;

      object-position: center;

      border-radius: 8px;
    }

    .projects__item--title {
      padding: 10px;

      position: absolute;

      left: 0px;

      right: 0;

      bottom: 0px;

      background: linear-gradient(
        rgb(from var(--black) r g b / 0%) 15%,
        rgb(from var(--black) r g b / 85%) 100%
      );

      z-index: 1;

      border-radius: 0 0 8px 8px;

      @media (min-width: 768px) {
        padding: 40px 24px 20px;

        border-radius: 0 0 16px 16px;
      }

      h3 {
        font-size: 18px;

        line-height: 1.2;

        color: var(--white);

        font-weight: 600;

        @media (min-width: 992px) {
          font-size: 30px;
        }
      }
    }
  }
}

.masonary {
  padding: 24px 0;

  display: grid;

  gap: 10px;

  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));

  @media (min-width: 376px) {
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  }

  @media (min-width: 500px) {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  @media (min-width: 576px) {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  @media (min-width: 768px) {
    gap: 16px;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  @media (min-width: 992px) {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  @media (min-width: 1400px) {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .masonary-item {
    &:nth-child(3n + 2) {
      grid-row: span 2;
    }
    a{
      cursor: pointer;
    }
    img {
      display: block;

      width: 100%;

      height: 100%;

      object-fit: cover;

      object-position: center;

      border-radius: 8px;

      aspect-ratio: 16/9;
    }

    .projects__item--title {
      padding: 10px;

      position: absolute;

      left: 0px;

      right: 0;

      bottom: 0px;

      background: linear-gradient(
        rgb(from var(--black) r g b / 0%) 15%,
        rgb(from var(--black) r g b / 85%) 100%
      );

      z-index: 1;

      border-radius: 0 0 8px 8px;

      @media (min-width: 768px) {
        padding: 40px 24px 20px;

        border-radius: 0 0 16px 16px;
      }
    }
  }
}

label {
  display: block;

  .wpcf7-form-control-wrap {
    display: block;
  }
}

p {
  position: relative;

  .wpcf7-spinner {
    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    margin: 0;

    @media (min-width: 768px) {
      position: static;

      margin: 0 20px;

      transform: translate(0, 0);
    }
  }
}

input {
  padding: 16px;

  border: 1px solid var(--border);

  border-radius: 6px;

  width: 100%;

  font-size: 16px;

  &.wpcf7-not-valid {
    border-color: var(--red);
  }

  &[type="submit"] {
    padding: 14px 32px;

    background-color: var(--black);

    font-size: 18px;

    color: var(--white);

    border-radius: 30px;

    cursor: pointer;

    transition: background-color 200ms ease;

    @media (min-width: 768px) {
      width: unset;
    }

    &:hover {
      background-color: var(--secondary-blue);
    }
  }
}

textarea {
  padding: 16px;

  border: 1px solid var(--border);

  border-radius: 6px;

  width: 100%;

  font-family: inherit;

  resize: none;

  font-size: 16px;

  height: 200px;

  &.wpcf7-not-valid {
    border-color: var(--red);

    margin-top: 6px;
  }
}

.wpcf7-not-valid-tip {
  font-size: 14px;

  margin-top: 6px;
}

.wpcf7-response-output {
  font-size: 14px;
}

.terms {
  margin: 24px 0;

  font-size: 14px;

  a {
    color: var(--black);
  }
}

.template-contact {
  .hero-banner {
    img {
      height: 260px;

      @media (min-width: 768px) {
        height: 350px;
      }

      @media (min-width: 992px) {
        height: 500px;
      }
    }
  }

  .form {
    background: var(--white);
    padding: 24px 0px;
    max-width: 700px;
    margin: 20px auto;
    @media (min-width: 992px) {
      margin: 48px auto;
      border-radius: 20px;
      box-shadow: 0 2px 16px rgb(from var(--black) r g b / 10%);
      padding: 24px;
    }

    h6 {
      font-size: 24px;

      margin-bottom: 20px;

      font-weight: 600;

      @media (min-width: 768px) {
        font-size: 40px;
      }
    }

    .contact-form {
      @media (min-width: 992px) {
        padding-left: 0px;
      }
    }

    .map {
      margin: 32px 0 0;

      height: 400px;

      position: relative;

      border-radius: 20px;

      overflow: hidden;

      @media (min-width: 992px) {
        height: 600px;

        margin: 0;
      }

      @media (min-width: 1400px) {
        height: 700px;
      }
    }

    .direction {
      background-color: var(--black);

      border-radius: 30px;

      color: var(--white);

      font-size: 16px;

      font-weight: 500;

      text-decoration: none;

      padding: 10px 30px;

      position: absolute;

      left: 50%;

      transform: translate(-50%, calc(-100% - 30px));

      @media (min-width: 768px) {
        left: 20px;

        transform: translate(0, 0);

        bottom: 20px;
      }
    }
  }
}

.error404-content{
  padding: 24px 0;
  text-align: x
  ;
  @media (min-width: 768px) {
    padding: 50px 0;
  }
  img{
    max-width: 100%;
    height: auto;
    width: 100%;
    margin: 0 auto;
  }
}