.hedgework-wildlife-watch {
  --brand-orange: #ff8c44;
  --brand-dark: #15312b;
  --brand-blue: #9eccde;
  --brand-cream: #fafbfc;
  --brand-pink: #f6ccd5;
  font-family: Inter, system-ui, sans-serif;
  color: var(--brand-dark);
  background: transparent;
  padding: 1.5rem;
  border-radius: 12px;
}

.hedgework-wildlife-watch .hww-hero h2 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.hedgework-wildlife-watch .hww-subtitle {
  margin: 0 0 1.5rem;
  opacity: 0.85;
}

.hedgework-wildlife-watch .hww-counts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hedgework-wildlife-watch .hww-count-tile {
  background: #fff;
  border: 2px solid var(--brand-blue);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.hedgework-wildlife-watch .hww-count-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-orange);
  line-height: 1;
}

.hedgework-wildlife-watch .hww-count-label {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.hedgework-wildlife-watch .hww-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.hedgework-wildlife-watch .hww-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(21, 49, 43, 0.08);
}

.hedgework-wildlife-watch .hww-card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.hedgework-wildlife-watch .hww-card-open:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: -3px;
}

.hedgework-wildlife-watch .hww-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.hedgework-wildlife-watch .hww-card figcaption {
  padding: 0.6rem 0.75rem 0.25rem;
  font-weight: 600;
}

.hedgework-wildlife-watch .hww-correct {
  padding: 0 0.75rem 0.75rem;
  text-align: center;
}

.hedgework-wildlife-watch .hww-correct-toggle {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  opacity: 0.8;
}

.hedgework-wildlife-watch .hww-correct-toggle:hover,
.hedgework-wildlife-watch .hww-correct-toggle:focus-visible {
  opacity: 1;
  color: var(--brand-orange);
  outline: none;
}

.hedgework-wildlife-watch .hww-correct-form {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* display:flex above would otherwise override the HTML hidden attribute */
.hedgework-wildlife-watch .hww-correct-form[hidden],
.hedgework-wildlife-watch .hww-correct-status[hidden],
.hedgework-wildlife-watch .hww-correct-toggle[hidden] {
  display: none;
}

.hedgework-wildlife-watch .hww-card-time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
}

.hedgework-wildlife-watch .hww-correct-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.hedgework-wildlife-watch .hww-correct-label input[type="text"] {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--brand-blue);
  border-radius: 6px;
}

.hedgework-wildlife-watch .hww-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hedgework-wildlife-watch .hww-correct-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hedgework-wildlife-watch .hww-correct-submit,
.hedgework-wildlife-watch .hww-correct-cancel {
  font: inherit;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.hedgework-wildlife-watch .hww-correct-submit {
  border: 0;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}

.hedgework-wildlife-watch .hww-correct-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hedgework-wildlife-watch .hww-correct-cancel {
  border: 1px solid rgba(21, 49, 43, 0.25);
  background: #fff;
  color: var(--brand-dark);
}

.hedgework-wildlife-watch .hww-correct-status,
.hedgework-wildlife-watch .hww-correct-thanks {
  margin: 0;
  font-size: 0.85rem;
}

.hedgework-wildlife-watch .hww-correct-status.is-error {
  color: #a33;
}

.hedgework-wildlife-watch .hww-correct-thanks {
  color: var(--brand-dark);
  font-weight: 600;
}

.hedgework-wildlife-watch .hww-loading,
.hedgework-wildlife-watch .hww-empty {
  opacity: 0.75;
}

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

.hww-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(21, 49, 43, 0.88);
}

.hww-lightbox[hidden] {
  display: none;
}

.hww-lightbox-figure {
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hww-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.hww-lightbox-caption {
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.hww-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.hww-lightbox-close:hover,
.hww-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}
