/**
 *
 * Scoped UI elements and third-party plugin overrides
 *
 *
 **/

/*
 * Media styles
 */

.wp-block-video,
.wp-block-image img,
.wp-block-embed {
  border-radius: var(--rounded-corners);
  overflow: hidden;
}

.wp-block-image.is-style-circle img,
.wp-block-media-text.is-style-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  border-radius: 999px;
  border: 0.3rem solid rgba(0, 0, 0, 0.12);
}

/* `no effects` style */

.wp-block-video.is-style-no-effects,
.wp-block-image.is-style-no-effects img,
.wp-block-embed.is-style-no-effects,
.wp-block-media-text.is-style-no-effects img {
  border-radius: 0;
  overflow: auto;
}

/*
 * Photo credit text
 */

.photo-credit {
  font-family: "Overpass Mono", monospace;
  font-size: var(--font-size-xxs);
  color: var(--gray-600);
  margin-top: -0.2rem;
  text-transform: uppercase;
}

/*
 * Logo gallery styles
 */

.wp-block-gallery.has-nested-images.logo-gallery figure.wp-block-image {
  height: 150px;
}

.wp-block-gallery.has-nested-images.logo-gallery figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*
 * Read more link styles
 */

.wp-block-post-excerpt__more-link {
  font-family: "Overpass Mono", ui-monospace;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-900);
  text-decoration-color: var(--wp--preset--color--blue-500);
  font-weight: 700;
  font-size: 0.8em;
}

.wp-block-post-excerpt__more-link:hover {
  text-decoration-color: var(--wp--preset--color--blue-900);
  font-weight: 600;
}

/*
 * CookieYes banner styles
 */

.cky-preference-title,
.cky-title {
  font-family: "Interstate", sans-serif !important;
  font-weight: 600 !important;
  color: var(--wp--preset--color--gray-900) !important;
  font-size: 1.2rem !important;
  letter-spacing: -0.01em !important;
}

.cky-btn {
  font-family: "Overpass Mono", sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--gray-900) !important;
  background-color: var(--wp--preset--color--blue-100) !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.35em !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.cky-btn:hover,
.cky-btn-accept:hover {
  opacity: 1 !important;
}

.cky-btn:hover {
  background-color: var(--wp--preset--color--blue-200) !important;
}

.cky-btn-accept {
  background-color: var(--wp--preset--color--blue-700) !important;
  color: #fff !important;
}

.cky-btn-accept:hover {
  background-color: var(--wp--preset--color--blue-900) !important;
}

/*
 * Home page latest posts special classes
 */

.exclude-featured .category-featured {
  display: none;
}

/*
 * WP post query block (requires CSS class) + YARPP related posts block
 */

/* block CSS class for latest posts block; specified in settings for YARPP block */
.sidebar-posts {
  padding: 0;
}

.sidebar-posts li {
  list-style: none;
  line-height: 1.7rem;
  margin-bottom: 1rem;
}

.sidebar-posts li a {
  font-weight: 600;
  font-size: var(--font-size-book);
  text-decoration-line: underline;
  text-decoration-color: var(--wp--preset--color--blue-400);
  letter-spacing: -0.02em;
}

.sidebar-posts li a:hover {
  text-decoration-color: var(--wp--preset--color--blue-800);
}
