/*
Theme Name:     Piper
Theme URI:      https://demos.restored316.com/piper/
Template:       kadence
Author:         Restored 316 // Lauren Dierschke
Author URI:     http://www.restored316designs.com/
Description:    A mobile responsive WordPress theme built for the Kadence Framework by Lauren Dierschke of Restored 316.
Version:        1.0.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Theme customization starts here
-------------------------------------------------------------- */

#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
	box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.1);
}

ul.wp-block-social-links {
	margin-bottom: 0;
}

/* Query Page Numbers
---------------------------------- */

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-block;
  margin-right: 0.5em;
  border: 2px solid transparent;
  min-width: 2.5em;
  line-height: 2.25em;
  text-align: center;
  text-decoration: none;
  border-radius: .25rem;
  color: inherit;
	background: none;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
	border-color: var(--global-palette-btn-bg);
	background: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
		border-color: var(--global-palette-btn-bg);
    background: var(--global-palette-btn-bg);
    color: var(--global-palette-btn);
}

.wp-block-query-pagination-numbers .page-numbers.current:hover {
	border-color: var(--global-palette-btn-bg);
}

.pagination .nav-links {
	text-align: center;
}

/* Sub & Superscript
---------------------------------- */

p sub {
    font-size: 100%;
    bottom: auto;
    padding: 3px 10px;
    color: var(--global-palette9);
    z-index: 2;
}

p sub:after {
    content: '';
    background: var(--global-palette2);
    width: 100%;
    height: 100%;
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: rotate(-2deg);
    z-index: -1;
}

p sup {
    font-size: 100%;
    bottom: auto;
    top: auto;
    padding: 3px 10px;
    color: var(--global-palette9);
	z-index: 2;
}

p sup:after {
    content: '';
    background: var(--global-palette1);
    width: 100%;
    height: 100%;
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: rotate(-2deg);
    z-index: -1;
}

/* Archives & Single Posts
---------------------------------- */

.archive .entry-taxonomies .category-links a,
.single .entry-taxonomies .category-links a,
.blog .entry-taxonomies .category-links a {
    font-size: 100%;
	background: var(--global-palette1);
    padding: 2px 8px;
    color: var(--global-palette9);
	transform: rotate(-2deg);
	display: inline-block;
}

.post-archive .entry-header {
	margin-top: -25px;
}


.entry-related .loop-entry .entry-content-wrap {
    padding: 1rem;
}

.wp-block-post-date,
.wp-block-post-terms {
	text-transform: uppercase;
}

.wp-block-read-more {
	text-align: center;
}

.archive.content-style-unboxed .entry, 
.blog.content-style-unboxed .entry, 
.post-type-archive.content-style-unboxed .entry, 
.search-results.content-style-unboxed .entry {
	text-align: center;
}

/* Search Drawer
---------------------------------- */

#search-drawer .drawer-inner {
	width: 30% !important;
	height: 150px !important;
	margin: 83px auto;
	box-shadow: none;
}

#search-drawer .drawer-inner .drawer-content form input.search-field {
	background: #fff;
}

.popup-drawer.active .drawer-overlay {
	 opacity: 0 !important;
}

@media only screen and (max-width: 767px) {
	
	#search-drawer .drawer-inner {
		width: 100% !important;
		height: 150px !important;
		margin: 39px auto;
		box-shadow: none;
	}

}

/* Homepage 3 Featured Categories Square Styling (All Devices & Editor) */
.homepage-cat-col,
.editor-styles-wrapper .homepage-cat-col,
.block-editor-block-list__block.homepage-cat-col {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: center !important;
    display: flex !important;
    flex-direction: column !important;
}

.homepage-cat-col > .kt-inside-inner-col,
.editor-styles-wrapper .homepage-cat-col > .kt-inside-inner-col,
.block-editor-block-list__block.homepage-cat-col > .kt-inside-inner-col {
    flex: 1 1 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: center center !important;
}

.kb-row-layout-id80929_6cab9f-57 > .kt-row-column-wrap,
.editor-styles-wrapper .kb-row-layout-id80929_6cab9f-57 > .kt-row-column-wrap {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 767px) {
    .kb-row-layout-id80929_6cab9f-57 > .kt-row-column-wrap,
    .editor-styles-wrapper .kb-row-layout-id80929_6cab9f-57 > .kt-row-column-wrap {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 16px !important;
    }
    .homepage-cat-col,
    .editor-styles-wrapper .homepage-cat-col {
        max-width: 320px !important;
        margin: 0 auto !important;
    }
}


/* Category labels: bottom bar, uppercase, letter-spaced (white bg) */
.homepage-cat-col > .kt-inside-inner-col,
.editor-styles-wrapper .homepage-cat-col > .kt-inside-inner-col {
    justify-content: flex-end !important;
    padding-bottom: 0 !important;
}
.homepage-cat-col .wp-block-kadence-advancedheading {
    width: 80% !important;
    max-width: 80% !important;
    margin: 0 auto !important;
}
.homepage-cat-col h2,
.homepage-cat-col h2.wp-block-kadence-advancedheading[data-kb-block] {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    background: var(--global-palette9, #ffffff) !important;
    color: var(--global-palette3, #2a1a17) !important;
    font-family: var(--global-body-font-family, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    text-align: center !important;
}
@media (max-width: 1024px) {
    .homepage-cat-col h2,
    .homepage-cat-col h2.wp-block-kadence-advancedheading[data-kb-block] {
        font-size: 11px !important;
        padding: 8px 8px !important;
        letter-spacing: 0.12em !important;
    }
}
@media (max-width: 767px) {
    .homepage-cat-col h2,
    .homepage-cat-col h2.wp-block-kadence-advancedheading[data-kb-block] {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}
