/* Avalon Weby – galerie realizací (barvy a zaoblení podle webu PH Mont & Clean) */
[data-avalon-realizace-section][hidden] { display: none !important; }
.avr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 8px 0 32px;
}
.avr-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 19px 38px rgba(0, 0, 0, .06);
  border: 1px solid #edf0f5;
}
.avr-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #0d182a;
  cursor: zoom-in;
  overflow: hidden;
}
.avr-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.avr-cover:hover img { transform: scale(1.04); }
.avr-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(13, 24, 42, .82);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}
.avr-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.avr-meta { font-size: 13px; color: #5b6475; }
.avr-title { margin: 0; font-size: 1.15em; line-height: 1.3; color: #0d182a; }
.avr-desc { margin: 0; color: #2b3445; line-height: 1.55; white-space: pre-line; }
.avr-desc--clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.avr-more {
  margin-top: auto;
  align-self: flex-start;
  background: #eaf3ff;
  color: #0d182a;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
  transition: background .2s;
}
.avr-more:hover { background: #d7e7fd; }
.avr-all { text-align: center; margin: 0 0 8px; }

/* lightbox */
.avr-noscroll, .avr-noscroll body { overflow: hidden; }
.avr-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 26, .94);
}
.avr-lb.is-open { display: flex; }
.avr-lb-fig { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.avr-lb-fig img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.avr-lb-fig figcaption { color: #e7ecf5; margin-top: 12px; font-size: 15px; text-align: center; }
.avr-lb button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 46px;
  cursor: pointer;
}
.avr-lb button:hover { background: rgba(255, 255, 255, .24); }
.avr-lb-close { top: 16px; right: 16px; }
.avr-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.avr-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.avr-lb button[hidden] { display: none; }
@media (max-width: 600px) {
  .avr-grid { grid-template-columns: 1fr; gap: 18px; }
  .avr-lb-prev, .avr-lb-next { top: auto; bottom: 18px; transform: none; }
}
