/* light-theme: manual
   nexcraft.html real screenshots: the floating spawn island in the hero and
   the "Einblicke in Genblock" gallery with a lightbox (nexcraft-screens.js). */

/* --- hero: spawn island floating in space, logo above it --- */
.nexcraft-hero .nexcraft-hero-logo.has-island { max-width: 470px; padding-top: 4.5rem; flex-direction: column; }
.nexcraft-hero-logo.has-island .nc-island {
  max-width: none;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(2, 6, 23, 0.8)) drop-shadow(0 0 40px rgba(16, 185, 129, 0.18));
  animation: ncIsland 7s ease-in-out infinite;
}
@keyframes ncIsland {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}
.nexcraft-hero-logo.has-island .nc-island-logo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 26%;
  max-width: 116px;
  z-index: 2;
  height: auto;
  translate: -50% 0;
  animation: logo-float 4s ease-in-out infinite;
}

/* --- gallery --- */
/* 6-column grid: big shot (4 cols, 2 rows) + two stacked on the right,
   then two medium ones below */
.nc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}
.nc-gallery-grid .nc-shot { grid-column: span 3; }
.nc-gallery-grid .nc-shot:first-child { grid-column: span 4; grid-row: span 2; }
.nc-gallery-grid .nc-shot:nth-child(2),
.nc-gallery-grid .nc-shot:nth-child(3) { grid-column: span 2; }
.nc-gallery-grid .nc-shot:first-child { grid-template-rows: 1fr auto; }
.nc-gallery-grid .nc-shot:first-child .nc-shot-btn img { aspect-ratio: auto; }
.nc-shot { margin: 0; display: grid; gap: 0.5rem; }
.nc-shot-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(var(--nexcraft-green-rgb, 16, 185, 129), 0.3);
  border-radius: 18px;
  overflow: hidden;
  background: #0b1222;
  cursor: zoom-in;
}
.nc-shot-btn img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nc-shot-btn:hover img, .nc-shot-btn:focus-visible img { transform: scale(1.04); }
.nc-shot-btn::after {
  content: "\f00e"; /* magnifying glass plus (Font Awesome) */
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.7);
  color: #fff;
  font: 900 0.85rem "Font Awesome 6 Free";
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nc-shot-btn:hover::after, .nc-shot-btn:focus-visible::after { opacity: 1; }
.nc-shot figcaption { color: var(--nx-muted, #94a3b8); font-size: 0.85rem; font-weight: 600; }

/* --- lightbox --- */
.nc-lightbox {
  max-width: min(1400px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: visible;
}
.nc-lightbox::backdrop { background: rgba(2, 6, 23, 0.88); backdrop-filter: blur(6px); }
.nc-lightbox[open] { animation: ncZoom 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ncZoom { from { opacity: 0; transform: scale(0.96); } }
.nc-lightbox img { display: block; max-width: 100%; max-height: 84vh; border-radius: 16px; }
.nc-lightbox p { margin: 0.6rem 0 0; color: #e2e8f0; text-align: center; font-weight: 600; }
.nc-lightbox-close {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nc-gallery-grid { grid-template-columns: 1fr; }
  .nc-gallery-grid .nc-shot,
  .nc-gallery-grid .nc-shot:first-child,
  .nc-gallery-grid .nc-shot:nth-child(2),
  .nc-gallery-grid .nc-shot:nth-child(3) { grid-column: auto; grid-row: auto; }
  .nc-gallery-grid .nc-shot:first-child .nc-shot-btn img { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-island, .nexcraft-hero-logo.has-island .nc-island-logo, .nc-lightbox[open] { animation: none; }
  .nc-shot-btn img { transition: none; }
}

html[data-theme="light"] .nc-island { filter: drop-shadow(0 24px 30px rgba(15, 23, 42, 0.25)); }
html[data-theme="light"] .nc-shot figcaption { color: #475569; }
