.aiku-project-gallery { width: 100%; margin: 0 auto; }
.aiku-project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--aiku-gallery-columns, 3), minmax(0, 1fr));
  gap: 18px;
}
.aiku-project-gallery__item {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 0; border-radius: 12px; background: #0a1f3d; cursor: zoom-in;
  text-align: left; box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.aiku-project-gallery__item img {
  display: block; width: 100%; height: 250px; object-fit: cover;
  transition: transform .25s ease; margin: 0;
}
.aiku-project-gallery__item:hover img,
.aiku-project-gallery__item:focus-visible img { transform: scale(1.04); }
.aiku-project-gallery__caption {
  display: block; position: absolute; inset: auto 0 0; padding: 30px 14px 13px;
  color: #fff; font-size: 14px; line-height: 1.35; font-weight: 600;
  background: linear-gradient(transparent, rgba(4,17,34,.88));
}
.aiku-project-gallery__lightbox {
  position: fixed; z-index: 999999; inset: 0; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(3,10,20,.92);
}
.aiku-project-gallery__lightbox[hidden] { display: none !important; }
.aiku-project-gallery__lightbox-inner { max-width: min(1200px, 96vw); max-height: 92vh; text-align: center; }
.aiku-project-gallery__lightbox img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.aiku-project-gallery__lightbox-caption { color: white; padding: 12px 40px 0; }
.aiku-project-gallery__close {
  position: fixed; top: 14px; right: 18px; border: 0; background: transparent;
  color: white; font-size: 38px; line-height: 1; cursor: pointer;
}
@media (max-width: 900px) {
  .aiku-project-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aiku-project-gallery__item img { height: 220px; }
}
@media (max-width: 560px) {
  .aiku-project-gallery__grid { grid-template-columns: 1fr; }
  .aiku-project-gallery__item img { height: 250px; }
}
