.ibb-reviews-wrapper {
  margin-bottom: 20px;
}

.ibb-no-reviews {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.ibb-reviews {
  display: grid;
  gap: 40px;
}

.ibb-review {
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.ibb-review:last-child {
  border-bottom: none;
}

.ibb-review-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ibb-review-top-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ibb-reviewer {
  font-weight: 600;
}

.ibb-rating {
  flex-shrink: 0;
}

.ibb-rating .ibb-star {
  color: #ccc;
  font-size: 16px;
}
.ibb-rating .ibb-star.filled {
  color: #f4b400;
}

.ibb-date {
  color: #666;
  font-size: 0.9em;
}

.ibb-content {
  margin-top: 12px;
}

.ibb-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ibb-thumbs img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #ddd;
  background: #fff;
}

/* Pagination */
.ibb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 0;
}

.ibb-pagination a,
.ibb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  text-decoration: none;
  color: #333;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.15s ease;
  font-size: 14px;
}

.ibb-pagination a:hover {
  border-color: #999;
  background: #f9f9f9;
}

.ibb-pagination-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.ibb-pagination-info {
  border: none;
  color: #666;
  font-size: 13px;
  min-width: auto;
}

/* Specific selectors for previous and next page buttons to set padding to zero */
.ibb-pagination a:first-of-type,
.ibb-pagination a:last-of-type,
.ibb-pagination .ibb-pagination-disabled:first-of-type,
.ibb-pagination .ibb-pagination-disabled:last-of-type {
  padding: 0;
}

/* Lightbox */
/* Ensure hidden attribute and aria-hidden truly hide the overlay, regardless of theme CSS */
.ibb-lightbox[hidden],
.ibb-lightbox[aria-hidden="true"] { display: none !important; }
.ibb-no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}
.ibb-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  touch-action: none !important;
}

/* Lightbox background variants */
.ibb-lightbox.ibb-lightbox-blur {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ibb-lightbox.ibb-lightbox-black {
  background: rgba(0,0,0,0.9);
}

.ibb-lightbox.ibb-lightbox-white {
  background: rgba(255,255,255,0.9);
}

.ibb-lightbox .ibb-lightbox-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ibb-lightbox .ibb-lightbox-inner img {
  max-width: 92vw;
  max-height: 88vh;
  max-height: 88dvh;
  display: block;
  object-fit: contain;
}
.ibb-lightbox-close,
.ibb-lightbox-prev,
.ibb-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 42px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  z-index: 100000;
}
.ibb-lightbox-close {
  top: 16px;
  right: 16px;
}
.ibb-lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.ibb-lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* White background variant buttons */
.ibb-lightbox-white .ibb-lightbox-close,
.ibb-lightbox-white .ibb-lightbox-prev,
.ibb-lightbox-white .ibb-lightbox-next {
  background: rgba(0,0,0,0.15);
  color: #000;
}

/* Loading spinner */
.ibb-lightbox.ibb-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ibb-spin 0.8s linear infinite;
  z-index: 100001;
}

.ibb-lightbox-white.ibb-loading::after {
  border-color: rgba(0,0,0,0.2);
  border-top-color: #000;
}

@keyframes ibb-spin {
  to { transform: rotate(360deg); }
}

/* Smooth image transitions */
.ibb-lightbox .ibb-lightbox-inner img {
  transition: opacity 0.2s ease-in-out;
}
