/*
Theme Name: Koidu Aeg
Template: news-box-pro
Description: koiduaeg.ee child theme for News Box Pro. Holds all site customisations (reactions in listings and articles, author-prefixed titles, mobile menu/search, Estonian share buttons, tracking, custom CSS) so parent-theme updates can't overwrite them.
Author: Remi Sebastian Kits
Version: 1.0.4
Requires PHP: 8.0
Text Domain: koiduaeg-child
*/

/* ==========================================================================
   1. Site CSS as of Feb 2025 (was appended to news-box-pro/style.css; lost in
      the May 2025 theme update). Source: Wayback capture 2025-02-15.
   ========================================================================== */



article .post-footer-meta {
	margin: 20px 0 0px 0;
}

article footer.entry-footer {
	margin: 40px 0 40px 0;
	overflow: visible;
}

article .social-icons:before, .social-icons:after {
	height: 0px;
}

.post-footer-meta .row > div {
	margin-top: 20px;
}

.entry-footer .social-icons {
	text-align: left;
}

.entry-footer .social-icons .clearfix {
	margin-left: 0px;
	font-size: 28px;
}

/* author img or smth */

.author-details .author-img img {
    max-height: 96px !important;
    aspect-ratio: 1/1;
    object-fit: cover !important;
}

.archive-header .author-img img {
	max-height: 100px !important;
    aspect-ratio: 1/1;
    object-fit: cover !important;
}

.post-meta .posted-on time {
	text-transform: initial !important;
}

h5.up-title a:first-child {
	width: 100%;
}

.up-list .row .col-md-4 a:first-child {
    width: 100%;
}

.home-read-more {
	font-weight: normal;
	text-align: center;
}

.related-single {
	height: 100%;
}

.related-single h4.text-capitalize {
	text-transform: initial !important;
}

.post-video-img, .mpdw-recent-img {
	overflow: hidden;
}

img.wp-post-image {
	transition: all 0.4s;
}

.post-footer-meta .row {
    align-items: center;
    margin: auto;
    width: 100%;
    justify-content: center;
}

.post-footer-meta .single-post-tags span.tags-links {
	font-size: 14px;
}

.card:hover img.wp-post-image,
.up-list .row:hover img.wp-post-image,
.mpdw-recent-item:hover img.wp-post-image,
.kmr-item:hover img.wp-post-image,
.single-grid .single-post:hover img.wp-post-image,
.alm-item:hover img.wp-post-image,
.masonry-entry .single-post:hover img.wp-post-image,
.related-single:hover img.wp-post-image {
	transform: scale(1.05);
	filter: sepia(65%);
}

.single-post-thumb {
	position: relative;
}

.card a:first-child:hover,
.up-list .col-md-4 a:first-child:hover,
.single-post-thumb a:hover,
.alm-item a:first-child:hover,
.related-thumb a:hover {
	opacity: 1.0 !important;
}

.card-img-top {
	border-radius: 4px;
    aspect-ratio: 1.618;
    object-fit: cover;
}

.news-box-preloader {
	background: white;
}

.newsbox-ring:after {
	border-color: #ff8300 transparent #ff8300 !important;
}

.post-video-img img {
	width: 100%;
    aspect-ratio: 1.618;
    object-fit: cover;
}

.classic-header .site-logo {
	padding: 0px;
}

.site-info.default-footer {

	border-color: #886743 !important;
	background-color: #886743 !important;
	color: white;
}

.site-info.default-footer p.copyright {
	color: white !important;
}

.site-info.default-footer p.copyright a {
	color: #ffcda5 !important;
}

.site-info .menu-footer-menu-container a {
	color: #ffcda5 !important;
}

.post-video-img img {
	border-radius: 4px;
}

.topblog-img, .border-shadow figure.ingle-ctimg {
	/* Article top image  */
    margin-top: -15px;
    margin-left: -20px;
    margin-right: -20px;
}

.topblog-img img, .border-shadow figure.ingle-ctimg img {
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
}

/* Most read widget */
.mpdw-recent-posts .mpdw-recent-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
}
.mpdw-recent-posts .mpdw-recent-img {
    margin-left: 15px;
    aspect-ratio: 1.3;
}

.up-content .fa-angle-double-right {
	display: none;
}

/* Category miniposts  */
.masonry-entry .grid-content .grid-footer-meta {
	display: none !important;
}

.masonry-entry .grid-content .slider-meta {
	margin-top: 0px !important;
	text-align: left !important;
	color: black !important;
	margin-left: 0px;
	padding-left: 0px;
	margin-bottom: 0px !important;
	padding-bottom: 0px;
}
.masonry-entry .grid-content .slider-meta .slider-time {
	color: black !important;
}
.masonry-entry .grid-content .grid-header {
	text-align: left !important;
}
.masonry-entry .grid-content .grid-text {
	padding-left: 0px !important;
	padding-right: 0px !important;
}

.masonry-entry .grid-content .slider-meta .slider-cat {
	display: none;
}
.masonry-entry .single-grid .grid-img .single-post-thumb {
	max-height: 100vh;
}
.masonry-entry .single-grid .readmore {
	display: none;
}


.masonry-entry .single-grid {
	height: auto !important;
}

.site-content {
	margin-top: 40px !important;
}
header.author-header, header.page-header {
	margin-bottom: 20px !important;
}


@media screen and (max-width: 768px) {
	.masonry-entry .single-grid .grid-img img {
		aspect-ratio: 2.1 !important;
	}
	.site-content {
		margin-top: 20px !important;
	}

	.related-post .row {
		gap: 10px;
	}
}


/* breadcrumbs */
.archive-header h1.page-title {
	display: none;
}

/* homepage widgerts */

.border-shadow aside .widget, .single.border-shadow article.single-post {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.masonry-entry .single-grid {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

/*
main-nav use real sticky
*/

#masthead {
    position: sticky;
    display: contents;
}


#mainNav nav ul li a {
	color: white !important;
    font-size: 17px !important;
    font-weight: 700;
}

#mainNav {
	position: relative;
	z-index: 100;
}

#mainNav.is-sticky {
	position: sticky !important;
	animation: none !important;
	-webkit-animation: none !important;
}
#mainNav .site-logo {
	display: none;
}

#mainNav .site-logo img {
	height: 2.5em;
	margin: 10px;
}

#mainNav .mobile-search {
	display: none;
}

#mainNav i.fas {
	height: 2em;
    color: white;
    font-size: 2em;
    vertical-align: middle;
    padding-bottom: 0.5em;
}

#mainNav .main-navigation ul li ul li a {
	color: #ff9a2f !important;
}

#mainNav .main-navigation ul li ul li:hover a {
	color: white !important;
}


body.admin-bar #mainNav.is-sticky {
	padding-top: 0px;
	top: 32px;
}

/* mobile view */
html body .slicknav_menu .slicknav_icon {
	width: 25px;
    height: 20px;
    font-size: 23px;
}

.slicknav_btn.slicknav_collapsed {
	background: #ff9a30 !important;
	border-radius: 3px;
}

@media screen and (max-width: 991px) {
	html body .slicknav_menu {
	    left: 10px !important;
	    bottom: 10px !important;
	    right: unset !important;
	    position: fixed !important;
	    display: none;
		flex-direction: column-reverse;
		align-items: flex-start;
	}
}

#mainNav .mobile-nav-btn {
	display: none;
}
#mainNav .search-navbar {
	display: none;
	float: right;
    background: #ff9a2f;
    padding: 4px 8px;
    border-bottom-left-radius: 4px;
    position: absolute;
    right: 0px;
}

#mainNav .mobile-nav {
	float: left;
    top: 100%;
    position: absolute;
    z-index: 100;
    color: white !important;
    background: #ff9a2f;
    border-bottom-right-radius: 4px;
    display: none;
    overflow: auto;
    max-height: 75vh;
}

.mobile-nav ul {
	list-style-type: none;
	padding: 0 1em;
}
.mobile-nav li a {
	color: white !important;
}
.mobile-nav li {
	margin: 1em 0px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 17px;
    border-bottom: 1px solid #ffffff57;
    padding-bottom: 1em;
}
.mobile-nav li:last-child {
	margin-bottom: 0px;
	border-bottom: none;
	padding-bottom: 0px;
}

.home-read-more {
	margin-top: -30px;
}

.home-read-more a, .home-read-more a:visited {
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
}

@media screen and (min-width: 782px) {
	.mobile-nav {
		display: none !important;
	}
}

#mainNav .mobile-search {
	display: inline-block;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-25%);
}

@media screen and (max-width: 782px) {
	#mainNav .mobile-search {
		right: 10px;
	}

	aside#secondary {
		display: none;
	}
	#mainNav .mobile-nav-btn {
		display: block;
		position: absolute;
		left: 10px;
		top: 50%;
		transform: translateY(-25%);
	}
	body.admin-bar #mainNav.is-sticky {
		top: 0px;
	}
	#mainNav .site-logo {
		display: block;
	}
	#mainNav #site-navigation {
		display: none !important;
	}
	#masthead .site-branding {
		display: none;
	}
	.site-content {
		margin-top: 20px !important;
	}

	.tabs-content .up-list .up-title {
		font-size: 24px;
		line-height: 24px;
	}
	.tabs-content .up-list .upmeta span.text-muted {
		font-size: 15px;
		line-height: 15px;
	}
	.big-up .post-video-img {
		margin-bottom: 10px;
	}
	.big-up .up-list .post-video-img {
		margin-bottom: 2px;
	}
	.card.no-border.upone {
	    border-bottom: none !important;
	    padding-bottom: 15px;
	    margin-bottom: 16px !important;
	}
}


/* arcxhive view  */

/* Ajax Load More ≥ 8 appends the items straight into .alm-listing; older versions wrapped each
   loaded page in .alm-reveal. Make whichever holds the items the grid. */
.alm-listing,
.alm-reveal {
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.alm-listing > .alm-reveal {
	width: 100%;
}
.alm-item {
	width: 30%;
    width: calc(33.3333% - 2rem);
    display: flex;
    flex-flow: column;
    padding: 0px !important;
    gap: 0.25em;
    flex-grow: 1;
    margin: 1rem !important;
}
.alm-item img {
	width: 100% !important;
	max-width: 100% !important;
	position: relative !important;
	aspect-ratio: 1.618;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
}
.alm-item a:first-child {
	overflow: hidden;
	border-radius: 4px;
}
.alm-item a {
	position: relative;
}

.alm-item h3 {
	font-size: 18px;
}

.alm-item p:last-child {
	display: none !important;
}

.archive-full-width {
    max-width: 1024px;
    margin: 0 auto;
    margin-top: 2rem;
    width: auto;
    position: relative;
}


@media screen and (max-width: 1024px) {
	.alm-item {
		width: 50%;
    	width: calc(50% - 2rem);
	}
}

@media screen and (max-width: 700px) {
	.alm-item {
		width: 100%;
    	width: calc(100% - 2rem);
	}
}


.breadcrumbs {
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    background: #f8f9fa!important;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.breadcrumbs > span {
	font-weight: 700;
}
.breadcrumbs > span:first-child {
    margin-right: 8px;
}
.breadcrumbs > span:last-child {
	margin-left: 8px;
	color: #333333;
}

.title-author, .title-author a, .title-author a:visited {
	color: black !important;
}
.title-author, .title-author a, .title-content, .title-content a {
	display: inline;
}

.padded-shadow {
	box-shadow: 0px 3px 40px rgba(0,0,0,0.20);
    padding: 15px 20px;
    border-radius: 4px;
    max-width: 1024px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}


.author-details:empty {
	display: none;
}

.pp-multiple-authors-boxes-wrapper {
	/*display: none !important;*/
}


.top-bar {
	background: #886743 !important;
    color: white;
}
@media screen and (min-width: 768px) {
	.top-bar {
		margin-bottom: 20px;
	}
}
.top-bar li, .top-bar li a {
	color: white !important;
	font-weight: bold;
}
.top-bar .fab {
	color: white;
}

ul.top-bar-left {
	margin: 0 0 0 -10px;
}


.entry-content p a {
	display: inline;
}
/* ==========================================================================
   2. Patches from the news-box-pro-child theme (style.css, Sep 2026)
   ========================================================================== */

/* Väikesed postituste külgpildid */
.home img.up-img.wp-post-image {
    width: 143px !important;
    min-width: 143px !important;
    max-width: 143px !important;
    height: 85px !important;
    min-height: 85px !important;
    max-height: 85px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Suured postituskaartide pildid */
.home img.card-img-top.wp-post-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center !important;
}
/* ==========================================================================
   3. Patches from Customizer → Additional CSS (news-box-pro-child, Jun 2025 + Sep 2026)
   ========================================================================== */
.up-img.wp-post-image {
  width: 143px;
  height: 85px;
  object-fit: cover;
  object-position: center;
}
img.newsbox-pimg {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.up-img.wp-post-image {
width: 143px !important;
height: 85px !important;
object-fit: cover;
object-position: center;
display: block;
flex-shrink: 0;
}


/* ==========================================================================
   "Kõige loetumad lood" widget (inc/most-read.php) — same look as the Magical Posts Display widget it replaces
   ========================================================================== */
.koiduaeg-most-read .kmr-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.koiduaeg-most-read .kmr-item {
	margin: 0 0 22px;
	padding: 0;
}
.koiduaeg-most-read .kmr-item:last-child {
	margin-bottom: 5px;
}
.koiduaeg-most-read .kmr-img {
	display: block;
	overflow: hidden;
	border-radius: 3px;
	margin-bottom: 8px;
}
.koiduaeg-most-read .kmr-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1.3; /* as the old widget */
	object-fit: cover;
}
.koiduaeg-most-read .kmr-title {
	font-family: "Roboto Slab", serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: 1px;
	text-transform: none;
	margin: 0 0 6px;
}
.koiduaeg-most-read .kmr-title a {
	color: #ff9a30;
	text-decoration: none;
}
.koiduaeg-most-read .kmr-date {
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 26px;
	color: #333;
}
