.gld-gallery {
  margin: 32px 0;
}

.gld-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gld-gallery__item {
  min-width: 0;
  margin: 0;
}

.gld-gallery__item a {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9ece7;
  overflow: hidden;
}

.gld-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gld-gallery__item a:hover img {
  transform: scale(1.025);
}

.gld-gallery__item figcaption {
  padding: 7px 2px 0;
  color: #56615a;
  font-size: 12px;
}

.gld-before-after {
  --gld-position: 50%;
  margin: 32px 0;
}

.gld-before-after__canvas {
  position: relative;
  width: 100%;
  background: #111914;
  overflow: hidden;
}

.gld-before-after__image {
  position: relative;
}

.gld-before-after__image--after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--gld-position));
}

.gld-before-after__image img {
  display: block;
  float: none !important;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 !important;
}

.gld-before-after__image--after img {
  height: 100%;
  object-fit: cover;
}

.gld-before-after__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(10, 15, 12, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.gld-before-after__image--after .gld-before-after__label {
  right: 12px;
  left: auto;
}

.gld-before-after__range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.gld-before-after__divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--gld-position);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 15, 12, 0.28);
  transform: translateX(-1px);
  pointer-events: none;
}

.gld-before-after__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 2px solid #17211c;
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(10, 15, 12, 0.24);
  transform: translate(-50%, -50%);
}

.gld-before-after__divider span::before,
.gld-before-after__divider span::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #17211c;
  border-left: 2px solid #17211c;
  content: '';
}

.gld-before-after__divider span::before {
  left: 9px;
  transform: translateY(-50%) rotate(-45deg);
}

.gld-before-after__divider span::after {
  right: 9px;
  transform: translateY(-50%) rotate(135deg);
}

.gld-before-after__range:focus-visible ~ .gld-before-after__divider span {
  outline: 3px solid #d5a84a;
  outline-offset: 3px;
}

.gld-before-after figcaption {
  padding-top: 9px;
  color: #56615a;
  font-size: 13px;
}

.gld-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  margin: 0;
  color: #fff;
  background: rgba(10, 15, 12, 0.96);
  border: 0;
}

.gld-lightbox::backdrop {
  background: rgba(10, 15, 12, 0.88);
}

.gld-lightbox__inner {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 60px 20px 28px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.gld-lightbox figure {
  display: flex;
  min-width: 0;
  height: 100%;
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gld-lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.gld-lightbox figcaption {
  max-width: 760px;
  padding-top: 12px;
  text-align: center;
}

.gld-lightbox__button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  cursor: pointer;
}

.gld-lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
}

.gld-map-wrap {
  margin: 32px 0;
}

.gld-map-consent {
  display: flex;
  min-height: 300px;
  padding: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #eef1ed;
  border: 1px solid #d3d9d2;
}

.gld-map-consent[hidden] {
  display: none;
}

.gld-map-consent p {
  max-width: 520px;
}

.gld-map {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 420px;
  background: #e9ece7;
  border: 1px solid #d3d9d2;
}

.gld-map .leaflet-popup-content {
  display: flex;
  min-width: 170px;
  flex-direction: column;
  gap: 4px;
}

.gld-map .leaflet-popup-content a {
  color: #17211c;
  font-weight: 700;
}

.gld-category-index > ul {
  display: grid;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  list-style: none;
}

.gld-category-index ul.children {
  padding-left: 20px;
}

.gld-category-index li {
  list-style: none;
}

.gld-category-index a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid #d3d9d2;
  text-decoration: none;
}

.gld-responsive-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111914;
}

.gld-responsive-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gld-external-media iframe:not([src]) {
  display: none;
}

.gld-external-media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #eef1ed;
  text-align: center;
  background: #17211c;
}

.gld-external-media__placeholder[hidden] {
  display: none;
}

.gld-external-media__placeholder p {
  max-width: 430px;
  margin: 0;
}

.gld-external-media__placeholder .button {
  cursor: pointer;
}

.gld-video-playlists {
  display: grid;
  margin: 30px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.gld-contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gld-field {
  min-width: 0;
}

.gld-field:has(textarea) {
  grid-column: 1 / -1;
}

.gld-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 720;
}

.gld-field input,
.gld-field textarea {
  width: 100%;
  padding: 11px 12px;
  color: #17211c;
  background: #fff;
  border: 1px solid #aeb8b0;
  border-radius: 4px;
}

.gld-field input:focus,
.gld-field textarea:focus {
  outline: 3px solid rgba(72, 100, 71, 0.2);
  border-color: #486447;
}

.gld-contact-form .button {
  margin-top: 22px;
}

.gld-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gld-form-notice,
.gld-editor-notice {
  padding: 12px 14px;
  border-left: 4px solid #456d7c;
  background: #eef3f4;
}

.gld-form-notice--success {
  border-color: #486447;
  background: #eff4ed;
}

.gld-form-notice--error {
  border-color: #a44a3f;
  background: #f9efed;
}

@media (max-width: 700px) {
  .gld-gallery__grid,
  .gld-category-index > ul,
  .gld-video-playlists,
  .gld-contact-form__fields {
    grid-template-columns: 1fr;
  }

  .gld-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gld-field:has(textarea) {
    grid-column: auto;
  }

  .gld-map {
    min-height: 360px;
  }

  .gld-lightbox__inner {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding-inline: 8px;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gld-gallery__item img {
    transition: none;
  }
}
