/*
 * vogels.css — Kaartjesraster voor de vogelfamilies en familiepagina's
 */


/* ---------------------------------------------------------------------------
   Familieraster
--------------------------------------------------------------------------- */
.familie-raster,
.soort-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ---------------------------------------------------------------------------
   Familiekaartje
--------------------------------------------------------------------------- */
.kaartje,
.soort-kaartje {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
  aspect-ratio: 1;
}

.kaartje:has(.kaartje-link):hover,
.soort-kaartje:has(.soort-kaartje-link):hover {
  box-shadow: none;
}



/* ---------------------------------------------------------------------------
   Visual (foto of placeholder)
--------------------------------------------------------------------------- */
.kaartje-visual,
.soort-kaartje-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #ede8e0;
  overflow: hidden;
}

.kaartje-foto,
.soort-kaartje-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.kaartje:has(.kaartje-link):hover .kaartje-foto,
.soort-kaartje:has(.soort-kaartje-link):hover .soort-kaartje-foto {
  transform: scale(1.04);
}

.kaartje-placeholder,
.soort-kaartje-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .kaartje-placeholder-icoon {
  width: 3rem;
  height: 3rem; */
/* opacity: 0.35;
  color: #ed111f; */
/* width: 30px;
  height: 30px;
} */

/* symbol styling */
.kaartje-placeholder-icoon svg,
.soort-kaartje-placeholder-icoon svg {
  fill: #FFFFFF;
  stroke: none;
  color: #000000;
  width: 30px;
  height: 30px;
  opacity: 0.5;
}


/* ---------------------------------------------------------------------------
   Badge (foto-indicator, rechtsboven)
--------------------------------------------------------------------------- */
.kaartje-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.kaartje-badge--actief {
  background: #5a8a3c;
}

.kaartje-badge--leeg {
  background: #ff8da6;
}

/* .soort-kaartje-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  line-height: 1.4;
} */
.soort-kaartje-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------------------------------------------------------------------------
   Tekst
--------------------------------------------------------------------------- */
.kaartje-body,
.soort-kaartje-body {
  padding: 0.5rem 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1;
}

.kaartje-naam,
.soort-kaartje-naam {
  font-size: 1rem;
  font-weight: 700;
  color: #2c2118;
  margin: 0;
  line-height: 1.2;
}

.kaartje-latijn,
.soort-kaartje-latijn {
  font-style: italic;
  font-size: 0.8rem;
  color: #7a6a54;
  margin: 0;
}

.kaartje-teller,
.soort-kaartje-geen-fotos,
.teller-scheiding {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #2c2118;
}

/* .soort-kaartje-geen-fotos,
.teller-totaal {
  font-size: 0.85rem;
  color: #7a6a54;
  margin: 0.5rem 0 0;
} */

/* .teller-aanwezig {
  font-weight: 700;
} */

/* ---------------------------------------------------------------------------
Teller+voortgangsbalk
--------------------------------------------------------------------------- */

.bar-outer {
  width: 100%;
  height: 5px;
  background: #e5e7eb;
  border-radius: 99px;
  position: relative;
  margin-top: 5px;
}

.bar-inner {
  height: 100%;
  border-radius: 99px;
  background: #6abf4b;
  position: absolute;
  left: 0;
  top: 0;
}

/* .bar-label-left {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  z-index: 1;
} */

/* .bar-label-right {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
  z-index: 1;
} */



/* ---------------------------------------------------------------------------
   Klikbare overlay-link
--------------------------------------------------------------------------- */
.kaartje-link,
.soort-kaartje-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px;
  outline: none;
}

h1,
.kaartje-naam,
.soort-kaartje-naam {
  hyphens: manual;
  -webkit-hyphens: manual;
}

.kaartje-link:focus-visible,
.soort-kaartje-link:focus-visible {
  outline: 3px solid #5a8a3c;
  outline-offset: 2px;
}

.latijn-groot {
  font-style: italic;
}


.soort-kaartje-slideshow-icoon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* changes photoswipe to order correctly */
.soort-kaartje--slideshow a.photo-card__link:first-of-type {
  z-index: 2;
}

/* ---------------------------------------------------------------------------
   Geen data fallback
--------------------------------------------------------------------------- */
.familie-geen-data {
  color: #7a6a54;
  font-style: italic;
}



.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.photo-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;

}

.photo-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-thumb-bg, #f0ede8);
}

.photo-card__media img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;

}

.photo-card:hover .photo-card__media img {
  transform: scale(1.04);
}

/* .photo-card:hover .photo-card__media {
  background-color: transparent !important;
} */

.photo-card__body {
  padding: 0.6rem 0.2rem 0;
}

.photo-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-transform: capitalize;
}

.photo-card__date,
.photo-card__desc {
  font-size: 0.78rem;
  color: var(--color-muted, #888);
  margin: 0.2rem 0 0;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 480px) {

  .familie-raster,
  .soort-raster,
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.875rem;
  }

}