.ow-button-base a {
  text-decoration: none !important;
}

.widget_sow-hero p {
  font-size: clamp(24px, 3vw, 38px) !important;
}

.header-2024 {
  border-bottom: 1px solid #D8D8D8;
  background: white;
}

@media (min-width: 1165px) {

  .header-2024 > div {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    position: relative;
    display: grid;
    gap: 2rem;
    padding: 0 2rem;
  }

  .header-logo {
    margin: 0.5rem 0;
  }

  .header-2024 nav {
    align-self: stretch;
  }

  .header-2024 nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  @keyframes fadeyBoi {
    from {
      display: none;
      opacity: 0;
    }

    to {
      display: flex;
      opacity: 1;
    }
  }

  .header-2024 nav > ul ul {
    display: none;
  }
  .header-2024 nav > ul > li:hover > ul,
  .header-2024 nav > ul > li:hover > ul > li:hover > ul {
    animation: fadeyBoi 0.5s;
    display: flex;
    opacity: 1;
  }

  .header-2024 nav > ul > li:hover > a::after,
  .header-2024 nav > ul > li:hover > ul > li.menu-item-has-children:hover > a::after {
    animation: fadeyBoi 0.5s;
    display: flex;
    opacity: 1;
  }

  .header-2024 nav > ul {
    justify-content: space-around;
    display: flex;
    height: 100%;

    > li {
      align-items: center;
      display: flex;
    }

    > li > a {
      font-family: "FoundersGrotCondMedium", sans-serif;
      color: rgb(109, 109, 109);
      text-transform: uppercase;
      font-size: 1.125rem;
      letter-spacing: 2px;
      align-items: center;
      position: relative;
      display: flex;
      height: 100%;

      &::after {
        background-image: url("dist/images/menu-after--green.svg");
        transform: translateX(-50%);
        background-size: cover;
        position: absolute;
        display: none;
        width: 13px;
        height: 6px;
        content: '';
        bottom: 0;
        left: 50%;
      }
    }
  }

  .header-2024 nav > ul > li > ul {
    justify-content: space-around;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    &::after {
      transform: translateX(-50%);
      background-color: #007961;
      position: absolute;
      width: 100vw;
      height: 100%;
      content: "";
      left: 50%;
      top: 0;
    }

    > li > a {
      font-family: "Value Serif Trial", serif;
      position: relative;
      font-size: 1rem;
      padding: 1.5rem;
      display: block;
      color: white;
      z-index: 10;

      &:hover {
        text-decoration: underline;
      }
    }

    > li.menu-item-has-children > a {
      align-items: center;
      position: relative;
      display: flex;
      height: 100%;

      &::after {
        background-image: url("dist/images/menu-after--white.svg");
        transform: translateX(-50%);
        background-size: cover;
        position: absolute;
        display: none;
        content: '';
        width: 13px;
        height: 6px;
        bottom: 0;
        left: 50%;
      }
    }

  }


  .header-2024 nav > ul > li > ul > li > ul {
    justify-content: space-around;
    position: absolute;
    padding: 0.5rem;
    flex-wrap: wrap;
    top: 100%;
    right: 0;
    left: 0;

    &::after {
      transform: translateX(-50%);
      background-color: white;
      position: absolute;
      width: 100vw;
      height: 100%;
      content: "";
      left: 50%;
      top: 0;
    }

    > li > a {
      font-family: "Value Trial", sans-serif;
      position: relative;
      font-size: 1rem;
      display: block;
      color: #1A1A1A;
      padding: 0.5rem;
      z-index: 10;
      border-bottom: 2px solid transparent;
      transition: border 0.2s;

      &::before {
        transition: transform 0.2s;
        margin-right: 1ch;
        color: #007961;
        content: '>';
        transform: translateX(0);
        display: inline-block;
      }

      &:hover {
        border-bottom: 2px solid #007961;
      }

      &:hover::before {
        transform: translateX(100%);
      }
    }
  }

  .header-2024 li.our-locations > ul {
    justify-content: start !important;
  }

  .mob-menu {
    display: none;
  }
  #main-menu {
    display: none;
  }
}
.header-2024 .button {
  padding: 0.25em 1em;
  font-size: 1.3rem;
}


@media (max-width: 1164px) {
  .header-2024 > div {
    display: grid;
    padding: 1rem;

    grid-template-areas: "cover";

    > * {
      grid-area: cover;
    }
  }

  .header-logo {
    max-width: min(150px, 20vw);
    align-self: center;
    justify-self: center;
  }

  .header-2024 .button {
    align-self: center;
    justify-self: end;
  }


  .header-2024 nav {
    display: none;
    position: absolute;
    background: white;
    left: 0;
    right: 0;
  }

  .mob-menu {
    align-self: center;
    justify-self: start;
    font-size: 18px;

    .main-menu-label {
      position: static;
    }
  }


  #main-menu {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    top: 100%;
    padding-bottom: 2rem;
    border-bottom: 1px solid #d8d8d8;
  }
}

/* temp */
.header-2024 li.logo {
  display: none !important;
}
.header-2024 .menu-item-10130 {
  display: none;
}

.so-widget-image, .size-panel-image {
  width: 100%;
}

.carousel > div {
  display:flex;
}

.carousel > div::after {
  display: table;
  content: '';
  clear: both;
}

.carousel > div > div > div {
  height: 100%;
}

.carousel img {
  object-fit: cover;
  height: 100%;
}

.widget-news > div {
  margin: 0;
  gap: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 500px) {
  .widget-news > div {
    grid-template-columns: 1fr;
  }
}

.widget-news > div > div {
  margin: 0;
}

.footer-social__link > img {
  max-width: 28px;
  max-height: 28px;
}


.widget-news > div > div:first-child:last-child {
  grid-column: 1 / -1;
}

.widget-news {
  display: flex;
  flex-direction: column;
  height: 100%;

  > div {
    flex: 1;
  }
}


dialog {
  max-width: 80vw;
}

dialog::backdrop {
  background-color: rgba(0,0,0, 0.5);
  backdrop-filter: blur(10px);
}

dialog {
  position: relative;

  .close {
    position: absolute;
    text-align: center;
    font-size: 3rem;
    aspect-ratio: 1;
    line-height: 1;
    width: 1em;
    right: 0;
    top: 0;
  }
}

.team-item, dialog .close {
  cursor: pointer;
}


#field_1_7 {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    background: url('https://www.camphillvillagetrust.org.uk/wp-content/themes/camphill-village-trust/arrow.png') no-repeat center center;
    background-size: contain;
    width: 200px;
    height: 200px;
    transform: translateY(-80%) scaleX(-1);
  }
}

#gform_wrapper_2 .gform_title {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    background: url('https://www.camphillvillagetrust.org.uk/wp-content/themes/camphill-village-trust/plane.png') no-repeat center center;
    background-size: contain;
    width: 200px;
    height: 200px;
    transform: scaleY(-1) rotateZ(215deg) translateY(50%);
    bottom: 100%;
  }
}
