/*
Theme Name: CAM Raleigh
Theme URI: 
Author: The Privatenode Team
Author URI: https://privatenode.io
Description: A theme for CAM Raleigh website
Requires at least: 6.0
Tested up to: 6.2.2
Requires PHP: 5.7
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: camraleigh
Tags: e-commerce, one-column, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, sticky-post, threaded-comments
*/

/*
 * Visually separate the page/post title from the post content in Editor.
 */
.edit-post-visual-editor__post-title-wrapper {
	align-items: center;
	display: flex;
	background-color: #fff;
	border-bottom: 1px solid #dddddd;
    margin-top: 0;
	margin-bottom: 0;
	min-height: 48px;
}

.edit-post-visual-editor__post-title-wrapper h1 {
	color: var(--wp--preset--color--primary);
	font-size: 18px;
	text-align: center;
}

/* Fallback for deprecate variables.
---------------------------------------------------------------------------- */
:root {
	--wp--custom--spacing--small: var(--wp--preset--spacing--30, clamp(1.5rem, 5vw, 2rem));
	--wp--custom--spacing--medium: var(--wp--preset--spacing--50, clamp(2.5rem, 8vw, 4rem));
	--wp--custom--spacing--large: var(--wp--preset--spacing--60, clamp(2.5rem, 8vw, 6rem));
	--wp--custom--spacing--outer: max(1.25rem, 4vw);
}

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
	-webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-style: var(--wp--custom--elements--link--static--text-decoration-style, solid);
	text-decoration-thickness: var(--wp--custom--elements--link--text-decoration-thickness, 1px);
	text-underline-offset: var(--wp--custom--elements--link--text-underline-offset, 0.25ch);
}

a:hover,
a:focus {
	text-decoration-style: var(--wp--custom--elements--link--interactive--text-decoration-style, dashed);
}

a:active {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/* Don't display the homepage in the Page List block, when located inside a navigation element. */
nav .wp-block-pages-list__item.wp-block-navigation-item.menu-item-home {
	display: none;
}

/*
 * Search and File Block button styles.
 * Necessary until the following issues are resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/36444
 * https://github.com/WordPress/gutenberg/issues/27760
 */

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 0;
	border: none;
	color: var(--wp--preset--color--background);
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/*
 * Button hover styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.90;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}

/* Custom Navigation Code */

.sub-menu-caps {
	text-transform: capitalize;
	font-weight: 500;
}

/* Removing Max-width issue on Logo */



/*
 * --------------------------------------------------------
 *  Custom - blocks
 * --------------------------------------------------------
 */

.primary-item {
	text-transform: uppercase;
 }

/* Table
----------------------------------------------------------*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){
	background-color: var(--wp--custom--blocks--core-table--variant-stripes--color--background, var(--wp--preset--color--tertiary));
}

/* Quote - 'Plain' variation
----------------------------------------------------------*/
blockquote:is(.is-style-plain) {
	border: none;
	padding-left: 0;
}

/*
 * --------------------------------------------------------
 *  Custom - experimental
 * --------------------------------------------------------
 */
 
/*------Pete codes here------*/
.wp-block-navigation .wp-block-navigation-item__label{font-weight:600;}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{text-decoration:none;line-height:1.2em;}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content:hover{color:#fdb911;}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{border:none;border-top:#000 1px solid;}
.wp-block-navigation-item.has-child.wp-block-navigation-submenu{flex-wrap:wrap;}
ul.wp-block-navigation__submenu-container.has-small-font-size.sub-menu-caps.wp-block-navigation-submenu{position:static;border:none;background:#e8e9ea;border-top:#dedfda 1px solid;border-bottom:#dedfda 1px solid;}
.wp-block-navigation ul li li li a{padding:.4em 1em .4em 1.4em;font-size:90%;}
.wp-block-navigation ul li li li a:hover{background:#fed104;text-decoration:none;color:#fff !important;}

button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle,button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{outline:none;transition:all .2s ease-in-out;}
.wp-block-navigation__responsive-container-content>ul>li>button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle[aria-expanded=true],.wp-block-navigation__responsive-container-content>ul>li>button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle[aria-expanded=true]+.wp-block-navigation__submenu-icon{-ms-transform:translateX(10px);-webkit-transform:translateX(10px);transform:translateX(10px);position:relative;}
.wp-block-navigation__responsive-container-content>ul>li>button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle:before{content:'';display:block;position:absolute;width:0px;height:2px;background:#000;left:-24px;top:50%;margin-top:-1px;transition:all .2s ease-in-out;}
.wp-block-navigation__responsive-container-content>ul>li>button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle[aria-expanded=true]:before{width:14px;left:-18px;}

.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-top:-4px;}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{position:absolute;right:0px;top:15px;}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-submenu__toggle[aria-expanded=true]+.wp-block-navigation__submenu-icon{-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);transform:rotate(90deg);}
/*------Pete codes end------*/


.footer-area {
	margin-top: 0!important;
}

/* Remove Related Events from individual calendar view */

.tribe-block__related-events__title, .tribe-related-events {
	display: none;
}

/* Adding rounded outline button to menu */
.menu-button a {
	background-color: #ffcd00;
	padding: 5px 15px 5px 15px;
	color: floralwhite!important;;
}

.button a:hover {
	background-color: #ff0000;
	border: 2px solid #ff0000;
}

.menu-button a:hover, .menu-button a:active {
	color: #fff !important;
	text-decoration: none!important;
	background-color:#ffcd00;
	opacity: 0.9;

}

/* gallery image last */
#view .acf-view__exhibit_images .acf-view__field .acf-view__image {
	width: initial; /* from 100% */
}

/* hover state for gallery image last */
#view .acf-view__exhibit_images .acf-view__field .acf-view__image-outer {
	width: fit-content !important; /* it isn't recommended to use '!important' but it solves the problem */
}

/*
 * Remove all animations, transitions and smooth scroll
 * for people that prefer not to see them.
 */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Matching caret and focus outline colors.
 */
input {
	caret-color: var(--wp--preset--color--tertiary);
	outline-color: var(--wp--preset--color--tertiary);
	outline-offset: 0.2ch;
}

.wp-block-post-comments input:not([type="submit"]),
.wp-block-post-comments input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments textarea,
[multiple],
[type="date"],
[type="datetime-local"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="time"],
[type="url"],
[type="week"],
select,
textarea {
	background-color: var(--wp--custom--elements--input--color--background);
	color: var(--wp--custom--elements--input--color--text);
    border-color: var(--wp--custom--elements--input--border--color);
    border-radius: var(--wp--custom--elements--input--border--radius);
    border-width: var(--wp--custom--elements--input--border--width);
    box-sizing: border-box;
    display: block;
    font-size: var(--wp--custom--elements--input--typography--font-size);
    line-height: var(--wp--custom--elements--input--typography--line-height);
    padding: var(--wp--custom--elements--input--spacing--padding--top) var(--wp--custom--elements--input--spacing--padding--right) var(--wp--custom--elements--input--spacing--padding--bottom) var(--wp--custom--elements--input--spacing--padding--left);
    width: 100%;
}

label, .woocommerce-page label {
	margin-bottom: 0.5rem;
}
/*
 * Matching input with outline button style.
 */
.wp-block-post-comments-form input:not([type=submit]),
.wp-block-post-comments-form textarea {
    border: 2px solid currentColor;
    padding: 0.667em 1.333em !important;
	font-size: 1.15rem;
    line-height: 1.384;
	border-radius: 0.5rem;
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}