.wp-has-aspert-ratio {
  .wp-block-embed__wrapper {
    position: relative;
    height: 0;
    overflow: hidden;
  }

  &.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    padding-top: 56.25%;
  }

  &.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
    padding-top: 75%;
  }

  &.wp-embed-aspect-3-2 .wp-block-embed__wrapper {
    padding-top: 66.67%;
  }

  &.wp-embed-aspect-21-9 .wp-block-embed__wrapper {
    padding-top: 42.86%;
  }

  .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
  
.wp-block-separator {
  background: none;
  border: none;
  border-top: 1px solid var(--genborderColor);
  margin: 1em 0;
}

.wp-block-quote{
  border: 8px solid var(--genborderColor);
  margin: 50px 0 67px;
  padding: 55px 64px;
}

.rishi-has-blocks .wp-block-embed {
  margin-top: 0;
  margin-bottom: 0;
}
  
.rishi-has-blocks {
  .wp-block-image figcaption, .wp-block-gallery .blocks-gallery-caption, .wp-block-embed figcaption {
    margin: 0.8075em 0 0 0;
    text-align: center;
  }

  .wp-block-gallery{
    figure{
      margin: 0;
    }
    .blocks-gallery-caption {
      width: 100%;
      margin-top: 0;
    }

    .blocks-gallery-item:last-child{
      margin-bottom: 1em;
    }
  } 
}
  
.wp-block-table.is-style-stripes {
  border-bottom: none;
}
  
.wp-block-tag-cloud a {
  font-size: 1em !important;
  margin-right: 10px;

}

/*============================
WIDGET DEFAULT CSS
============================*/

.wp-block-categories li a, 
.wp-block-archives li a, .wp-block-latest-comments li a, .wp-block-rss li a {
  color: var(--primaryColor);
}

.wp-block-latest-comments__comment-meta .wp-block-latest-comments__comment-link {
  display: block;
  margin-top: 10px;
}

.block-editor .wp-block-latest-comments p {
  margin-bottom: 0;
}

.wp-block-latest-comments .wp-block-latest-comments__comment {
  font-size: 0.833333em;
  line-height: var(--lineHeight);
}
  
/*=============================
WIDGET SEARCH
=============================*/

.wp-block-search {
  display: flex;
  flex: 1;
  flex-wrap: wrap;

  label{
    margin-bottom: 15px;
  }

  .wp-block-search__inside-wrapper{
    position: relative;
  }

  .wp-block-search__input {
    border: 1px solid var(--genborderColor);
  }

  .wp-block-search__button {
    margin: 0 !important;
    border-radius: 0;
  }
}

#secondary, footer{
  .wp-block-search{
    label{
      display: none;
    }

    .wp-block-search__button {
      width: 50px;
      height: 50px;
      border: none;
      box-shadow: none;
      background-color: var(--genLinkColor);
      background-image: url('data:image/svg+xml; utf-8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23fff" d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"></path></svg>');
      background-repeat: no-repeat;
      background-size: 20px;
      background-position: center;
      text-indent: 60px;
      white-space: nowrap;
      overflow: hidden;
      position: absolute;
      right: 0;
    }
  } 

  .wp-block-categories li a, 
  .wp-block-archives li a, .wp-block-latest-comments li a, .wp-block-rss li a {
    color: var(--widgetsLinkColor);
  }

  .wp-block-categories li a:hover, 
  .wp-block-archives li a:hover, .wp-block-latest-comments li a:hover, .wp-block-rss li a:hover {
    color: var(--widgetsLinkHoverColor);
  }
}
  
/*============================
WIDGET CALENDAR
============================*/

.wp-block-calendar {
  table {
    margin: 0;

    caption {
      color: var(--primaryColor);
    }

    tr {
      td {
        padding: 10px 0;
      }
    }
  }

  .wp-calendar-nav-prev {
    float: left;
  }

  .wp-calendar-nav-next {
    float: right;
  }
}