img.pnbyw-lazy-image,
.pnbyw-lazy-media {
  display:block;
  max-width:100%;
  height:auto;
  background:#f1f3f5;
}

/* Defer rendering of the sidebar subtree until it approaches the viewport. */
#right-sidebar,
#left-sidebar {
  content-visibility:auto;
  contain-intrinsic-size:auto 720px;
}

/* Keep the first sidebar panel eager; defer offscreen widget rendering individually. */
.pnbyw-sidebar-inner > .pnbyw-sidebar-lazy-widget {
  content-visibility:auto;
  contain-intrinsic-size:auto 240px;
}

.pnbyw-sidebar-lazy-slot {
  min-height:220px;
  width:100%;
  overflow:hidden;
  background:transparent;
}

.pnbyw-sidebar-lazy-placeholder {
  display:block;
  min-height:220px;
  border:1px solid #e2e6ec;
  border-radius:10px;
  background:linear-gradient(90deg,#f5f6f8 25%,#eceff3 38%,#f5f6f8 63%);
  background-size:400% 100%;
  animation:pnbyw-sidebar-lazy-pulse 1.4s ease infinite;
}

.pnbyw-sidebar-lazy-error {
  padding:14px;
  color:#8f210c;
  background:#fff7f1;
  border:1px solid #ffd2b5;
  border-radius:10px;
  font-size:12px;
}

.pnbyw-sidebar-lazy-retry {
  margin-left:8px;
  padding:4px 9px;
  border:0;
  border-radius:5px;
  color:#fff;
  background:#8f210c;
  font-size:12px;
  cursor:pointer;
}

@keyframes pnbyw-sidebar-lazy-pulse {
  0% { background-position:100% 0; }
  100% { background-position:0 0; }
}


/* Widget tema sering merender pembungkusnya sendiri, tanpa class .widget. */
.pnbyw-sidebar-inner > *,
.pnbyw-sidebar > * {
  content-visibility:auto;
  contain-intrinsic-size:auto 240px;
}

/* The language menu must escape its widget bounds when opened. */
#right-sidebar [data-pnbyw-overflow-widget="1"] {
  content-visibility:visible!important;
  contain:none!important;
  overflow:visible!important;
  position:relative!important;
  z-index:100040!important;
}

img.pnbyw-lazy-image.is-lazy,
.pnbyw-lazy-media.is-lazy {
  opacity:0;
}

img.pnbyw-lazy-image.is-loaded,
.pnbyw-lazy-media.is-loaded {
  opacity:1;
  transition:opacity .5s ease;
}

@media (prefers-reduced-motion:reduce) {
  img.pnbyw-lazy-image.is-loaded,
  .pnbyw-lazy-media.is-loaded { transition:none; }
}

