/*------------------------------------------------------------------
[Table of contents]

1. WordPress Overrides
  1.1. WordPress Overrides - Media Queries
-------------------------------------------------------------------*/
/*------------------------------------------------------------------*/
/**
 * 1. WordPress Overrides
 */
body.admin-bar .valkivid-header,
body.admin-bar .valkivid-navigation-mobile {
  top: 32px;
}

/**
 * Alignnone
 */
.alignnone {
  margin: 40px 20px 20px 0;
}

/**
 * Aligncenter
 */
.aligncenter,
div.aligncenter {
  display: block;
  margin: 40px auto 0;
}

/**
 * Alignright
 */
.alignright {
  float: right;
  margin: 40px 0 20px 20px;
}

/**
 * Alignleft
 */
.alignleft {
  float: left;
  margin: 40px 20px 20px 0;
}

/**
 * Linked Image Alignment
 */
a img.alignnone, a img.alignleft {
  margin: 40px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a img.alignright {
  float: right;
  margin: 40px 0 20px 20px;
}

a img.alignleft {
  float: left;
}

/**
 * Caption
 */
.wp-caption {
  max-width: 100%;
  text-align: center;
}

.wp-caption.alignnone, .wp-caption.alignleft {
  margin: 40px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 40px 0 20px 20px;
}

.wp-caption img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0 none;
}

/**
 * Caption Text
 */
.wp-caption-text {
  font-size: calc((16 / var(--valkivid-font-size-base)) * 1rem);
}

/**
 * Gallery Caption
 */
.gallery-caption {
  font-style: italic;
}

/**
 * Screen Reader Text
 */
.screen-reader-text {
  width: 1px;
  height: 1px;
  border: 0;
  margin: -1px;
  padding: 0;
  font-weight: 700;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
}

.screen-reader-text:focus {
  display: block;
  width: auto;
  height: auto;
  padding: 15px 23px 14px;
  background-color: #eee;
  color: #444;
  font-size: 1em;
  line-height: normal;
  text-decoration: none;
  top: 5px;
  left: 5px;
  z-index: 100000;
  clip: auto !important;
  clip-path: none;
}

/**
 * WP Block Embed
 */
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  padding-top: 56.25%;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/**
 * WP Block Pullquote
 */
.wp-block-pullquote {
  padding: 12px 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/**
 * WP Block Separator
 */
.wp-block-separator {
  height: 1px;
  background-color: var(--valkivid-divider-color);
  border: none;
}

.wp-block-separator.is-style-wide {
  height: 4px;
}

/**
 * WP Block File
 */
.wp-block-file a:not(.wp-block-file__button) {
  color: var(--valkivid-global-primary-color);
  text-decoration: none;
}

.wp-block-file a:not(.wp-block-file__button):focus {
  text-decoration: underline;
}

/**
 * Blocks Gallery Grid
 */
.blocks-gallery-grid {
  padding-left: 0;
}

/**
 * WP Block Search
 */
.searchform .wp-block-search__inside-wrapper,
.wp-block-search .wp-block-search__inside-wrapper {
  display: block;
}

.searchform .wp-block-search__inside-wrapper button[type="submit"],
.wp-block-search .wp-block-search__inside-wrapper button[type="submit"] {
  margin-left: 0;
  border: none;
}

/**
 * WP Block Calendar
 */
.wp-block-calendar table th {
  background-color: transparent;
  border: none;
  font-weight: 700;
}

.wp-block-calendar table caption,
.wp-block-calendar table tbody {
  color: var(--valkivid-text-primary-color);
}

.wp-block-calendar table tbody td {
  border: none;
  padding: 10px;
}

/**
 * WP Calendar Table
 */
.wp-calendar-table caption {
  margin-bottom: 18px;
}

/**
 * WP Calendar Nav
 */
.wp-calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.wp-calendar-nav a {
  color: var(--valkivid-global-primary-color);
  text-decoration: none;
}

.wp-calendar-nav a:focus {
  text-decoration: underline;
}

/**
 * WP Block Latest Posts
 */
.wp-block-latest-posts__post-date {
  color: var(--valkivid-text-primary-color);
}

/**
 * WP Block Table
 */
.wp-block-table.is-style-stripes {
  border-bottom: none;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: var(--valkivid-post-author-background-color);
}

/**
 * 1.1. WordPress Overrides - Media Queries
 */
@media screen and (max-width: 782px) {
  body.admin-bar .valkivid-header,
  body.admin-bar .valkivid-navigation-mobile {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}