/* 

Setting global spacing variables as equal to the --two-spacer variable as that's what's used in the header and footer currently;
this can change to match any desired general spacing/margins.

Default width is set as 800px with a global horiz. spacing margin on each side.

Wide widths, 'alignfull' elements, are given full-width minus a standard horiz. margin on each side;
for screens above 1600px, this is changed to assign a width of 1600px while maintaining the same margins.

*/

:root {
  --global--spacing-horizontal: var(--three-spacer);
  --global--spacing-vertical: var(--four-spacer);
  @media only screen and (max-width: 781px) {
    --global--spacing-horizontal: var(--two-spacer);
  }
  --responsive--aligndefault-width: calc(800px - (2 * var(--global--spacing-horizontal)));
  --responsive--alignwide-width: calc(100vw - (2 * var(--global--spacing-horizontal)));
  --responsive--alignfull-width: 100%;
  --responsive--alignright-margin: var(--global--spacing-horizontal);
  --responsive--alignleft-margin: var(--global--spacing-horizontal);
  @media screen and (max-width: 1079px) {
    --responsive--aligndefault-width: 100% !important;
  }
}

@media only screen and (min-width: 1600px) {
  :root {
    --responsive--alignwide-width: calc(1600px - (2 * var(--global--spacing-horizontal)));
  }
}

.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce),
*[class*=inner-container] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce) {
  max-width: var(--responsive--aligndefault-width);
  width: var(--responsive--aligndefault-width);
  margin-left: auto;
  margin-right: auto;
}

.is-layout-flow > * {
  margin-block: var(--wp--style--block-gap);
}

.alignwide,
.is-style-alignwide {
  max-width: var(--responsive--alignwide-width);
  /* width: var(--responsive--alignwide-width); */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.alignfull,
.wp-block-group .wp-block-group__inner-container > *.alignfull {
  max-width: var(--responsive--alignfull-width);
  width: var(--responsive--alignfull-width);
  margin-left: auto;
  margin-right: auto;
}

.alignfull [class*=inner-container] > .alignwide,
.alignwide [class*=inner-container] > .alignwide {
  width: var(--responsive--alignwide-width);
  max-width: var(--responsive--alignfull-width);
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignleft {
  margin-left: var(--responsive--alignleft-margin);
  margin-right: auto;
  }

.entry-content > .alignright {
  margin-left: auto;
  margin-right: var(--responsive--alignright-margin);
}

@media screen and (max-width: 781px) {
  .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce),
  *[class*=inner-container] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
    max-width: 100%;
    width: auto;
    margin-left: var(--global--spacing-horizontal);
    margin-right: var(--global--spacing-horizontal);
  }
}

.entry-content .has-background {
  padding: var(--one-spacer);
}

/* If 'entry-content' and 'narrow' classes are combined, have all elements fill available width */
.entry-content.narrow * {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.is-layout-constrained * {
  max-width: none;
}

.is-layout-flow :nth-child(1 of .is-style-box-shadow) {
  transform: rotate(0.5deg);
}

.is-layout-flow :nth-child(2 of .is-style-box-shadow) {
  transform: rotate(-0.75deg);
}

.is-layout-flow :nth-child(3 of .is-style-box-shadow) {
  transform: rotate(0.25deg);
}

.is-layout-flow :nth-child(4 of .is-style-box-shadow) {
  transform: rotate(-1deg);
}