/* columns with block style reverse on mobile */
.wp-block-columns.is-style-mobile-reverse-order {
  flex-direction: column-reverse;
}

/* columns with background-color and image */
.wp-block-columns.has-background.alignfull:has(>.wp-block-column:first-child > figure) > .wp-block-column:last-child > .wp-block-group {
  padding: 2rem 5vw;
}
.wp-block-columns.has-white-background-color.alignfull:has(>.wp-block-column:first-child > figure) > .wp-block-column:last-child > .wp-block-group {
  padding: 2rem 5vw 0 3vw;
}
.wp-block-columns.has-background.alignfull:has(>.wp-block-column:last-child > figure) > .wp-block-column:first-child > .wp-block-group {
  padding: 2rem 5vw;
}
.wp-block-columns.has-background.alignfull > .wp-block-column > figure {
  height: 100%;
  width: 100%;
}
.wp-block-columns.has-background.alignfull > .wp-block-column > figure > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* columns inside group with background color */
.wp-block-group.has-background > .wp-block-columns > .wp-block-column:has(> figure > img) {
  height: auto;
  align-self: stretch;
}
.wp-block-group.has-background > .wp-block-columns > .wp-block-column:has(> figure > img) > figure {
  height: 100%;
  width: 100%;
}
.wp-block-group.has-background > .wp-block-columns > .wp-block-column:has(> figure > img) > figure > img {
  height: 100%;
  width: 100%;
}

/* columns as header with cover image */
.entry-content > .wp-block-columns.has-background.alignfull:has(>.wp-block-column:last-child > .wp-block-cover):first-child > .wp-block-column:first-child > .wp-block-group,
main > .wp-block-columns.has-background.alignfull:has(>.wp-block-column:last-child > .wp-block-cover):first-child > .wp-block-column:first-child > .wp-block-group {
  padding: 2rem 5vw;
}
.entry-content > .wp-block-columns.has-background.alignfull >.wp-block-column:last-child > .wp-block-cover,
main > .wp-block-columns.has-background.alignfull >.wp-block-column:last-child > .wp-block-cover {
  aspect-ratio: unset !important;
  height: 100%;
  min-height: 300px !important;
}

/* location map in columns */
.wp-block-columns > .wp-block-column > .wp-block-group.is-layout-flex:has(> #location-map) {
  height: 100%;
}
.wp-block-columns > .wp-block-column > .wp-block-group.is-layout-flex > #location-map {
  height: stretch !important;
  min-height: 400px;
  justify-self: stretch;
}

@media only screen and (min-width: 550px) {
/* columns with custom class .nested-columns */
  .wp-block-columns.nested_columns > .wp-block-column > .wp-block-columns {
    flex-wrap: nowrap !important;
  }
}

@media only screen and (min-width: 782px) {
  /* columns as header with cover image */
  .entry-content > .wp-block-columns.has-background.alignfull:has(>.wp-block-column:last-child > .wp-block-cover):first-child > .wp-block-column:first-child > .wp-block-group,
  main > .wp-block-columns.has-background.alignfull:has(>.wp-block-column:last-child > .wp-block-cover):first-child > .wp-block-column:first-child > .wp-block-group {
    padding: 2rem 5vw !important;
  }
  .entry-content > .wp-block-columns.has-background.alignfull >.wp-block-column:last-child > .wp-block-cover,
  main > .wp-block-columns.has-background.alignfull >.wp-block-column:last-child > .wp-block-cover {
    min-height: 400px !important;
  }

  /* columns with block style reverse on mobile */
  .wp-block-columns.is-style-mobile-reverse-order {
    flex-direction: row;
  }
}

@media only screen and (min-width: calc(1200px + 10vw)) {
  /* columns with background-color and image */
  .wp-block-columns.has-background.alignfull:has(>.wp-block-column:first-child > figure) > .wp-block-column:last-child > .wp-block-group {
    padding: 4rem calc(50vw - 600px) 4rem 4rem;
  }
  .wp-block-columns.has-white-background-color.alignfull:has(>.wp-block-column:first-child > figure) > .wp-block-column:last-child > .wp-block-group {
    padding: 0 calc(50vw - 600px) 0 4rem;
  }
  .wp-block-columns.has-background.alignfull:has(>.wp-block-column:last-child > figure) > .wp-block-column:first-child > .wp-block-group {
    padding: 4rem 4rem 4rem calc(50vw - 600px);
  }
}