/* WordPress Block Library Styles */
/* Core blocks styling for Gutenberg editor output */

/* Paragraphs */
.wp-block-paragraph {
  margin-bottom: 1em;
}

/* Headings */
.wp-block-heading {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.wp-block-heading:first-child {
  margin-top: 0;
}

.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
  margin: 0;
}

/* Lists */
.wp-block-list {
  margin: 0 0 1em 0;
  padding-left: 2em;
}

.wp-block-list ul {
  list-style-type: disc;
  margin: 0;
  padding-left: inherit;
}

.wp-block-list ol {
  list-style-type: decimal;
  margin: 0;
  padding-left: inherit;
}

.wp-block-list li {
  margin-bottom: 0.5em;
}

.wp-block-list li:last-child {
  margin-bottom: 0;
}

.wp-block-list ul li {
  list-style-position: outside;
}

.wp-block-list ol li {
  list-style-position: outside;
}

/* List Items */
.wp-block-list-item {
  margin-bottom: 0.5em;
}

/* Tables */
.wp-block-table {
  margin-bottom: 1em;
  overflow-x: auto;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ccc;
}

.wp-block-table table td,
.wp-block-table table th {
  border: 1px solid #ccc;
  padding: 0.75em;
  text-align: left;
}

.wp-block-table table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* Images */
.wp-block-image {
  margin: 1em 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-block-image.alignleft {
  float: left;
  margin-right: 1em;
}

.wp-block-image.alignright {
  float: right;
  margin-left: 1em;
}

.wp-block-image.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Media Text Block */
.wp-block-media-text {
  box-sizing: border-box;
  /*!rtl:begin:ignore*/
  direction: ltr;
  /*!rtl:end:ignore*/
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
}

.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 50%;
}

.wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__media {
  align-self: start;
}

.wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__media,
.wp-block-media-text > .wp-block-media-text__content,
.wp-block-media-text > .wp-block-media-text__media {
  align-self: center;
}

.wp-block-media-text.is-vertically-aligned-bottom > .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-bottom > .wp-block-media-text__media {
  align-self: end;
}

.wp-block-media-text > .wp-block-media-text__media {
  /*!rtl:begin:ignore*/
  grid-column: 1;
  grid-row: 1;
  /*!rtl:end:ignore*/
  margin: 0;
}

.wp-block-media-text > .wp-block-media-text__content {
  direction: ltr;
  /*!rtl:begin:ignore*/
  grid-column: 2;
  grid-row: 1;
  /*!rtl:end:ignore*/
  padding: 0 8%;
  word-break: break-word;
}

.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
  /*!rtl:begin:ignore*/
  grid-column: 2;
  grid-row: 1;
  /*!rtl:end:ignore*/
}

.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content {
  /*!rtl:begin:ignore*/
  grid-column: 1;
  grid-row: 1;
  /*!rtl:end:ignore*/
}

.wp-block-media-text__media a {
  display: block;
}

.wp-block-media-text__media img,
.wp-block-media-text__media video {
  height: auto;
  max-width: unset;
  vertical-align: middle;
  width: 100%;
}

.wp-block-media-text.is-image-fill > .wp-block-media-text__media {
  background-size: cover;
  height: 100%;
  min-height: 250px;
}

.wp-block-media-text.is-image-fill > .wp-block-media-text__media > a {
  display: block;
  height: 100%;
}

.wp-block-media-text.is-image-fill > .wp-block-media-text__media img {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
  height: 100%;
  min-height: 250px;
}

.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media > a {
  display: block;
  height: 100%;
}

.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }

  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
  }

  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Columns Block */
.wp-block-columns {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap !important;
}

@media (min-width: 782px) {
  .wp-block-columns {
    flex-wrap: nowrap !important;
  }
}

.wp-block-columns {
  align-items: normal !important;
}

.wp-block-columns.are-vertically-aligned-top {
  align-items: flex-start;
}

.wp-block-columns.are-vertically-aligned-center {
  align-items: center;
}

.wp-block-columns.are-vertically-aligned-bottom {
  align-items: flex-end;
}

@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (min-width: 782px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*=flex-basis] {
    flex-grow: 0;
  }
}

.wp-block-columns.is-not-stacked-on-mobile {
  flex-wrap: nowrap !important;
}

.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
  flex-basis: 0;
  flex-grow: 1;
}

.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column[style*=flex-basis] {
  flex-grow: 0;
}

:where(.wp-block-columns) {
  margin-bottom: 1.75em;
}

:where(.wp-block-columns.has-background) {
  padding: 1.25em 2.375em;
}

.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wp-block-column.is-vertically-aligned-top {
  align-self: flex-start;
}

.wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

.wp-block-column.is-vertically-aligned-bottom {
  align-self: flex-end;
}

.wp-block-column.is-vertically-aligned-stretch {
  align-self: stretch;
}

.wp-block-column.is-vertically-aligned-bottom,
.wp-block-column.is-vertically-aligned-center,
.wp-block-column.is-vertically-aligned-top {
  width: 100%;
}

/* Table Block */
.wp-block-table {
  overflow-x: auto;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table thead {
  border-bottom: 3px solid;
}

.wp-block-table tfoot {
  border-top: 3px solid;
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid;
  padding: 0.5em;
}

.wp-block-table .has-fixed-layout {
  table-layout: fixed;
  width: 100%;
}

.wp-block-table .has-fixed-layout td,
.wp-block-table .has-fixed-layout th {
  word-break: break-word;
}

.wp-block-table.aligncenter,
.wp-block-table.alignleft,
.wp-block-table.alignright {
  display: table;
  width: auto;
}

.wp-block-table.aligncenter td,
.wp-block-table.aligncenter th,
.wp-block-table.alignleft td,
.wp-block-table.alignleft th,
.wp-block-table.alignright td,
.wp-block-table.alignright th {
  word-break: break-word;
}

.wp-block-table .has-subtle-light-gray-background-color {
  background-color: #f3f4f5;
}

.wp-block-table .has-subtle-pale-green-background-color {
  background-color: #e9fbe5;
}

.wp-block-table .has-subtle-pale-blue-background-color {
  background-color: #e7f5fe;
}

.wp-block-table .has-subtle-pale-pink-background-color {
  background-color: #fcf0ef;
}

.wp-block-table.is-style-stripes {
  background-color: initial;
  border-collapse: inherit;
  border-spacing: 0;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: #f0f0f0;
}

.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) {
  background-color: #f3f4f5;
}

.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) {
  background-color: #e9fbe5;
}

.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) {
  background-color: #e7f5fe;
}

.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) {
  background-color: #fcf0ef;
}

.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
  border-color: #0000;
}

.wp-block-table.is-style-stripes {
  border-bottom: 1px solid #f0f0f0;
}

.wp-block-table .has-border-color td,
.wp-block-table .has-border-color th,
.wp-block-table .has-border-color tr,
.wp-block-table .has-border-color > * {
  border-color: inherit;
}

.wp-block-table table[style*=border-top-color] tr:first-child,
.wp-block-table table[style*=border-top-color] tr:first-child td,
.wp-block-table table[style*=border-top-color] tr:first-child th,
.wp-block-table table[style*=border-top-color] > *,
.wp-block-table table[style*=border-top-color] > * td,
.wp-block-table table[style*=border-top-color] > * th {
  border-top-color: inherit;
}

.wp-block-table table[style*=border-top-color] tr:not(:first-child) {
  border-top-color: initial;
}

.wp-block-table table[style*=border-right-color] td:last-child,
.wp-block-table table[style*=border-right-color] th,
.wp-block-table table[style*=border-right-color] tr,
.wp-block-table table[style*=border-right-color] > * {
  border-right-color: inherit;
}

.wp-block-table table[style*=border-bottom-color] tr:last-child,
.wp-block-table table[style*=border-bottom-color] tr:last-child td,
.wp-block-table table[style*=border-bottom-color] tr:last-child th,
.wp-block-table table[style*=border-bottom-color] > *,
.wp-block-table table[style*=border-bottom-color] > * td,
.wp-block-table table[style*=border-bottom-color] > * th {
  border-bottom-color: inherit;
}

.wp-block-table table[style*=border-bottom-color] tr:not(:last-child) {
  border-bottom-color: initial;
}

.wp-block-table table[style*=border-left-color] td:first-child,
.wp-block-table table[style*=border-left-color] th,
.wp-block-table table[style*=border-left-color] tr,
.wp-block-table table[style*=border-left-color] > * {
  border-left-color: inherit;
}

.wp-block-table table[style*=border-style] td,
.wp-block-table table[style*=border-style] th,
.wp-block-table table[style*=border-style] tr,
.wp-block-table table[style*=border-style] > * {
  border-style: inherit;
}

.wp-block-table table[style*=border-width] td,
.wp-block-table table[style*=border-width] th,
.wp-block-table table[style*=border-width] tr,
.wp-block-table table[style*=border-width] > * {
  border-style: inherit;
  border-width: inherit;
}

/* Quotes */
.wp-block-quote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1em 0;
  font-style: italic;
  color: #666;
}

.wp-block-quote p {
  margin: 0 0 0.5em 0;
}

.wp-block-quote p:last-child {
  margin-bottom: 0;
}

/* Code blocks */
.wp-block-code {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  margin: 1em 0;
  overflow-x: auto;
  padding: 1em;
}

.wp-block-code pre {
  margin: 0;
  overflow-x: auto;
}

.wp-block-code code {
  font-family: 'Courier New', Courier, monospace;
}

/* Preformatted */
.wp-block-preformatted {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  margin: 1em 0;
  overflow-x: auto;
  padding: 1em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Buttons */
.wp-block-button {
  margin: 0.5em 0;
}

.wp-block-button__link {
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  background-color: #32373c;
  color: #fff;
  border: none;
  transition: background-color 0.2s;
}

.wp-block-button__link:hover {
  background-color: #23282d;
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 2px solid #ccc;
  margin: 1.5em 0;
}

.wp-block-separator.is-style-wide {
  margin-left: 0;
  margin-right: 0;
}

.wp-block-separator.is-style-dots {
  border-top: none;
  text-align: center;
}

.wp-block-separator.is-style-dots::before {
  content: '···';
  letter-spacing: 0.5em;
  color: #ccc;
}

/* Spacer */
.wp-block-spacer {
  display: block;
}

/* Group */
.wp-block-group {
  margin: 1em 0;
}

/* Columns */
.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin: 1em 0;
}

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

/* Gallery */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  margin: 1em 0;
}

.wp-block-gallery .wp-block-image {
  margin: 0;
}

/* Cover */
.wp-block-cover {
  background-size: cover;
  background-position: center;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin: 1em 0;
  position: relative;
}

.wp-block-cover .wp-block-cover__inner-container {
  max-width: 100%;
  width: 100%;
  z-index: 1;
}

/* Embed */
.wp-block-embed {
  margin: 1em 0;
}

.wp-block-embed iframe,
.wp-block-embed embed {
  max-width: 100%;
}

.wp-block-embed.wp-embed-responsive iframe {
  width: 100%;
}

/* Video */
.wp-block-video {
  margin: 1em 0;
}

.wp-block-video video {
  max-width: 100%;
  height: auto;
}

/* Audio */
.wp-block-audio {
  margin: 1em 0;
}

/* File */
.wp-block-file {
  margin: 1em 0;
}

.wp-block-file a {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #32373c;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  margin-right: 0.5em;
}

.wp-block-file a:hover {
  background-color: #23282d;
}

/* Freeform (classic block) */
.wp-block-freeform {
  margin: 1em 0;
}

/* Generic block styling */
.wp-block-* {
  margin-bottom: 1em;
}

.wp-block-*:last-child {
  margin-bottom: 0;
}

/* Alignment classes */
.alignleft {
  float: left;
  margin-right: 1em;
}

.alignright {
  float: right;
  margin-left: 1em;
}

.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 100%;
}

.alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .wp-block-quote {
    border-left-color: #999;
    color: #ccc;
  }

  .wp-block-code,
  .wp-block-preformatted {
    background-color: #2d2d2d;
    border-color: #555;
    color: #f8f8f2;
  }

  .wp-block-table table {
    border-color: #555;
  }

  .wp-block-table table td,
  .wp-block-table table th {
    border-color: #555;
  }

  .wp-block-table table th {
    background-color: #3d3d3d;
  }

  .wp-block-separator {
    border-top-color: #999;
  }

  .wp-block-separator.is-style-dots::before {
    color: #999;
  }
}
