/* Rebuilt to match the supplied MMRGB source screenshots */
:root{color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#000;color:#eee;font:12px/1.5 Arial,"Microsoft Yahei",sans-serif}
body{overflow-x:hidden}
a{color:inherit;text-decoration:none}
a:hover{color:#fff}
.wp{width:min(1380px,calc(100% - 24px));margin:0 auto}
.source-topbar{height:42px;background:#080808;border-bottom:1px solid #111;position:relative;z-index:50}
.source-topbar-inner{height:42px;display:flex;align-items:center;padding:0 12px;gap:12px}
.source-logo{display:flex;align-items:center;gap:5px;min-width:62px;color:#fff}
.logo-mark{width:22px;height:22px;display:grid;place-items:center;border-radius:5px;background:linear-gradient(135deg,#fff 0 42%,#e84c64 43% 65%,#2496dc 66%);color:#111;font-size:13px;font-weight:900;text-shadow:none}
.logo-name{font-size:10px;font-weight:700;letter-spacing:-.3px}
.category-menu{height:42px;display:flex;align-items:center;gap:5px;color:#bbb;font-size:10px;position:relative;cursor:pointer}
.menu-caret{font-size:9px;color:#888}
.category-dropdown{display:none;position:absolute;top:40px;left:0;min-width:150px;padding:6px;background:#181818;border:1px solid #333;box-shadow:0 6px 20px #000;z-index:100}
.category-menu:hover .category-dropdown,.category-menu:focus-within .category-dropdown{display:block}
.category-dropdown a{display:block;padding:7px 9px;color:#bbb}
.category-dropdown a:hover{background:#2e2e2e;color:#fff}
.topbar-spacer{flex:1}
.top-search{height:24px;display:flex;align-items:center;gap:0}
.top-search input{width:0;opacity:0;padding:0;border:0;background:#222;color:#fff;outline:0;transition:width .18s,opacity .18s}
.top-search:focus-within input,.top-search:hover input{width:145px;opacity:1;padding:0 7px;height:24px}
.top-search button,.menu-toggle{height:24px;min-width:25px;padding:0 5px;border:0;border-radius:2px;background:#242424;color:#aaa;font-size:15px;cursor:pointer}
.menu-toggle{font-size:17px;background:transparent;color:#258bd8}
.page-wrap{padding-top:12px}
#ct{min-height:70vh}
.source-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 auto 8px;padding:0 10px;min-height:38px}
.source-page-heading h1{margin:0;color:#eee;font-size:16px;line-height:22px;font-weight:500}
.source-page-heading p{margin:2px 0 0;color:#777;font-size:11px}
.sort-select{width:74px;height:23px;padding:0 5px;border:1px solid #444;border-radius:0;background:#333;color:#eee;font-size:10px;outline:0}
.sort-select-wrap{flex:none}
.cards.photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0 auto 12px;overflow:visible;width:calc(100% - 18px);max-width:1380px}
.cards.photo-grid .card{float:none;width:auto;min-width:0;margin:0;overflow:hidden;opacity:1}
.cards.photo-grid .card-wrapper{margin:0;background:#101010}
.cards.photo-grid .card-figure{position:relative;width:100%;aspect-ratio:2/3;padding:0;overflow:hidden;background:#161616 center center/cover no-repeat}
.cards.photo-grid .card-figure:before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.03) 55%,rgba(0,0,0,.62) 100%);pointer-events:none}
.cards.photo-grid .card-figure .card-permalink{position:absolute;inset:0;z-index:1}
.cards.photo-grid .card-figure .hover{position:absolute;inset:0;z-index:2;left:0;opacity:0;pointer-events:none;background:rgba(0,0,0,.15)}
.cards.photo-grid .card-figure:hover .hover{opacity:1;pointer-events:auto}
.cards.photo-grid .card-figure .hover .group{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:auto;height:auto;margin:0}
.cards.photo-grid .card-figure .hover .btn{display:inline-block;padding:7px 10px;height:auto;line-height:14px}
.cover-caption{position:absolute;z-index:3;left:5px;right:5px;bottom:3px;pointer-events:none;text-shadow:0 1px 2px #000}
.cover-stats{font-size:9px;line-height:12px;color:#eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cover-title{display:block;color:#fff;font-size:9px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:auto}
.no-cover{position:absolute;inset:0;display:grid;place-items:center;color:#777;font-size:18px}
.empty-state{padding:30px;text-align:center;color:#888}
.result-summary{margin:5px 10px 10px;color:#888}
.pagination{display:flex;flex-direction:column;align-items:center;gap:9px;margin:10px auto 28px}
.page-numbers,.page-arrows{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap}
.page-numbers a,.page-numbers span,.page-arrows a{min-width:21px;height:21px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;background:#333;color:#bbb;font-size:10px;border:1px solid #414141}
.page-numbers a.current{background:#238bd8;border-color:#238bd8;color:#fff}
.page-numbers a:hover,.page-arrows a:hover{background:#238bd8;color:#fff}
.page-arrows a{min-width:58px}
.page-arrows a.disabled{opacity:.45;pointer-events:none}
.detail-heading{padding:0 10px 9px;margin-bottom:7px;border-bottom:1px solid #171717}
.detail-heading h1{margin:0 0 3px;color:#eee;font-size:14px;font-weight:500;line-height:21px}
.detail-subline{color:#888;font-size:10px;line-height:16px}
.detail-tabs{display:flex;gap:20px;height:29px;align-items:center;border-bottom:1px solid #222;margin-top:5px;color:#aaa;font-size:11px}
.detail-tabs span{height:29px;display:flex;align-items:center}
.detail-tabs .active{color:#fff;border-bottom:2px solid #268ddd}
.detail-tags{display:flex;gap:4px;flex-wrap:wrap;padding:7px 0 5px}
.detail-tags a{padding:3px 7px;background:#248a5a;color:#eafff2;font-size:9px;line-height:13px}
.detail-tags a:hover{background:#2da66c}
.detail-meta{display:flex;gap:14px;color:#777;font-size:9px;padding:2px 0}
.photo-album{width:calc(100% - 20px);max-width:1380px;margin:0 auto 20px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#181818}
.album-open{display:block;position:relative;overflow:hidden;min-width:0;aspect-ratio:1/1;background:#080808;line-height:0}
.album-thumb{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;transition:opacity .15s}
.album-open:hover .album-thumb{opacity:.82}
.expand-gallery{display:flex;align-items:center;justify-content:center;min-height:100%;border:0;background:#278bdc;color:#fff;font-size:12px;cursor:pointer}
#ft{padding:18px 10px 24px;margin-top:20px;color:#777;text-align:center;font-size:9px;line-height:1.6}
.footer-inner{margin:0 auto}
.detail-panel,.bm{border:0;background:transparent}
.search-page-form{display:flex;max-width:500px;margin:15px auto}
.search-page-form input{flex:1;min-width:0;height:34px;background:#222;border:1px solid #444;color:#fff;padding:0 10px}
.search-page-form button{height:34px;border:0;background:#258bd8;color:#fff;padding:0 15px}
.agency-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.agency-list a{padding:8px;background:#202020;color:#bbb}
.notice-panel{padding:15px;color:#aaa}
@media(max-width:1100px){
 .cards.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .photo-album{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:760px){
 .wp{width:calc(100% - 12px)}
 .source-topbar,.source-topbar-inner{height:38px}
 .source-topbar-inner{padding:0 8px;gap:9px}
 .category-menu{height:38px}
 .page-wrap{padding-top:9px}
 .source-page-heading{padding:0 6px}
 .source-page-heading h1{font-size:14px}
 .cards.photo-grid{width:calc(100% - 8px);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px}
 .cover-title,.cover-stats{font-size:8px}
 .photo-album{width:calc(100% - 8px);grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}
 .detail-heading{padding:0 6px 7px}
 .detail-heading h1{font-size:13px}
 .agency-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .page-numbers a{min-width:19px;height:20px;padding:0 4px}
}
@media(max-width:420px){
 .cards.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .photo-album{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Functional right-side navigation drawer */
.drawer-backdrop[hidden]{display:none!important}
.drawer-backdrop{position:fixed;inset:0;z-index:900;background:rgba(0,0,0,.68);opacity:0;transition:opacity .22s ease}
.site-drawer{position:fixed;z-index:901;top:0;right:0;width:min(340px,88vw);height:100vh;height:100dvh;overflow-y:auto;background:#151515;border-left:1px solid #333;box-shadow:-12px 0 36px rgba(0,0,0,.45);transform:translateX(105%);visibility:hidden;transition:transform .24s ease,visibility .24s ease;padding:0 15px 24px}
body.drawer-open{overflow:hidden}
body.drawer-open .drawer-backdrop{opacity:1}
body.drawer-open .site-drawer{transform:translateX(0);visibility:visible}
.drawer-header{height:52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #333;color:#eee;font-size:14px}
.drawer-close{width:32px;height:32px;border:0;background:#292929;color:#ddd;font-size:24px;line-height:1;cursor:pointer}
.drawer-nav{display:flex;flex-direction:column;padding:8px 0}
.drawer-nav a{display:block;padding:10px 8px;border-bottom:1px solid #252525;color:#bbb;font-size:12px}
.drawer-nav a:hover{background:#242424;color:#fff}
.drawer-search{display:flex;gap:5px;margin-top:12px}
.drawer-search input{flex:1;min-width:0;height:34px;padding:0 9px;border:1px solid #444;background:#222;color:#fff;outline:0}
.drawer-search button{height:34px;padding:0 14px;border:0;background:#258bd8;color:#fff;cursor:pointer}
.menu-toggle[aria-expanded="true"]{color:#fff;background:#258bd8}

/* V9: isolate drawer from source theme's global nav/link rules */
aside#siteDrawer.site-drawer{
  display:block!important;position:fixed!important;top:0!important;right:0!important;left:auto!important;
  width:320px!important;max-width:88vw!important;height:100vh!important;height:100dvh!important;
  margin:0!important;padding:0 15px 24px!important;overflow-x:hidden!important;overflow-y:auto!important;
  box-sizing:border-box!important;background:#151515!important;border-left:1px solid #333!important;
  z-index:10002!important;float:none!important;clear:both!important;
  transform:translate3d(105%,0,0)!important;visibility:hidden!important;
  transition:transform .24s ease,visibility .24s ease!important;
}
body.drawer-open aside#siteDrawer.site-drawer{
  transform:translate3d(0,0,0)!important;visibility:visible!important;
}
#siteDrawer .drawer-header{display:flex!important;width:100%!important;height:52px!important;align-items:center!important;justify-content:space-between!important;white-space:normal!important}
#siteDrawer nav.drawer-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;float:none!important;overflow:visible!important;white-space:normal!important;padding:8px 0!important;margin:0!important}
#siteDrawer nav.drawer-nav a{display:block!important;float:none!important;position:static!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:36px!important;line-height:18px!important;padding:9px 8px!important;margin:0!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;border-bottom:1px solid #252525!important;background:transparent!important;color:#bbb!important}
#siteDrawer .drawer-search{display:flex!important;flex-direction:row!important;width:100%!important;max-width:100%!important;gap:5px!important;margin:12px 0 0!important;white-space:normal!important}
#siteDrawer .drawer-search input{display:block!important;flex:1 1 auto!important;width:1px!important;min-width:0!important;height:34px!important;box-sizing:border-box!important}
#siteDrawer .drawer-search button{display:block!important;flex:0 0 auto!important;height:34px!important}
.drawer-backdrop{position:fixed!important;inset:0!important;z-index:10001!important}
.drawer-backdrop[hidden]{display:none!important}

/* Configurable per-site advertising placements */
.configured-ad{display:block;width:calc(100% - 20px);max-width:1380px;margin:12px auto;text-align:center;overflow:hidden}
.configured-ad a{display:inline-block;max-width:100%;color:#bbb;text-decoration:none}
.configured-ad img{display:block;max-width:100%;height:auto;margin:0 auto;border:0}
.configured-ad-home_top,.configured-ad-detail_top{margin-top:8px;margin-bottom:12px}
.configured-ad-home_bottom,.configured-ad-detail_bottom{margin-top:16px;margin-bottom:18px}

.site-logo-image{display:block;max-width:34px;max-height:28px;object-fit:contain}
.drawer-section-title{padding:12px 8px 5px;color:#777;font-size:10px;border-top:1px solid #2b2b2b;margin-top:5px}
