/*
Theme Name: Timber Ridge Blocks
Theme URI:
Author: Abstract Marketing
Author URI:
Description: Custom theme developed for Timber Ridge Event Centre
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timber-ridge-blocks
Tags: full-site-editing
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

img:not([class]), iframe {
    display: block;
}

:where(input:not(:is([type="button"], [type="submit"])), select, textarea) {
	background-color: var(--wp--preset--color--base);
	border: 1px solid #bbb;
	border-radius: 5px;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.65;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	width: 100%;
}

:where(input:focus, textarea:focus, select:focus) {
    outline: 2px solid var(--wp--preset--color--primary);
}

:where(input[type="checkbox"], input[type="image"], input[type="radio"]) {
	width: auto;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 0.5;
}

/*
Entry Content
*/

.entry-content {
	container-type: inline-size;
}

.entry-content :is(.alignleft, .alignright) {
	margin-block-end: 1em;
}

.entry-content :is(.alignleft, .alignright):first-child + * {
	margin-top: 0;
}

@container (width < 600px) {
	.entry-content .wp-block-image:is(.alignright, .alignleft) {
		float: none !important;
        margin: 0 0 1.5rem;
        width: 100%;
        text-align: center;
	}

    .entry-content .wp-block-image:is(.alignright, .alignleft) img {
        max-height: 400px;
        width: auto !important;
        display: inline-block !important;
    }
}

.site-header {
    box-shadow: 0 3px 6px #0000000d;
	position: sticky;
  top: -44px;
  background: #fff;
  z-index: 1;
}

@media (min-width: 992px) {
  .site-header__logo {
    display: none !important;
  }

  .site-header__main-row {
    justify-content: center !important;
  }

  .site-header__nav {
    width: 100%;
  }

  .site-header__nav .site-header__nav {
    justify-content: space-evenly;
  }
}

.site-header__nav .wp-block-site-logo {
  background: #000;
  padding: 12px 96px;
}

.is-menu-open .wp-block-navigation-item:has(.wp-block-site-logo) {
  display: none !important;
}
