/* ═══ Συλλογές εικόνων (native [gallery] του WordPress) ═══ */
.xgal { margin: 30px 0; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.xgal.cols-1 { grid-template-columns: 1fr; }
.xgal.cols-2 { grid-template-columns: repeat(2, 1fr); }
.xgal.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Με 5+ εικόνες, η πρώτη παίρνει τη σκηνή. */
.xgal.mosaic .xgal-item:first-child { grid-column: span 2; grid-row: span 2; }

.xgal-item { position: relative; display: block; padding: 0; margin: 0; border: 0; border-radius: 8px; overflow: hidden;
             background: var(--bg-soft); cursor: zoom-in; aspect-ratio: 3/2; }
.xgal-item img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform 0.35s ease; }
.xgal-item:hover img { transform: scale(1.04); }
.xgal-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.xgal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 7, 16, 0.25), transparent 45%); opacity: 0; transition: opacity 0.25s; }
.xgal-item:hover::after { opacity: 1; }
.xgal-cap { display: none; }

.xgal-foot { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); margin-top: -2px; }

/* ── Lightbox ── */
.xgal-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 6, 12, 0.94); backdrop-filter: blur(4px);
           display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.xgal-lb[hidden] { display: none; }
.xgal-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.xgal-stage img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 8px; display: block; }
.xgal-stage figcaption { color: rgba(255, 255, 255, 0.8); font-size: 14px; text-align: center; max-width: 70ch; }
.xgal-x, .xgal-nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer;
                     width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.xgal-x:hover, .xgal-nav:hover { background: rgba(255, 255, 255, 0.22); }
.xgal-x:focus-visible, .xgal-nav:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.xgal-x { top: 16px; right: 16px; }
.xgal-nav.prev { left: 12px; }
.xgal-nav.next { right: 12px; }
.xgal-x svg, .xgal-nav svg { width: 22px; height: 22px; }
.xgal-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.75);
              font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

@media (max-width: 700px) {
	.xgal { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	.xgal.mosaic .xgal-item:first-child { grid-column: span 2; grid-row: span 1; }
	.xgal-lb { padding: 56px 12px 44px; }
	.xgal-nav { bottom: 14px; top: auto; }
	.xgal-nav.prev { left: 24%; }
	.xgal-nav.next { right: 24%; }
	.xgal-stage img { max-height: 68vh; }
}
@media (prefers-reduced-motion: reduce) {
	.xgal-item img { transition: none; }
	.xgal-item:hover img { transform: none; }
}
