.hedgework-latest-visitor {
  --hlv-orange: #ff8c44;
  --hlv-dark: #15312b;
  --hlv-blue: #9eccde;
  --hlv-cream: #fafbfc;
  font-family: Inter, system-ui, sans-serif;
  color: var(--hlv-dark);
  max-width: 36rem;
  margin: 0 auto;
}

.hedgework-latest-visitor .hlv-card {
  margin: 0;
  background: #fff;
  border: 2px solid var(--hlv-blue);
  border-radius: 12px;
  overflow: hidden;
}

.hedgework-latest-visitor .hlv-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--hlv-cream);
  cursor: zoom-in;
}

.hedgework-latest-visitor .hlv-open:focus-visible {
  outline: 3px solid var(--hlv-orange);
  outline-offset: -3px;
}

.hedgework-latest-visitor .hlv-open img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
}

.hedgework-latest-visitor .hlv-card figcaption {
  padding: 0.85rem 1.1rem 0.95rem;
}

.hedgework-latest-visitor .hlv-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hedgework-latest-visitor .hlv-line {
    white-space: normal;
  }
}

.hedgework-latest-visitor .hlv-name {
  color: var(--hlv-orange);
  font-weight: 700;
}

.hedgework-latest-visitor .hlv-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 2px solid var(--hlv-blue);
  border-radius: 12px;
  opacity: 0.75;
}

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

.hlv-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);
}

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

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

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

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

.hlv-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;
}

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