/*html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}*/

html {
	scroll-padding-top: 136px;
}

/* Cralls trying out hover state */
.wp-block-button__link:hover {
        background-color: #F78DA7;
	color: #1A1919;
}

/* a bit funky but the theme has the height set to 100% and that's just How CSS Priority Works
 * it also won't display as sticky in the editor but it works fine for users */
body {
	height: fit-content !important;
}

/* because of the above solution to sticky headers, we need to use viewports to guarantee minimum page height */
.wp-site-blocks  {
	min-height: 100vh;
}

@container header scroll-state(stuck: top) {
	background: #000000;
}

/* methinks wordpress just does not like you using block-level custom css on their menus */
.wp-block-navigation__submenu-container li:hover {
	background-color: #F78DA7;
}

@media (max-width: 600px) {
    .wp-block-navigation__submenu-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .wp-block-navigation__submenu-icon {
        padding: 8px;
    }

h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 3vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 2.5vw, 1rem); }

}


/* Custom effects for post-rollup otter blocks - BT */


.post-rollup .o-posts-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.post-rollup .o-posts-grid-post {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Make inner content overlay the square */
.post-rollup .o-posts-grid-post > * {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
}

/* Clamp text to avoid overflow */
.post-rollup .o-posts-grid-post .o-posts-grid-post__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* make post rollup titles easier to read */
.post-rollup h5 {
   text-shadow:
       0 2px 4px rgba(0,0,0,0.6),
    /* multi-direction 1px outline */
    1px 0 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}

/* Make the card a positioning context */
.o-posts-grid-post-blog {
    position: relative;
}

/**
 * Posts need to stay in their own column.
 * I cannot believe there isn't a way to do it from the plugin itself.
 * - Alice
 **/
.wp-block-themeisle-blocks-posts-grid .is-grid.o-posts-grid-columns-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Stretch the title link to cover the entire card */
.o-posts-grid-post-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Pointer cursor on the whole card */
.o-posts-grid-post-blog:hover {
    cursor: pointer;
}

/* make performer names more readable */
.o-posts-grid-post-title {
  background: linear-gradient(#00000000, #000000ff);
}
