/*
Theme Name: Nook
Theme URI: https://wordpress.com/themes/nook/
Description: Nook is a classic blogging theme offering a delightful canvas for your DIY projects, delicious recipes, and creative inspirations.
Version: 1.0.2
Author: Automattic
Author URI: https://automattic.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nook
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--secondary);
}

.wp-block-table figcaption {
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}
:root :where(.footer-inner){
	align-items: center;
}
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}
/*
 * Navigation Block
 * Reset the padding from List block
 * https://github.com/WordPress/gutenberg/issues/50486
 */
.wp-block-navigation ul {
	padding: unset;
}

:root :where(.nav-section) {
    position: relative;
}

:root :where(.nav-section .wp-block-navigation ul){
	gap:20px;
}

:where(.nav-section):before {
    content: "";
    width: calc(100% - 74%);
    background: #fff;
    position: absolute;
    left: 0;
    height: 100%;
    top: 0;
}

:root :where(.wp-block-navigation .wp-block-navigation-item__content) {transition: 0.5s;}

:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {text-decoration: none; font-weight: 600; transform: scale(1.05) }

:root :where(.custom-gallery-block) {
    max-width: 1110px;
	width: 100%;
    margin: 30px auto;
}

:root :where(.custom-gallery-block .rl-gallery-container) {
   max-width: 1110px;
	width: 100%;
}

:root :where(.custom-gallery-block .rl-gallery) {
  max-width: 1110px;
	width: 100%;
}

:root :where(.custom-gallery-block .wp-block-heading) {
	padding:1.75rem;
}

:root :where(.wp-block-post-content-is-layout-flow) > * {
    margin-block-start: 1.75rem;
   margin-block-end: 1.75rem;
}

:root :where(.custom-gallery-block .rl-gallery-caption .rl-gallery-item-caption) {
    overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

:root :where(.header-section) {
    position: relative;
}

:root :where(.header-section .wp-block-site-logo) {
    position: absolute;
    z-index: 99;
	top:30px;
}

:root :where(.pum-container.pum-responsive){
	top:25% !important;
}

/* post list page css */

:root :where(.wp-block-latest-posts__featured-image) {
    width: 100px;
}

:root :where(.wp-block-latest-posts__featured-image img) {
    width: 100px !important;
    height: 100px !important;
    display: block;
    object-fit: cover;
}

:root :where( .wp-block-latest-posts__list li) {
    margin-bottom: 30px;
}

:root :where(.wp-block-latest-posts__list li .wp-block-latest-posts__post-title) {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

:root :where(.wp-block-latest-posts__list li .wp-block-latest-posts__post-author, .wp-block-latest-posts__list li .wp-block-latest-posts__post-date, .wp-block-latest-posts__list li .wp-block-latest-posts__post-excerpt) {
    width: calc(100% - 110px);
    padding-left: 115px;
    margin: 0 !important;
}

:root :where(.wp-block-latest-posts__list li .wp-block-latest-posts__post-excerpt .wp-block-latest-posts__read-more) {
    display: inline-flex;
}

:root :where(.wp-block-latest-posts__list li .wp-block-latest-posts__post-excerpt) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

:root :where(form.searchandfilter) {
    width: 80%;
}

:root :where(.searchandfilter ul) {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

:root :where(.searchandfilter ul li input[type="text"],.searchandfilter ul li input[type="date"]) {
    width: 185px;
    padding: 0px 15px;
    font-size: 16px;
    height: 49px;
}

:root :where(.searchandfilter ul li input[type="submit"]) {
    padding: 16px;
}


/* Slider css*/

:root :where(.mfp-container .mfp-bottom-bar) {
    position: inherit;
    margin: 0;
}

:root :where(.mfp-container figure) {
    display: grid;
    grid-template-columns: 2fr 1fr;
    justify-content: center;
    align-items: center;
}

:root :where(.mfp-container .mfp-figure .mfp-bottom-bar .mfp-title){
	padding-right:56px;
}

:root :where(.mfp-container .mfp-figure .mfp-bottom-bar .mfp-counter) {
	position: inherit;
}

:root :where(.mfp-container .mfp-figure .mfp-bottom-bar small) {
    font-size: 18px !important;
    line-height: 24px !important;
    color: #fff !important;
}

:root :where(.mfp-iframe-holder .mfp-close, .mfp-image-holder .mfp-close){
	right:30px !important;
	top: 44px;
}

@media screen and (max-width: 640px) {
	:where(.nav-section):before {
    width: calc(100% - 45%);
}
		
:root :where(header .header-section .wp-block-site-logo) {
    top: 65px !important;
}
}

@media screen and (min-width: 789px) and (max-width: 1300px) {
	:where(.nav-section):before {
    width: calc(100% - 80%);
}

@media screen and (max-width: 767px) {
/* 	:root :where(.header-section .wp-block-site-logo) {
    top:37%
} */
	
:root :where(header .header-section .wp-block-site-logo) {
    top: 65px !important;
}
:root :where(.header-section .wp-block-columns .wp-block-column):nth-child(1) {
    order: 2;
}
	
:root :where(.search-bar) {
		order: 1;
}


:root :where(.wp-block-column .wp-block-group .taxonomy-category) {
   display:none;
}

:root :where(.custom-gallery-block) {
    width: auto;
}



/* Gallery */

:root :where(.mfp-container figure){
	display: block;
}

:root :where(.mfp-container .mfp-figure):after{
  height: 100%;
}

:root :where(.mfp-container .mfp-figure .mfp-bottom-bar .mfp-title) {
    padding-right: 10px;
    padding-left: 20px;
}

:root :where(.mfp-container .mfp-figure .mfp-bottom-bar .mfp-counter) {
    padding-left: 20px;
}
	
:root :where(.list-view){
 display:block;
}

}

@media (max-width: 1024px) {
    /* Hide the default navigation menu */
    .wp-block-navigation__container {
        display: none;
    }
	.wp-block-navigation.wp-block-navigation-is-layout-flex {
		display: block
	}
	
	.wp-block-navigation__responsive-container-open:not(.always-shown){
		display: block
	}

    /* Display the toggle button */
    .wp-block-navigation__responsive-container.is-menu-open {
        display: flex; 
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1000;
        padding: 20px;
    }

    /* Adjust the toggle button appearance */
    .wp-block-navigation__toggle_button_label {
        display: block;
        font-size: 1.2em;
        font-weight: bold;
        cursor: pointer;
    }
}


