.gallery-lightbox__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-lightbox__hero { padding: 0; border: none; cursor: pointer; display: block; height: 26rem; }
.gallery-lightbox__hero img { width: 100%; height: 100%; object-fit: cover; }
.gallery-lightbox__thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 0.5rem; height: 26rem; }
.gallery-lightbox__thumb { position: relative; padding: 0; border: none; cursor: pointer; display: block; height: 100%; overflow: hidden; }
.gallery-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-lightbox__count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: oklch(15% 0.01 50 / 0.55);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
}
.gallery-lightbox__count svg { width: 1.2rem; height: 1.2rem; }

.gallery-lightbox__overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(10% 0.01 50 / 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox__overlay[hidden] { display: none; }
.gallery-lightbox__overlay-img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  background: oklch(100% 0 0 / 0.15);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox__close { top: var(--space-md); right: var(--space-md); }
.gallery-lightbox__prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: var(--space-md); top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav { position: absolute; bottom: var(--space-md); left: 50%; transform: translateX(-50%); color: #fff; font-size: var(--text-sm); }

@media (max-width: 700px) {
  .gallery-lightbox__grid { grid-template-columns: 1fr; }
  .gallery-lightbox__hero { height: 16rem; }
  .gallery-lightbox__thumbs { grid-auto-flow: column; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); height: 6rem; }
}
