/* Galerie - výpis alb, mřížka fotek a lightbox. Součást modulu Galerie. */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.album-card { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.album-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius, 10px); }
.album-card__title { font-weight: 700; font-size: 1.1rem; }
.album-card__count { color: var(--muted, #64748b); font-size: .9rem; }
.album-card__desc { color: var(--text, inherit); font-size: .95rem; line-height: 1.45; }
.album-card:hover .album-card__title { color: var(--accent, #0d6efd); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
/* Ukázka alba v bloku má pár fotek - roztáhnou se na celou šířku. */
.block .photos { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo figcaption { font-size: .9rem; color: var(--muted, #64748b); margin-top: 4px; }
.breadcrumbs { font-size: .9rem; color: var(--muted, #64748b); }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 10, 20, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox__figure img { display: block; margin: 0 auto; max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox__figure figcaption { color: #e2e8f0; margin-top: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Album s podrobným popisem: text vlevo, fotky vpravo (větší, pod sebou ve dvou sloupcích). */
.album-detail--with-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.album-detail--with-body .photos { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); position: sticky; top: 24px; }
.album-detail__body > :first-child { margin-top: 0; }
@media (max-width: 860px) { .album-detail--with-body { grid-template-columns: 1fr; } }
