/*
Theme Name: Fauna Flora Mineralia
Version: 1.0
Description: Původní vzhled a struktura převedené do WordPressu.
*/

#naviset_dropdown ul ul{display:none}#naviset_dropdown li:hover>ul,#naviset_dropdown li:focus-within>ul{display:block}#naviset_dropdown ul{list-style:none}#naviset_dropdown>ul>li{float:left}#naviset_dropdown li{position:relative}#naviset_dropdown ul ul{position:absolute;z-index:20;background:#fff;min-width:170px}#left-sidebar .current-menu-item>a{font-weight:bold}.main-content img{max-width:100%;height:auto}dialog::backdrop{background:rgba(0,0,0,.75)}

/* Match the original sidebar hierarchy without repeating the active root decoration. */
#left-sidebar ul.sub-menu{margin:0;padding:0;list-style:none}
#left-sidebar .sub-menu li{margin-left:42px}
#left-sidebar .sub-menu a{box-sizing:border-box;white-space:normal;overflow-wrap:break-word;height:auto;min-height:26px;line-height:26px}

/* Gallery cards: each thumbnail is centered in a consistent image area. */
.main-content table[summary="gallery-container"]{width:100%;border:0;border-collapse:collapse}
.main-content table[summary="gallery-container"] td{padding:0;border:0}
.main-content .mgallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;padding:12px 0;align-items:start}
.main-content .mw_gallery_full_image,.main-content .mw_gallery_simple_image{float:none;width:auto;height:auto;min-width:0}
.main-content .mgallery .mw_gallery_imglink{display:flex;flex-direction:column;float:none;width:auto;height:auto;margin:0;padding:10px;background:#f7f8f4;border:1px solid #e2e7db;border-radius:10px;overflow:hidden;box-shadow:0 2px 5px #0000000a;text-decoration:none;transition:box-shadow .2s,border-color .2s}
.main-content .mgallery .mw_gallery_imglink:hover,.main-content .mgallery .mw_gallery_imglink:focus-visible{background:#fff;border-color:#8aa075;box-shadow:0 5px 15px #00000018}
.main-content .mgallery .mw_gallery_cell{display:flex;align-items:center;justify-content:center;width:100%;height:180px;line-height:normal;overflow:hidden;background:#fff;border-radius:6px}
.main-content .mgallery .mw_gallery_cell img{display:block;float:none;margin:0!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
.main-content .mw_gallery_infobox{margin:10px 2px 2px;line-height:1.5;color:#526049;font-size:12px;text-align:center}
.main-content .imagethumbname:empty,.main-content .imagethumbsize:empty,.main-content .imagethumbdesc:empty{display:none}
/* A viewport-sized lightbox keeps the full photo centered, in either orientation. */
dialog.ffm-lightbox{position:fixed;inset:0;box-sizing:border-box;margin:0;padding:0;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:rgba(13,19,13,.97);color:#fff;overflow:hidden}
dialog.ffm-lightbox[open]{display:grid;grid-template-rows:58px minmax(0,1fr) auto}
.ffm-lightbox::backdrop{background:#101510}
.ffm-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:#dce5d7;font:14px/1.4 Arial,sans-serif}
.ffm-lightbox button{cursor:pointer;border:1px solid #ffffff30;background:#ffffff0d;color:#fff;border-radius:8px;font-family:Arial,sans-serif}
.ffm-lightbox button:hover,.ffm-lightbox button:focus-visible{background:#ffffff22;outline:2px solid #a8c395;outline-offset:2px}
.ffm-lightbox-close{padding:8px 14px;font-size:14px}.ffm-lightbox-close span{font-size:22px;margin-left:8px;vertical-align:middle}
.ffm-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;padding:12px 76px;box-sizing:border-box}
.ffm-lightbox-image{display:block;width:100%;height:100%;object-fit:contain;margin:0;min-height:0}
.ffm-lightbox-prev,.ffm-lightbox-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:60px;font-size:42px;line-height:1}.ffm-lightbox-prev{left:18px}.ffm-lightbox-next{right:18px}.ffm-lightbox button[hidden]{display:none}
.ffm-lightbox-caption{box-sizing:border-box;padding:14px 24px 20px;max-height:18vh;overflow:auto;text-align:center;font:14px/1.6 Arial,sans-serif;color:#e7eddf}
@media(max-width:600px){.ffm-lightbox-stage{padding:8px 42px}.ffm-lightbox-prev,.ffm-lightbox-next{width:32px;height:48px;font-size:32px}.ffm-lightbox-prev{left:4px}.ffm-lightbox-next{right:4px}.ffm-lightbox-toolbar{padding:0 12px}.ffm-lightbox-caption{padding:10px 12px 16px}}
