/* Layout structure - uses WordPress CSS variables from theme.json */

body .wp-site-blocks {
  display: flex;
  flex-wrap: wrap;
  height: 100vh;
}

body.admin-bar .wp-site-blocks {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  height: auto;
}

body .wp-site-blocks > .site-header {
  width: 100%;
  margin: 0;
  align-self: flex-start;
}

body .wp-site-blocks > main {
  width: 100%;
  padding: 0;
}

body .wp-site-blocks > main .entry-content {
  margin: 0 !important;
  width: 100%;
  max-width: none !important;
}

body .wp-site-blocks > footer {
  margin-top: 3rem;
  width: 100%;
  align-self: flex-end;
}
/* TODO: this should be part of a general.css not layout*/
.wp-block-video video,
.wp-block-image img {
  border-radius: 20px;
  box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.2);
}
/* TODO: ensure this doesnt break existing styling of wp */
/* WordPress Columns Block Layout */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--md, 2rem);
  align-items: flex-start;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

.wp-block-group.is-layout-constrained:not(main, .alignfull) {
  padding: 1rem;
  border-radius: 1rem;
}

@media (max-width: 781px) {
  .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-column {
    flex-basis: 100% !important;
  }
}
