/**  Ссылки внутри постов */
article li a, article p a {
    border-radius: 2px;
    padding: 0 5px;
    white-space: pre-wrap;
    color: #0075FF;
    background: rgba(0,117,255,0.12);
    position: relative;
}

article li a:hover, article p a:hover {
    background: rgba(0,117,255,0.3)
}

article li a:visited, article p a:visited {
    color: #4F298C;
    background: rgba(79,41,140,0.12)
}

article li a:visited:hover, article p a:visited:hover {
    background: rgba(79,41,140,0.3)
}

article a.image {
    border-radius: inherit;
    padding: inherit;
    background: inherit;
}

@media screen and (min-width: 800px) {
  .menu-header .children, .menu-header .sub-menu {
    top: 32px;
  }
}

.owl {
  position: fixed; /* Абсолютное позиционирование галереи */
  bottom: 0px; /* Положение от нижнего края */
  right: 15px; /* Положение от правого края */
  line-height: 1px;
  z-index: 999;
}

/** отключение галереи на планшете */
@media screen and (max-width: 1540px) {
  .owl {
    display: none;
  }
}


/** Эффект при наведении на тумбнайлы */
#posts-wrapper figure.entry-thumbnail {
  display: inline-block;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  --photoboxOverlay: rgba(108, 130, 175, .7);
  /*--photoboxAnimationDuration: .5s;*/
}

#posts-wrapper figure.entry-thumbnail a {
  position: relative;
  overflow: hidden;
  display: block;
}

#posts-wrapper figure.entry-thumbnail img {
  display: block;
  max-width: 100%;
}

#posts-wrapper figure.entry-thumbnail a:before{
  content: "";
}

#posts-wrapper figure.entry-thumbnail a:before{
  width: 100%;
  height: 100%;
  
  background-color: var(--photoboxOverlay, rgba(0, 0, 0, .8));
  opacity: 0;
  transition: opacity var(--photoboxAnimationDuration, .14s) cubic-bezier(0.71, 0.05, 0.29, 0.9);
  will-change: opacity;
  
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

#posts-wrapper figure.entry-thumbnail:hover a:before{
  opacity: 1;
}

#posts-wrapper figure.entry-thumbnail img {
 transition: transform var(--photoboxAnimationDuration, .4s) cubic-bezier(0.71, 0.05, 0.29, 0.9);
  will-change: transform;
 transform: scale(1) translate(0, 0);
}

#posts-wrapper figure.entry-thumbnail:hover img {
  transform: scale(1.1) translate(2%, 2%);
}

figure.entry-thumbnail span {
  display: none;
}

#posts-wrapper figure.entry-thumbnail span {
  width: 98%;
  text-align: center;
  display: block;
  color: #fff;
  
  opacity: 0;  
  transition: opacity calc(var(--photoboxAnimationDuration, .4s) / 4) cubic-bezier(0.71, 0.05, 0.29, 0.9);
  will-change: opacity;
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

#posts-wrapper figure.entry-thumbnail:hover span {
  opacity: 1;
  transition-duration: var(--photoboxAnimationDuration, .4s);
  transition-delay: calc(var(--photoboxAnimationDuration, .4s) / 2);
}