/* Interactive form preview */
[data-form-error],
[data-form-success] {
  display: none;
}

[data-form-error].is-visible,
[data-form-success].is-visible {
  display: block;
}

input[data-form-field],
textarea[data-form-field] {
  color: inherit;
  font: inherit;
}

select.form-select {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

select.form-select:invalid { color: rgba(170, 170, 170, 1); }
select.form-select option { color: rgba(35, 31, 32, 1); background: rgba(250, 249, 246, 1); }
select.form-select + img { pointer-events: none; }

.contact-link-hover {
  position: relative;
  display: inline-block;
}

.contact-link-hover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.contact-link-hover:hover::after,
.contact-link-hover:focus-visible::after { transform: scaleX(1); }

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(35, 31, 32, .88);
}

.gallery-lightbox.is-open { display: grid; }
.gallery-lightbox__image { max-width: min(1200px, 92vw); max-height: 88vh; object-fit: contain; }
.gallery-lightbox__close { position: fixed; top: 18px; right: 24px; border: 0; background: transparent; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
