/* ---- Archive additions (static replacements for WordPress.com dynamic features) ---- */
html.wf-active, .wf-active body { font-family: "EB Garamond", serif; }
.footer-wrap .archive-note { margin: 0; font-style: italic; color: #626e7a; font-size: 0.9em; }
/* classic Jetpack tiled galleries -> justified flex gallery */
.archive-gallery { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 1.5em; }
.archive-gallery::after { content: ""; flex-grow: 999999; }
.archive-gallery figure { margin: 0; position: relative; overflow: hidden; }
.archive-gallery figure a { display: block; height: 100%; }
.archive-gallery figure img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.archive-gallery.type-square figure, .archive-gallery.type-circle figure { flex: 1 1 30%; aspect-ratio: 1 / 1; max-width: 50%; }
.archive-gallery.type-circle figure img { border-radius: 50%; }
.archive-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 4px 8px; }
/* Jetpack block tiled gallery (layout css is in blocks.css) */
.wp-block-jetpack-tiled-gallery .tiled-gallery__item a { display: block; }
/* Jetpack slideshow -> lightweight scroll-snap slideshow */
.archive-slideshow { position: relative; margin: 0 auto 1.5em; background: #000; }
.archive-slideshow .as-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.archive-slideshow .as-track::-webkit-scrollbar { display: none; }
.archive-slideshow .as-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
.archive-slideshow .as-slide img { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.archive-slideshow .as-slide figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 14px; padding: 6px 12px; text-align: center; }
.archive-slideshow button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 44px; cursor: pointer; padding: 0; z-index: 2; }
.archive-slideshow .as-prev { left: 8px; } .archive-slideshow .as-next { right: 8px; }
.archive-slideshow .as-count { position: absolute; top: 8px; right: 12px; color: #fff; font-size: 13px; background: rgba(0,0,0,.45); padding: 1px 8px; border-radius: 10px; z-index: 2; }
/* local VideoPress copies */
.archive-video video { width: 100%; height: auto; max-height: 85vh; background: #000; display: block; margin: 0 auto; }
.archive-video .archive-video-note { font-size: 13px; color: #626e7a; text-align: center; margin: .3em 0 0; }
/* lightbox */
#lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100000; display: none; align-items: center; justify-content: center; flex-direction: column; }
#lb.on { display: flex; }
#lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,.6); }
#lb .lb-cap { color: #ddd; font-size: 15px; margin-top: 10px; max-width: 90vw; text-align: center; }
#lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; padding: 10px 18px; line-height: 1; }
#lb .lb-close { top: 6px; right: 10px; } #lb .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); } #lb .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
#lb .lb-orig { position: absolute; bottom: 10px; right: 16px; color: #aaa; font-size: 13px; }
.comment-list .comment-body .reply { display: none; }
.wp-embedded-content { border-left: 3px solid #ccc; padding-left: 1em; }
