/*
 Theme Name:        Uptown Charity Theme
 Text Domain:       uptown-child-charity
 Author:            April Auger
 Author URI:        https://aprilauger.com
 Description:       Charity is a child theme designed to be used alongside the Uptown theme.
 Template:          uptown
 Version:           1.0.0
 Requires at least: 6.4
 Tested up to:      6.4
 Requires PHP:      8.0
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Typography */
.h1,
.h2,
.h3,
.h4,
.h5 {
	font-family: var(--wp--preset--font-family--congenial);
}

/* Search */
.search-wrapper .search-field {
	border-radius: 2rem;
}

/* Navigation */
.header__navbar {
	font-family: var(--wp--preset--font-family--congenial);
}

/* Buttons */
.uptown-btn {
	font-family: var(--wp--preset--font-family--congenial);
	font-size: var(--wp--preset--font-size--x-small);
}

/* Hero */
@media (min-width: 768px) {
	.hero-gallery
		.kb-gallery-ul
		.kadence-blocks-gallery-item:nth-of-type(1)
		.kb-gal-image-radius,
	.hero-gallery
		.kb-gallery-ul
		.kadence-blocks-gallery-item:nth-of-type(3)
		.kb-gal-image-radius {
		transform: translateY(-10px);
	}
}

/* Categories */
#categories img {
	margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
	.hero-gallery
		.kb-gallery-ul
		.kadence-blocks-gallery-item:nth-of-type(1)
		.kb-gal-image-radius {
		transform: translateY(0);
		/* reset effect on mobile */
	}

	#categories {
		text-align: center;
	}

	#categories img {
		margin-bottom: 0.75rem;
	}

	#footer .container #menu-footer {
		display: flex;
		gap: 0.5rem;
		margin: 0;
		padding: 0;
		padding-bottom: 0;
		position: relative;
		flex-direction: column;
	}
}

.hero-gallery .kb-gal-image-radius {
	max-height: 250px;
}

/* Statistics */
#statistics {
	position: relative;
}

#statistics .img-bkg {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
}

#statistics .img-bkg img {
	margin: 0 auto;
	opacity: 0.8;
	width: 100%;
}

/* Directory */
.page-id-798 #title-block.bkg-img .tb-wrapper {
	padding-top: 5vh;
	padding-bottom: 10vh;
}

/* Gutenberg */
.wp-block-kadence-iconlist
	ul.kt-svg-icon-list
	.kt-svg-icon-list-item-wrap
	.kt-svg-icon-list-single {
	padding: 7px 0 !important;
}

.semibold,
.semibold .kt-svg-icon-list-text {
	font-weight: 600 !important;
}

/* Categories */
#categories .wp-block-kadence-column > .kt-inside-inner-col {
	flex-wrap: nowrap;
}

#categories .wp-block-kadence-column > .kt-inside-inner-col img {
	height: auto;
	max-width: none;
	width: 45px;
}

/* Spinner container */
.loading-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
}

/* The animated spinner */
.loading-spinner::after {
	content: '';
	width: 30px;
	height: 30px;
	border: 4px solid #ccc;
	border-top-color: var(--wp--preset--color--primary);
	/* Blue accent */
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Other styles */
::placeholder {
	color: #4a4a4a !important;
	opacity: 1;
}

:-ms-input-placeholder {
	color: #4a4a4a !important;
}

::-ms-input-placeholder {
	color: #4a4a4a !important;
}

#title-block.bkg-img .tb-wrapper::before {
	background: rgba(0, 0, 0, 0.7) !important;
}

#title-block.bkg-img h1 {
	background: rgba(0, 0, 0, 0.1);
	padding: 0.25em 0.5em;
	border-radius: 4px;
	display: inline-block;
}

.gtranslate_wrapper {
	text-align: left;
	position: fixed;
	bottom: 10px;
	right: 10px;
	z-index: 9999;
}

.page-id-798 #title-block.bkg-img h1 {
	display: block;
}

a.ssm-child-link {
	line-height: 1.3;
	font-size: 0.95rem;
}

blockquote {
	background: rgba(0, 0, 0, 0.03);
	border-left: 0.25rem solid #24757e;
	border-radius: 1rem;
	padding: 1.5rem;
}

blockquote p {
	font-style: italic;
	line-height: 1.6;
	margin: 0;
}

blockquote cite {
	color: #6b7280;
	display: block;
	font-size: 0.95rem;
	margin-top: 0.5rem;
}

.kb-table p {
	margin-bottom: 0;
}
