/**
 * Smart LazyLoad Pro — Front-End Styles
 * Minimal footprint: only what's needed for lazy-load UX.
 */

/* Lazy images: prevent layout shift */
img.sll-lazy {
  display: block;
  min-height: 1px;
}

/* CSS background lazy holder */
.sll-lazy-bg {
  background-color: #f0f0f0; /* fallback while loading */
  background-size: cover;
  background-position: center;
}

/* Loaded state */
img.sll-loaded {
  opacity: 1 !important;
}

/* Error state */
img.sll-error {
  opacity: 0.4;
  filter: grayscale(1);
}

/* Video iframe wrapper — maintains 16:9 aspect ratio */
.sll-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.sll-video-wrapper iframe.sll-lazy,
.sll-video-wrapper iframe.sll-loaded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Print: show all images */
@media print {
  img.sll-lazy[data-src] {
    content: attr(data-src);
  }
}
