/* Fotogalerie */
.fg-grid { display: grid; gap: 10px; margin: 1em 0; }
.fg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.fg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.fg-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px) { .fg-cols-4, .fg-cols-5, .fg-cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .fg-cols-3, .fg-cols-4, .fg-cols-5, .fg-cols-6 { grid-template-columns: repeat(2, 1fr); } }

.fg-item {
    position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1;
    border-radius: 10px; background: rgba(128, 128, 128, .2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.fg-item:hover, .fg-item:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.fg-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 6px;
    color: #fff; font-size: .85em; line-height: 1.3; text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    overflow-wrap: anywhere;
}
.fg-cap small { opacity: .85; margin-left: .3em; }
.fg-desc { margin: .5em 0 1em; }
.fg-back { margin: 0 0 .5em; }
.fg-pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 1em 0; }
.fg-pager a, .fg-pager .fg-cur { padding: 4px 10px; border: 1px solid rgba(128, 128, 128, .5); border-radius: 6px; text-decoration: none; }
.fg-pager .fg-cur { font-weight: 700; background: rgba(128, 128, 128, .25); }

/* Box „Neue Fotos“ */
.fg-box .fg-grid { gap: 6px; margin: 0 0 .5em; }
.fg-box .fg-item { border-radius: 8px; }
.fg-more { margin: 0; font-size: .9em; }

/* Lightbox */
.fg-lb { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.fg-lb.fg-open { display: flex; }
.fg-lb-fig { margin: 0; max-width: 94vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; }
.fg-lb-img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.fg-lb-text { color: #fff; text-align: center; margin-top: 10px; max-width: 80ch; font-size: .95em; line-height: 1.4; }
.fg-lb-text strong { display: block; }
.fg-lb-count { opacity: .7; font-size: .85em; }
.fg-lb button {
    position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .15);
    width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 44px; padding: 0;
}
.fg-lb button:hover, .fg-lb button:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; }
.fg-lb-close { top: 14px; right: 14px; }
.fg-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.fg-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .fg-lb-prev, .fg-lb-next { top: auto; bottom: 14px; transform: none; } }
