.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:focus-within > ul,
  .header-2024 nav > ul > li:hover > ul > li:hover > ul,
    .header-2024 nav > ul > li:focus-within > ul > li:focus-within > 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,
    .header-2024 nav > ul > li:focus-within > a::after,
    .header-2024 nav > ul > li:focus-within > ul > li.menu-item-has-children:focus-within > 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, &:focus {
        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, &:focus {
        border-bottom: 2px solid #007961;
      }

      &:hover::before, &:focus::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%;
  }
}

p a[href] {
  text-decoration: underline !important;
  font-weight: bold !important;
}

#donation-thankyou .button:empty::after{
  content: 'Pay with Paymentsense';
}

#donation-thankyou .button {
  visibility: visible;
}

#donation-thankyou #paymentsense-rp-button-div {
  text-align: left;
}

.youtube-modal-thumbnail-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.youtube-modal-thumbnail {
  display: block;
  width: 100%;
  height: auto;
}

.youtube-modal-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Prevent click interference with the play button */
  opacity: 0.5;
}

.youtube-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.youtube-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


.youtube-modal-content iframe {
  width: 1220px;
  height: 630px;
  border: none;
}

@media screen and (max-height: 700px) {
  .youtube-modal-content iframe {
    width: 610px;
    height: 315px;
  }
}

.youtube-modal-close:focus {
  outline: none;
}

#checkbox-main-menu:focus + label {
  border: 2px solid #007961;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  width: 16px;
  height: 16px;
  fill: white;
  margin-left: 10px;
  margin-right: 10px;
  cursor: pointer;
}

/* Hide input until focused */
.search-input {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  border: none;
  border-bottom: 1px solid white;
  background: transparent;
  color: white;
  font-size: 14px;
  padding: 2px;
  outline: none;
}

/* Expand on focus */
.search-input:focus {
  width: 150px; /* adjust as needed */
  opacity: 1;
  border-color: white;
}

.nice-select {
  border-color: black;
}

.nice-select::after {
  border-color: black;
}

.gform_submission_error.gform_submission_error {
  color: white;
}

.sow-slider-base .sow-slider-pagination li a {
  border: 2px solid white;
  background: none !important;
  opacity: 1;
}

.sow-slider-base .sow-slider-pagination li.sow-active a {
  background: white !important;
}

.pagination .page, .pagination a {
  color: black;
}

.standard-page input, .standard-page textarea {
  border: 1px solid black;
}


.carousel__pagination-button {
  border: 2px solid #027961;
  background: none;
}

.carousel__pagination-button.is-active {
  background: #027961;
}

.skipityskoo {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  background: white;
  color: black;
  padding: 0.5em 1em;
  border: 2px solid black;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.skipityskoo:focus {
  transform: translateY(0);
}

[role="tooltip"] {
  clip-path: inset(100%);
}

[role="button"]:hover + [role="tooltip"], [role="button"]:focus + [role="tooltip"], .sow-slide-nav:focus-within [role="tooltip"] {
  clip-path: none;
}


blockquote {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.sow-slide-nav [role="tooltip"] {
  background-color: white;
  color: black;
}

.sow-slider-base a {
  text-decoration: none !important;
}

.widget-news .button, .widget-events .button {
  text-transform: none;
}

.breadcrumbs-container #breadcrumbs > span:first-child > span:first-child > a {
  text-indent: initial;
  width: auto;
  height: auto;
  background: none;
  top: initial;
}

.breadcrumbs-container a {
  color: #007961;
}

.pagination .nextpostslink, .pagination .previouspostslink {
  color: black;
}

.suggestions:empty {
  display: none;
}

.page-content ul li::before {
  display: none;
}

._sow-slider-pagination {
  text-align: center !important;
}

.testimonials .sow-slider-base .sow-slide-nav.sow-slide-nav-next {
  right: -3rem;
}

.testimonials .sow-slider-base .sow-slide-nav.sow-slide-nav-prev {
  left: -3rem;
}

.testimonials .sow-slider-base {
  overflow: visible;
}


.testimonials .sow-slider-base .sow-slider-pagination li a {
  border: 2px solid black;
  background: none !important;
  opacity: 1;
}

.testimonials .sow-slider-base .sow-slider-pagination li.sow-active a {
  background: black !important;
}


.slide {
  transition: all 0.3s;
  position: relative;
  grid-area: slide;
  opacity: 1;
  background: #027961;

  &[aria-hidden="true"] {
    opacity: 0;
  }


  > div {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    margin: auto;
    max-width: clamp(250px, 28vw, 365px);
    color: white;
    text-align: center;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 5px;
    background: #027961;
  }

  a {
    background-color: white;
    font-size: clamp(12px, 1.5vw, 20px);
    padding: 0.5rem 1rem;
    border-radius: 5px;

    &:focus {
      border: 3px solid #FBE4E9;
    }
  }

  .title {
    font-size: clamp(14px, 3vw, 40px);
    font-weight: bold;
  }

  .copy {
    font-size: clamp(12px, 1.5vw, 20px);
  }

  img {
    width: 100%;
    aspect-ratio: 2.5;
    object-fit: cover;
    max-height: 550px;
  }
}

.slides {
  display: grid;
  grid-template-areas: 'slide';
}


.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;

  [role="tooltip"] {
    background-color: #027961;
    color: white;
    padding: 0.5rem;
    display: block;
    line-height: 1;
    font-size: 20px;
  }

  button {
    border: none;
    color: white;
    font-weight: bold;
    line-height: 0;
    background-color: #027961;
    padding: 1rem;
    border-radius: 100%;
    aspect-ratio: 1;

    &:focus {
      border: 3px solid #FBE4E9;
    }

    &::before {
      font-family: 'revicons';
      font-size: clamp(10px, 1.5vw, 20px);
      text-align: center;
    }
  }
}

.prev-button {
  left: clamp(5px, 2.5vw, 2rem);

  button::before {
    content: '\e82c';
  }
}

.next-button {
  flex-direction: row-reverse;
  right: clamp(5px, 2.5vw, 2rem);

  button::before {
    content: '\e82d';
  }
}

.pause-button {
  clip-path: inset(100%);
  flex-direction: column;
  left: clamp(5px, 2.5vw, 2rem);
  right: clamp(5px, 2.5vw, 2rem);
  margin: auto;

  button::before {
    content: '||';
    font-weight: bold;
  }

  button.paused::before {
    content: '>';
    font-weight: bold;
  }

  &:focus-within {
    clip-path: none;
  }
}

.slider {
  position: relative;
}

video {
  max-width: 100%;
}

[popover]::backdrop {
  background: rgba(0,0,0, 0.8);
}

#local-video:popover-open {
  border: none;
  padding: 0;
  display: grid;
  grid-template-areas: 'fill' 'transcript';
  max-width: calc(80vw);

  > * {
    grid-area: fill;
  }

  details {
    grid-area: transcript;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
  }

  button {
    border: none;
    background: white;
    justify-self: right;
    align-self: start;
    margin: 1rem;
    clip-path: inset(100%);

    &:focus {
      border: 3px solid pink;
    }
  }

  &:hover, &:focus-within {
    button {
      clip-path: none;
    }
  }
}

.show-video {
  display: grid;
  grid-template-areas: 'fill';
  border: none;
  padding: 0;

  &:focus {
    border: 3px solid pink;
  }

  > * {
    grid-area: fill;
  }

  .play-button {
    justify-self: center;
    align-self: center;
    max-width: 5rem !important;
    opacity: 0.5;
  }
}

.seventy-banner {
  aspect-ratio: 2;
  width: 100%;

  > div {
    height: 100%;
    > div {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2rem;

      h2, h3 {
        margin: 0;
      }

      h2 {
        font-size: 4rem;
      }

      h3 {
        font-size: 2.5em;
        line-height: 1;
        font-family: "Value Trial", sans-serif;

        strong {
          display: inline-block;
          color: white;
          font-size: 4rem;
          vertical-align: middle;
          background-color: #D0D0D0;
          content: '';
          width: 6rem;
          aspect-ratio: 1;
          padding-top: 20px;
          border-radius: 100%;
        }
      }
    }
  }
}

@media (max-width: 500px) {
  .slide {
    display: grid;
    grid-template-areas: "full" "caption";

    img {
      grid-area: full;
    }

    > div {
      grid-area: caption;
      position: relative;
      max-width: none;
      width: 100%;
      border-radius: 0;
    }
  }

  .slide-nav {
    top: 25%;
  }
}
