/* to disable default margin applied to post content block (all root elements, really), can't be changed in theme.json
 see https://github.com/WordPress/gutenberg/issues/51242 */
:where(.wp-site-blocks) > .wp-block-post-content {
  margin-block: 0 !important;
}

/* :where(body .is-layout-flow) > * {
  margin-block-start: unset;
} */

:where(.wp-site-blocks) > * {
  margin-block: 0 !important;
}

.wp-block-buttons .wp-block-button.is-style-big-red-btn .wp-block-button__link {
  color: var(--wp--preset--color--red);
  padding: 15px 2em;
  border: 3px solid var(--wp--preset--color--red);
  background-color: var(--wp--preset--color--white);
  font-weight: bold;
  border-radius: 0;
  font-size: var(--wp--preset--font-size--big);
}

.wp-block-cover.is-style-bordered {
  border: 4px solid var(--wp--preset--color--white);
}

/* adding slanted header style from Brazil site */
.wp-block-cover.is-style-slanted .wp-block-cover__background,
.wp-block-cover.is-style-slanted .wp-block-cover__image-background {
  transform: skewY(5deg);
  transform-origin: top right;
}

/* adding vertical line between language switcher items */
.language-switcher > li:nth-child(1) {
	border-right: 1px solid black;
	padding-right: 14px;
  padding-block: 5px;
}

/* make header logo smaller on mobile */
@media (max-width: 720px) {
  .custom-logo-link img {
    max-width: 65px;
  }
}

/* hide underline on post links */

.wp-block-post-title a,
.wp-block-post-date a {
	text-decoration: none;
}

.wp-block-post-title a:hover,
.wp-block-post-date a:hover {
	text-decoration: underline;
}

/* mailchimp css */
.mcbMailChimp .form .submitBtn button {
  border-radius: 100px !important;
  font-family: var(--wp--preset--font-family--kelson-sans);
  width: auto !important;
}

@media (min-width: 1100px) {  
  .mcbMailChimp .form h2 {
    grid-column: 1 / -1;
  }
  
  .mcbMailChimp .form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 3em;
    padding-inline: 28em !important;
    padding-block: 3em !important;
  }
}

/* styling navigation submenu on desktop */
@media (min-width: 1000px) {
  .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
    background-color: white !important;
    color: black !important;
    border: 2px solid black;
    padding-block: 0.5em;
    padding-inline: 0;
  }

  .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container .wp-block-navigation-item {
    border-bottom: 1px solid;
  }
  
  .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container .wp-block-navigation-item:last-child {
    border-bottom: unset;
  }
}

/* styles for single event page */

h2.tribe-events-schedule__datetime {
  font-family: var(--wp--preset--font-family--kelson-sans) !important;
  font-weight: bold !important;
}

.post-type-tribe_events p.wp-block-paragraph {
  font-family: var(--wp--preset--font-family--kelson-sans);
}

.tec-block__single-event {
  max-width: 800px;
  margin-inline: auto;
}

.single-tribe_events .tribe-blocks-editor .tribe-events-single-event-title {
  font-family: 'Kelson Sans';
    font-size: 2rem;
}
