/* Styles for pieces site.js adds (not covered by the main stylesheets). */
[hidden] { display: none !important; }

/* Reviews grid: the original used JS to switch layouts; do it with CSS. */
@media (max-width: 1023px) {
  [data-rc-reviews] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #testimonials [aria-label="Previous page"],
  #testimonials [aria-label="Next page"] { position: static; transform: none; margin: 16px 8px 0; }
  #testimonials .relative.w-full { text-align: center; }
}
@media (max-width: 767px) {
  [data-rc-reviews] { grid-template-columns: minmax(0, 1fr); }
}
[data-rc-reviews] > div { text-align: left; }

/* Lightbox */
.rc-lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92); padding: 48px 16px;
}
.rc-lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.rc-lightbox img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: 6px; }
.rc-lightbox figcaption { color: #fff; font-size: 15px; line-height: 1.5; margin-top: 12px; max-width: 680px; text-align: center; white-space: pre-line; }
.rc-lightbox figcaption a { color: #fff; text-decoration: underline; }
.rc-lightbox button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 28px; line-height: 44px; cursor: pointer; }
.rc-lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.rc-lb-close { top: 16px; right: 16px; }
.rc-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rc-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
