.hls {
  background: #d3e18a;
  color: inherit;
  padding: 0 0.1em;
}

/* Keep legacy header/search layout with modern WordPress search-form markup. */
#branding .search-form {
  margin: 4.65em 2em 0 0;
  float: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 380px;
  width: 100%;
  text-align: left;
}

#branding .search-form label {
  margin: 0;
}

#branding .search-form .search-field {
  width: 220px;
  min-width: 0;
  height: 40px;
  line-height: 1.2em;
  padding: 0 0.95rem;
  margin: 0;
  border: 1px solid #c6ced0;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
  background: #fff;
  color: #2f3a3d;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: width 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#branding .search-form .search-field:focus {
  width: 250px;
  border-color: #4f7d6f;
  box-shadow: 0 0 0 3px rgba(79, 125, 111, 0.16);
  outline: none;
}

#branding .search-form .search-submit {
  height: 40px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: #4f7d6f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

#branding .search-form .search-submit:hover,
#branding .search-form .search-submit:focus {
  background: #3f6558;
  outline: none;
}

body.peterdale-lightbox-open {
  overflow: hidden;
}

.peterdale-lightbox[hidden] {
  display: none !important;
}

.peterdale-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.peterdale-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.peterdale-lightbox__dialog {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  gap: 0.85rem;
}

.peterdale-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1200px);
  max-height: 78vh;
}

.peterdale-lightbox__stage img,
.peterdale-lightbox__stage iframe {
  max-width: 100%;
  max-height: 78vh;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  border: 0;
  background: #000;
}

.peterdale-lightbox__stage iframe {
  width: min(92vw, 1200px);
  aspect-ratio: 16 / 9;
}

.peterdale-lightbox__caption {
  margin: 0;
  color: #fff;
  text-align: center;
  max-width: 70ch;
  min-height: 1.25em;
}

.peterdale-lightbox__close,
.peterdale-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.peterdale-lightbox__close:hover,
.peterdale-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.peterdale-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.8rem;
  line-height: 1;
}

.peterdale-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.65rem;
  line-height: 1;
}

.peterdale-lightbox__nav--prev {
  left: 1rem;
}

.peterdale-lightbox__nav--next {
  right: 1rem;
}

@media (max-width: 720px) {
  #branding .search-form {
    float: none;
    width: calc(100% - 2em);
    margin: 0.75em 1em 0;
    justify-content: stretch;
  }

  #branding .search-form .search-field {
    flex: 1 1 auto;
    width: auto;
  }

  #branding .search-form .search-field:focus {
    width: auto;
    box-sizing: border-box;
  }

  .peterdale-lightbox__dialog {
    padding: 0.75rem;
  }

  .peterdale-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
  }
}
