/* What the old theme's scripts used to do, done with CSS. */
.td-module-thumb img.entry-thumb{object-fit:cover;height:auto}
.td-thumb-css{background-size:cover;background-position:center center}
.td-animation-stack .entry-thumb,.td-animation-stack .td-thumb-css{opacity:1!important}
.tdb-menu .menu-item-has-children:hover>.sub-menu,.sf-menu li:hover>ul{display:block;opacity:1;visibility:visible;top:auto}
.tdb-drop-down-search-open{display:block!important;opacity:1!important;visibility:visible!important;transform:none!important}
#td-mobile-nav,.td-menu-background{visibility:visible!important}
.td-sub-menu-open>.sub-menu{display:block}
.tdb_header_menu .tdb-menu li.tdb-menu-item-inactive{pointer-events:auto}
.tdb-menu .sub-menu{min-width:11em}

/* Phone header: the old phone theme had a 60px black bar with a small (about 98x48) logo. */
@media (max-width:767px){
.td-header-mobile-wrap .tdb-logo-img{max-height:48px;width:auto;max-width:98px}
.td-header-mobile-wrap .tdb_header_logo .tdb-logo-a{min-height:60px}
}

/* Desktop header: search drop-down. The old script stretched it to the window width,
   so the 600px panel sits right-aligned under the search icon. */
.tdb_header_search .tdb-drop-down-search{width:100vw}
.tdb_header_search .tdb-head-search-form-input,.tdb_header_search .tdb-head-search-form-btn{height:32px}

/* Category pages: the old body carried td_category_template_4, which styled the header.
   Same rules keyed to the category header instead. */
@media (min-width:768px){
.category .td-category-header{padding-bottom:23px}
.category .td-category-header .td-crumb-container{margin-bottom:3px}
.category .td-category-siblings{margin-top:13px;margin-bottom:6px}
.category .td-category-siblings .td-category,.category .td-category-siblings .entry-category{margin-bottom:0}
.category .td-category-siblings .td-category a{background-color:transparent;color:#222;border:1px solid #eaeaea;padding:3px 7px 4px}
.category .td-category-siblings .td-category a:hover{border-color:#fc0;background-color:#fc0;color:#fff}
.category .td-category-siblings .td-category .td-current-sub-category{background-color:#222;border-color:#222;color:#fff}
.category .td-category-description p{margin-top:19px}
.category .td-category-pulldown-filter{top:83px}
}
@media (min-width:768px) and (max-width:1018px){
.category .td-category-header{padding-bottom:19px}
.category .td-category-siblings{margin-top:14px;margin-bottom:1px}
.category .td-category-pulldown-filter{top:81px}
}
@media (min-width:768px) and (max-width:1018px){.category .td-category-description p{margin-top:15px}}

/* Articles: the old script hid the share "+" button because all four networks fit. */
@media (min-width:768px){.td-post-sharing .td-social-sharing-hidden{display:none}}

/* Front page block filter tabs: the old script hid the empty "More" drop-down. */
.td-subcat-dropdown:not(:has(.td-pulldown-filter-list li)){display:none}

/* Author pages: the old authors list did not highlight the current author. */
.td_top_authors .td_mod_wrap.td-active .td-author-post-count{background-color:#222}
.td_top_authors .td_mod_wrap.td-active .td-author-comments-count{background-color:#444;opacity:1}
.td_top_authors .td_mod_wrap.td-active .td-authors-name a{color:#222}

/* Template-built pages (pages, tag, author, search, date, 404, attachment): the old body
   had the tdb-template class, which removed the 40px gap above the footer. */
@media (min-width:768px){
.page .td-main-content-wrap,.tag .td-main-content-wrap,.author .td-main-content-wrap,.search .td-main-content-wrap,
.date .td-main-content-wrap,.error404 .td-main-content-wrap,.attachment .td-main-content-wrap{padding-bottom:0}
}

/* YouTube and Vimeo players: full column width, 16:9 (the old td_resize_videos script set width 100%
   and height = 0.5625 x width; playlist players and 4:3 / 2.35:1 page-builder videos were left alone). */
iframe[src*="youtube.com"]:not(.td_wrapper_playlist_player_vimeo > iframe):not(.vc_video-aspect-ratio-43 > * > * > iframe):not(.vc_video-aspect-ratio-235 > * > * > iframe),
iframe[src*="vimeo.com"]:not(.td_wrapper_playlist_player_vimeo > iframe):not(.vc_video-aspect-ratio-43 > * > * > iframe):not(.vc_video-aspect-ratio-235 > * > * > iframe){width:100%;height:auto;aspect-ratio:16/9}
