/* Photo gallery (field_kelios_nuotraukos) — thumbnail grid + lightbox. */

.atts-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.atts-gallery-item a {
  display: block;
  border: 1px solid #ccc;
  background: #fff;
  line-height: 0;
}
.atts-gallery-item a:hover { border-color: #0071b3; }
.atts-gallery-item img { display: block; width: auto; height: auto; }

/* ---- Listing teaser cover (single image) ---- */
.atts-gallery-cover { float: right; margin: 4px 0 8px 16px; }
.atts-gallery-cover img { display: block; max-width: 250px; height: auto; border: 1px solid #ccc; }

/* ---- Lightbox overlay ---- */
.atts-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.atts-lightbox.open { display: flex; }
.atts-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  background: #fff;
}
.atts-lb-close,
.atts-lb-prev,
.atts-lb-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 0;
  font-size: 2em;
  line-height: 1;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 4px;
}
.atts-lb-close:hover,
.atts-lb-prev:hover,
.atts-lb-next:hover { background: rgba(0, 0, 0, 0.7); }
.atts-lb-close { top: 14px; right: 18px; }
.atts-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.atts-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.atts-lb-count { position: absolute; bottom: 16px; color: #fff; font-size: 0.95em; }
