/*
Theme Name: WP Medium
Theme URI: https://wpmedium.com
Author: Bryce York
Author URI: https://bryceyork.com/
Description: A beautiful theme inspired by the design and ethos of Medium.com
Version: 4.0.0
License: UNLICENSED
Text Domain: wpmedium
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   Self-Hosted Fonts
   ========================================================================== */

@font-face {
  font-family: 'Raleway';
  src: url('lib/fonts/raleway-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('lib/fonts/raleway-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('lib/fonts/raleway-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --brand: hsl(12, 6%, 15%);
  --brand-dark: hsl(12 6% 20% / 1); /* #292524; */
  --accent:hsl(12, 65%, 54%); /* #da7756; */
  --text-primary: #373736;
  --text-secondary: #767674;
  --text-muted: #b3b3b1;
  --border-light: hsl(12, 13%, 86%);
  --white-bg: #F5F4F0;
  --white: #fff;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.15), 0 5px 8px 0 rgba(0, 0, 0, 0.05), 0 1px 14px 0 rgba(0, 0, 0, 0.02);
  --font-display: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 
}

/* ==========================================================================
   Normalize (minimal reset)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.8rem;
  line-height: 1.6em;
  color: var(--text-primary);
  background-color: var(--white-bg);
  overflow-x: hidden;
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

iframe {
  max-width: 100%;
}

a {
  background-color: transparent;
}

button {
  cursor: pointer;
  font: inherit;
  margin: 0;
}

input, textarea {
  font: inherit;
  margin: 0;
  background-color: var(--white-bg);
}

figure {
  max-width: 100%;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;

  &:focus {
    top: 10rem;
    left: 10rem;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2 {
  margin-top: 1.75em;
  line-height: 1.1em;
  margin-bottom: 1em;
  word-wrap: break-word;
  font-family: var(--font-display);
}

h2 {
  line-height: 1.2em;
  font-weight: 500;
  font-family: var(--font-display);
}

h3, h4, h5 {
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  font-weight: 500;
  line-height: 1.33em;
  font-family: var(--font-display);
}

h4, h5 {
  font-weight: 600;
}

h1, h2, h3, h4, h5 {
  text-wrap: pretty;
  &.text-sans {
    font-family: var(--font-sans);
  }
}

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand);

  &:hover {
    transition: 150ms border-color var(--easing);
    color: var(--accent);
    border-color: var(--accent);
  }
}

.subtitle {
  font-size: 2.4rem;
  font-style: italic;
  margin-top: -1.8rem;
  color: var(--text-secondary);
}

blockquote {
  font-style: italic;
  margin-top: 3rem;
  margin-bottom: 3rem;
  position: relative;
  padding: 0.8rem 0;

  &::before {
    content: "";
    width: 1px;
    background: var(--border-light);
    position: absolute;
    height: 100%;
    left: -2.4rem;
    top: 0;
  }

  & cite {
    display: block;
    font-size: 0.85em;
    margin-top: 1rem;
  }
}

hr {
  margin: 4.8rem 0;
  border: 0;
  overflow: visible;

  &::before {
    content: "...";
    display: block;
    position: relative;
    top: -0.8em;
    color: var(--accent);
    font-weight: 600;
    font-size: 3.2rem;
    letter-spacing: 0.6em;
    text-align: center;
  }

  &.subtle::before {
    color: var(--text-primary);
  }
}

.text-display {
  font-family: var(--font-display);
  font-weight: 500;

  letter-spacing: 0.03rem !important;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
  margin-bottom: 3rem;
  padding-left: 4.8rem;
  counter-reset: list-counter;

  & ul, & ol {
    margin: 1.2rem 0;
  }
}

li {
  margin-bottom: 1.2rem;
  list-style: none;
}

ul > li::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  position: relative;
  margin-right: 2rem;
  border-radius: 50%;
  top: -0.2em;
  margin-left: -3rem;
  background-clip: padding-box;
}

ol > li {
  counter-increment: list-counter;

  &::before {
    content: counter(list-counter) ".";
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    width: 4.8rem;
    margin-left: -4.8rem;
    text-align: center;
    position: relative;
  }
}

dl {
  margin-bottom: 2rem;
}

dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 718px; /* 700px content + 9px padding each side */
  margin: 0 auto;
  padding: 0 9px;
}

.container--wide {
  max-width: 1050px; /* 1032px content + 9px padding each side */
  margin: 0 auto;
  padding: 0 9px;
}

div {
  max-width: 100%;
}

.isRound, .isRound img {
  border-radius: 50%;
}

.pull-left {
  float: left;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button, .wp-block-button__link {
  border-radius: 0;
  border: 2px solid var(--brand);
  color: var(--brand);
  background-color: var(--white-bg);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  outline: none;

  &:hover, &:focus {
    transition: 150ms background-color var(--easing);
    background-color: var(--brand);
    color: var(--white);
  }
}

/* ==========================================================================
   Scroll To Top Button
   ========================================================================== */

.scrollToTop {
  position: fixed;
  bottom: 1.2rem;
  right: 2.4rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  border: .1rem solid transparent;
  background: var(--white-bg);
  color: var(--brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 150ms var(--easing), 
              transform 150ms var(--easing),
              visibility 150ms var(--easing),
              background-color 150ms var(--easing);
  z-index: 100;
  box-shadow: var(--shadow);

  /* Position just to the right of the 718px content block */
  @media (min-width: 830px) {
    right: auto;
    left: calc(50% + 359px + 2rem);
    bottom: 2.4rem;
  }
}

.scrollToTop--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scrollToTop:hover {
  background: var(--brand);
  color: var(--white);
}

.scrollToTop svg {
  width: 2rem;
  height: 4.2rem;
}

/* ==========================================================================
   Promo Banner
   ========================================================================== */

.promoBanner {
  text-align: center;
  padding: 1.2rem 0.9rem;
  color: var(--white);
  background: var(--brand-dark);
  font-size: 0.85em;
}

.promoBanner__cta {
  border: none;
  margin-left: 0.8rem;
  text-wrap: nowrap;
  font-size: 0.75em;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 0;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  &:hover {
    background: var(--white-bg);
    color: var(--brand-dark);
    border-color: var(--white);
  }
}

/* ==========================================================================
   Primary Navigation
   ========================================================================== */

.primaryNav {
  background-color: var(--white-bg);
  color: var(--brand);
  padding: 1.8rem 0;

  & li {
    display: inline-block;
    margin: 0;
  }
}

.primaryNav__container {
  max-width: 1050px; /* 1032px content + 9px padding each side */
  margin: 0 auto;
  padding: 0 9px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.primaryNav__brand {
  font-size: 4rem;
  font-weight: 300;
  border: 0.2rem solid var(--brand);
  /* TODO: consider using the Display font for the brand initial */
  padding: 0.3em;
  color: var(--brand);

  &:hover {
    transition: 300ms background-color var(--easing);
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--white-bg);
  }
}

.primaryNav__menuButton {
  border-radius: 0;
  border: 2px solid var(--brand);
  color: var(--brand);
  background-color: transparent;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  outline: none;
  line-height: 1.4em;
}

.primaryNav__nav {
  display: block;
  position: fixed;
  top: 0;
  right: -34rem;
  bottom: 0;
  width: 32rem;
  z-index: 11;
  background-color: var(--white-bg);
  padding: 1.8rem 0.6rem;
  overflow-y: scroll;
  box-shadow: var(--shadow);
  transition: 300ms right var(--easing);
  margin: 0;
}

.primaryNav__nav--active {
  right: 0;
}

.primaryNav__menu, .primaryNav__subMenu {
  display: block;
  margin: 0;
}

.primaryNav__menu {
  padding-left: 0;

  & li {
    display: block;

    &::before {
      content: none;
    }
  }

  & a {
    color: var(--brand);
    border-bottom: none;
    padding: 1rem 0 1.2rem 1rem;
    display: block;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 600;
  }
}

.primaryNav__subMenu {
  padding-left: 1.8rem;
  margin-bottom: 1.2rem;

  & li {
    display: block;
  }
}

.primaryNav__backdrop {
  display: none;
  text-indent: -9000px;
}

.primaryNav__nav--active ~ .primaryNav__backdrop {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.33);
}

@media (min-width: 780px) {
  .primaryNav__menuButton, .primaryNav__backdrop, .primaryNav__nav--active ~ .primaryNav__backdrop {
    display: none;
  }

  .primaryNav__nav {
    display: inline-block;
    position: static;
    width: auto;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    z-index: 1;
  }

  .primaryNav__menu {
    padding: 0;

    & li {
      display: inline-block;
      position: relative;
      padding: 1rem;

      &:last-child {
        padding-right: 0;
      }

      &::before {
        content: none;
      }
    }

    & a {
      font-weight: 600;
      font-size: 0.75em;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--brand);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      padding: 0.2rem 1rem;

      &:hover {
        transition: 150ms border-color var(--easing);
        border-color: var(--brand);
      }
    }
  }

  .primaryNav a {
    &:focus, &:focus-within {
      transition: 300ms background-color var(--easing);
      border-color: transparent;
      background-color: var(--white-bg);
      outline: none;
    }

    &:hover:focus, &:hover:focus-within {
      background-color: transparent;
    }
  }

  .primaryNav__submenuCTA {
    margin-right: -0.8rem;
  }

  .primaryNav__subMenuIndicator {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 0.8rem solid var(--brand);
    border-right: 0.5rem solid transparent;
    border-left: 0.5rem solid transparent;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    position: relative;
    top: -0.1rem;
  }

  .primaryNav__subMenu {
    display: none;
    position: absolute;
    top: 4.6rem;
    right: 0;
    width: 24rem;
    min-width: 18rem;
    background-color: var(--white-bg);
    box-shadow: var(--shadow);
    border-radius: 0.5rem;
    padding-left: 0;
    overflow: hidden;
    z-index: 10;

    & li {
      display: block;
      padding: 0;
    }

    & a {
      display: block;
      padding: 1.2rem 1.4rem;
      background-color: var(--white-bg);
      line-height: 1.5em;

      &:hover, &:focus {
        transition: 150ms background-color var(--easing);
        border-color: transparent;
        color: var(--accent);
      }
    }
  }

  .primaryNav__subMenuCTA:hover .primaryNav__subMenu,
  .primaryNav__subMenuCTA:focus .primaryNav__subMenu,
  .primaryNav__subMenuCTA:focus-within .primaryNav__subMenu {
    display: inline-block !important;
  }
}

/* ==========================================================================
   Secondary Navigation
   ========================================================================== */

.secondaryNav {
  margin: 1.2rem 0;
  font-size: 0.85em;
}

.secondaryNav__container {
  max-width: 718px; /* 700px content + 9px padding each side */
  margin: 0 auto;
  padding: 0 9px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 200vw;
    height: 1px;
    background-color: var(--border-light);
    z-index: 0;
  }
}

.secondaryNav__share {
  border-radius: 0;
  border: 2px solid var(--brand);
  color: var(--brand);
  background-color: var(--white-bg);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  outline: none;
  position: relative;
  top: 0.2rem;
  line-height: 1.4em;

  &:hover, &:focus {
    transition: 150ms background-color var(--easing);
    background-color: var(--accent);
    color: var(--white);
  }
}

.secondaryNav__breadcrumbs {
  padding-left: 0;
  margin: 0;
  position: relative;
  border: 1px solid var(--border-light);
  padding: 0 1.4rem 0.5rem 1.4rem;
  background-color: var(--white-bg);
  
  & li {
    display: inline-block;
    margin-bottom: 0;

    &::before {
      content: '';
      background-color: var(--accent);
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M10 6L8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z" fill="black"/><path fill="none" d="M0 0h24v24H0z"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M10 6L8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z" fill="black"/><path fill="none" d="M0 0h24v24H0z"/></svg>');
      -webkit-mask-size: 2.4rem;
      mask-size: 2.4rem;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      border-radius: 0;
      width: 2.4rem;
      height: 2.4rem;
      top: 0.7rem;
      margin: 0 0.6rem 0 0;
    }

    &:first-child::before {
      content: none;
    }
  }

  & a {
    color: var(--text-secondary);
    border-color: transparent;

    &:hover {
      border-color: inherit;
    }
  }
}

/* ==========================================================================
   Byline
   ========================================================================== */

.byline {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 2.4rem 0;
}

.byline__avatar {
  border-radius: 50%;
  margin-right: 1.4rem;
}

.byline__author, .byline__meta {
  display: block;
  line-height: 1.6em;
}

.byline__author {
  font-size: 0.9em;
}

.byline__meta {
  font-size: smaller;
  color: var(--text-secondary);

  & a {
    color: inherit;
    border-color: transparent;

    &:hover {
      border-color: inherit;
    }
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  margin-top: 5.2rem;
  font-size: 0.85em;

  & ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  & li {
    display: inline-block;
    padding: 1.2rem 1.2rem 0;
    color: var(--text-secondary);
    margin-bottom: 0;

    &::before {
      content: none;
    }
  }

  & a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;


    &:hover {
      color: var(--text-secondary);
      border-color: transparent;
    }

    &:hover[href] {
      color: inherit;
      transition: 150ms border-color var(--easing);
      border-color: inherit;
    }
  }
}

@media (min-width: 780px) {
  footer ul {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================================================
   Post Tease (Feed Items)
   ========================================================================== */

.postTease {
  margin: 2.4rem 0;

  & h3 {
    margin-top: 3.6rem;
    margin-bottom: 1.2rem;
  }

  & h3 a {
    /* border-color: var(--accent); */
    border-bottom-width: 2px;
  }

  & p {
    margin: 0.6rem 0;
    text-wrap: pretty;
  }
}

.postTease__meta {
  color: var(--text-secondary);
  line-height: 1.2em;

  & a {
    color: inherit;
    border-color: transparent;

    &:hover {
      border-color: inherit;
    }
  }
}

/* ==========================================================================
   Feed Masthead
   ========================================================================== */

.feedMasthead {
  padding: 0 0.9rem;
}

.feedMasthead__spacer {
  background-color: var(--white-bg);
  height: 6.6rem;
  border-bottom: 1px solid var(--border-light);
}

.feedMasthead__inner {
  padding: 12px 9px;
  max-width: 85rem;
  margin: -4.2rem auto 1.8rem auto;
  background-color: var(--white-bg);
  text-align: center;
  border: 1px solid var(--border-light);
}

.feedMasthead__logo {
  border-radius: 50%;
  width: 9.6rem;
  height: 9.6rem;
  margin-top: -5rem;
  border: .2rem solid var(--white-bg);
  box-shadow: 0 0 0 0.1rem var(--border-light);
}

.feedMasthead__title {
  margin-top: 0.6rem;
  line-height: 1.2em;
  margin-bottom: 1em;
  word-wrap: break-word;
  font-weight: 600;
  letter-spacing: 0.02rem;
}

.feedMasthead__subtitle {
  margin-top: -1.8rem;
  color: var(--text-secondary);
  font-size: 2.3rem;
  font-weight: 400;
  letter-spacing: 0.02rem;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comment {
  display: flex;
  flex-direction: row;
  margin: 2.4rem 0;
  font-size: 0.85em;
}

.comment__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1.4rem;
  position: relative;
  top: 0.4rem;
}

.comment__content p {
  margin: 0 1.2rem 0 0;
}

.comment__childComments {
  margin-left: -3.7rem;
}

.comment .comment {
  margin-bottom: 0;
  font-size: 1em;
}

/* ==========================================================================
   Comment Form
   ========================================================================== */

.commentForm {
  & h3 {
    margin-bottom: 0;
  }

  & input, & textarea, & label {
    display: block;
    width: 100%;
  }

  & label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75em;
    font-weight: 600;
    background-color: var(--white-bg);
    display: inline-block;
    width: auto;
    padding: 1.6rem 0.6rem 1.2rem 0.6rem;
    margin-left: 0.8rem;
    line-height: 0.75em;
    position: relative;
    bottom: -17px;
    z-index: 9;
  }

  & input, & textarea {
    width: 90%;
    padding: 1.4rem 1.2rem 1.2rem 1.2rem;
    border-radius: 0;
    border: 1px solid var(--border-light);

    &:focus, &:active {
      transition: 150ms border-color var(--easing);
      outline: none !important;
      border-color: var(--brand);
    }
  }
}

.commentForm__helpText {
  font-size: 0.85em;
  color: var(--text-secondary);
  line-height: 1.4em;
  margin: 0.6rem 0 0;
}

/* ==========================================================================
   Featured Image
   ========================================================================== */

.decorativeBorder {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.decorativeBorder img {
  position: relative;
  border: .4rem solid var(--white-bg);
  box-shadow: 0 0 0 .1rem var(--border-light);
  z-index: 1;
}

.decorativeBorder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 200vw;
  height: .1rem;
  background-color: var(--border-light);
  transform: translate(0, -50%);
  z-index: 0;
}

.aligncenter .decorativeBorder::before {
  transform: translate(-50%, -50%);
}

.alignleft .decorativeBorder::before {
  transform: translate(-100%, -50%);
}

.featuredImage, .wp-video, p:has(> iframe) {
  margin-top: 2.4rem;
  position: relative;
  isolation: isolate;
}

.featuredImage img, .wp-video video, p:has(> iframe) iframe {
  display: block;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 0 0.1rem var(--border-light);
  border: .6rem solid var(--white-bg);
  position: relative;
  z-index: 1;
}

.featuredImage::before, .wp-video::before, p:has(> iframe)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 1px;
  background-color: var(--border-light);
  z-index: 0;
}

@media (min-width: 1080px) {
  .featuredImage {
    margin: 2.4rem -8rem 0 -8rem;
    width: calc(100% + 16rem);
    max-width: none;
  }
}

/* ==========================================================================
   WordPress Block Editor (Gutenberg)
   ========================================================================== */

.wp-block-video video, .wp-block-embed-youtube iframe {
  box-shadow: var(--shadow);
  border-radius: 0;
}

.blocks-gallery-item::before {
  content: none;
}

.wp-block-pullquote {
  border-top: 2px solid;
  border-bottom: 2px solid;
}

.noUnderline a {
  border-bottom: none;
}

.wp-block-embed {
  margin: 0 0 1.2rem 0;
}

.wp-caption-text, .wp-block-image figcaption {
  margin-top: 0;
  margin-bottom: 2.4em;
  color: var(--text-secondary);
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   WordPress Alignment Classes
   ========================================================================== */

.aligncenter {
  margin-right: auto;
  margin-left: auto;
  display: block;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

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

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

.alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
  max-width: calc(100% + 4rem);
}

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

/* Clear floats - apply to containers, not floated elements */
article::after,
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}
