

.tax-gallery_procedures article .entry-title a {
    color: #3e3e3d;
}
.tax-gallery_procedures article .entry-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    width: 100%;
}
.tax-gallery_procedures .patient__info {
    width: 100%;
}
.tax-gallery_procedures .patient__info--inner {
    text-align: center;
}
.tax-gallery_procedures .patient__info--inner a {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.tax-gallery_procedures .patient__info--inner img:not(:only-of-type) {
    max-width: calc(50% - .5rem);
}
.tax-gallery_procedures article .read-more {
    background: #7f7f7f;
    color: #fff;
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    transition: .3s;
}
.tax-gallery_procedures article .read-more:hover {
    background: #607182;
}
.single-gallery_post_type .gallery-nav a:hover{
    background: #607182;
}
.post-navigation a:hover, .posts-navigation a:hover {
    background-color: #607182;
}
.tax-gallery_procedures .posts-navigation .nav-links {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    min-width: 100%;
}
.tax-gallery_procedures .posts-navigation .nav-links .nav-previous {
    text-align: right;
}
.post-navigation a, .posts-navigation a {
    background-color: #43474e;
    color: #fff;
    display: inline-block;
    padding: 10px 25px;
    text-transform: capitalize;
}
.tax-gallery_procedures .posts-navigation .nav-links .nav-previous i {
    margin-left: 5px;
}
.tax-gallery_procedures .posts-navigation .nav-links .nav-next, .tax-gallery_procedures .posts-navigation .nav-links .nav-previous {
    float: none;
    width: 100%;
}
nav.navigation.posts-navigation {
    width: 100%;
}
.single-gallery_post_type  .entry-title {
    text-align: center;
  }

  .gallery-nav {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
     .gallery-nav  a {
      display: inline-block;
      background: $color_dgrey;
      color: #fff;
      padding: 10px 20px;
      margin: 5px 10px;
    }

  .cycle-slideshow {
    margin-bottom: 40px;
    position: relative;
  }

  // slider navigation
  .slideshow__nav {
    position: absolute;
    z-index: 150;
    width: 100%;
    justify-content: space-between;
    font-size: 20px;
    display: flex;
      font-size: 30px;
      top: 50%;
      transform: translateY(-50%);
    }
  .cycle-slide {
    width: 100%;
    display: flex !important;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0 25px;  
  }
  .img__wrapper--before:not(:last-child) { text-align: right; }

  .img__wrapper--before + .img__wrapper--after {
    margin-left: 2%;
    text-align: left;
  }


  .cycle-pager {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    }

    .gallery__carousel--item {
      max-width: calc(50% - 5px);
      display: flex;
      padding-bottom: 5px;
      border-bottom: 2px solid $color_dgrey;
      }

.post-navigation .nav-links {
    display: flex;
    justify-content: end;
    width: 100%;
}

  .patient__stats {
    padding: 15px 0;
  }

  .patient__stats dl {
    display: flex;
    justify-content: center;
    margin: 0 0 5px;
  }

  .patient__stats dd {
    margin: 0 10px;
  }

  .patient__stats p {
    margin: 0;
  }
  .after-content {
    margin-bottom: 50px;
  }
.single-gallery_post_type .gallery-nav a {
    background: #43474e;
    color: #fff;
    display: inline-block;
    margin: 5px 10px;
    padding: 10px 20px;
}
.post-navigation, .posts-navigation {
    border-top: 1px solid rgba(66,66,66,.3);
    padding-top: 50px;
}
.single-gallery_post_type .cycle-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.single-gallery_post_type .cycle-pager .gallery__carousel--item {
    border-bottom: 2px solid #43474e;
    display: flex;
    max-width: calc(50% - 5px);
    padding-bottom: 5px;
    cursor: pointer;
}
.single-gallery_post_type .cycle-pager .gallery__carousel--item img:not(:only-of-type) {
    max-width: 50%;
}
.single-gallery_post_type .cycle-pager .gallery__carousel--item.cycle-pager-active {
    border-bottom-color: #424242;
}
.single-gallery_post_type .patient__stats {
    padding: 15px 0;
}
.single-gallery_post_type .patient__stats dl {
    display: flex;
    justify-content: center;
    margin: 0 0 5px;
}
.single-gallery_post_type .slideshow__nav {
    display: flex;
    font-size: 20px;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    z-index: 150;
}
.single-gallery_post_type .slideshow__nav {
    font-size: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.single-gallery_post_type .slideshow__nav {
    font-size: 36px;
}
.single-gallery_post_type .slideshow__nav a {
    color: #43474e;
    cursor: pointer;
    position: relative;
}
.single-gallery_post_type .cycle-slideshow:hover>.slideshow__nav {
    display: flex;
}
.single-gallery_post_type .slideshow__nav span {
   color: transparent;
}
.slideshow__nav a.cycle-prev:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 4px solid #000000;
    border-left: 4px solid #000000;
    left: 5px;
    right: auto;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(-45deg);
}
.slideshow__nav a.cycle-next:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 4px solid #000000;
    border-right: 4px solid #000000;
    left:auto;
    right: 5px;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
}
.single-gallery_post_type .patient__description>h2:first-of-type {
    display: none;
}
.single-gallery_post_type .patient__description {
    border-bottom: 2px solid #43474e;
    margin-bottom: 50px;
    padding-bottom: 50px;
    text-align: center;
    margin-top: 20px;
}
.single-gallery_post_type .after-content {
    margin-bottom: 50px;
}
.gallery-procedures {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tax-gallery_procedures .patient__description {
    margin-top: auto;
}
.gallery-procedures>li.cat-item {
    border-bottom: 1px solid rgba(0,0,0,.2);
    border-top: 5px solid #798b9a;
    display: flex;
    flex-direction: column;
    margin: 40px 0 0;
    width: 100%;
}
.gallery-procedures>li.cat-item>a {
    border-bottom: 1px solid rgba(0,0,0,.2);
    color: #1c1c1c;
    font-family: trajan-pro-3,serif;
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 20px;
    pointer-events: none;
}
.gallery-procedures figure {
    margin-top: 0;
    order: -1;
    width: 100%;
}
.gallery-procedures figure img {
    width: 100%;
}
.gallery-procedures .children {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.gallery-procedures .children li {
    margin-bottom: 5px;
}
.gallery-procedures .children a {
    color: #1c1c1c;
    display: block;
    font-size: 16px;
    padding: 5px 15px 5px 25px;
    position: relative;
}
.gallery-procedures .children a:before {
    border: 5px solid transparent;
    border-left-color: #000;
    content: "";
    display: inline-block;
    left: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.gallery-procedures .children a:hover {
    background: #798b9a;
    color: #fff;
}
.gallery-procedures .children a:hover:before {
    border-color: transparent transparent transparent #fff;
}
.gallery-procedures .cat-item .cat-item .children {
    margin-left: 25px;
}
.tax-gallery_procedures article {
    background: #efefef;
    border-top: 5px solid #424242;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    padding: 30px 15px;
    text-align: center;
}
.single-gallery_post_type  nav.navigation.post-navigation {
    padding-bottom: 50px;
}
.single-gallery_post_type .cycle-pager .gallery__carousel--item img {
    max-height: 80px;
    object-fit: cover;
    width: auto;
}
.single-gallery_post_type .post-navigation .nav-links {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
.single-gallery_post_type .post-navigation .nav-links div {
    margin: 5px;
    width: auto;
}
.single-gallery_post_type .post-navigation .nav-links div.nav-next {
    margin-left: auto;
}
.single-gallery_post_type .cycle-pager .gallery__carousel--item.cycle-pager-active img {
    opacity: .75;
}
nav.navigation.posts-navigation .nav-previous a::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #fff;
    position: absolute;
    top: 19px;
}
nav.navigation.posts-navigation .nav-next a::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 6px solid #fff;
    position: absolute;
    top: 19px;
    left: 12px;
}
nav.navigation.posts-navigation .nav-next a,
nav.navigation.posts-navigation .nav-previous a{
    position: relative;
}
.galleryitem__headline {
    margin-bottom: 35px;
}
.single-gallery_post_type .slideshow__nav span {
    display: none;
}
.wrapper {
    justify-content: center;
}
.single-gallery_post_type #header{
    z-index: 991;
}

@media screen and (min-width: 768px) {
  .gallery-procedures .children {
    flex: 1 1 50%;
}
.gallery-procedures .children a {
    font-size: 18px;
}
.gallery-procedures {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr 1fr;
}
.gallery-procedures>li.cat-item>a {
    font-size: 35px;
}
}
@media screen and (min-width: 1025px) {
     .wrapper {
      display: flex;
      flex-wrap: wrap;
    }

.gallery-procedures {
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr 1fr;
}
.tax-gallery_procedures article {
    margin: 0 15px 30px;
    width: calc(50% - 30px);
}

}
@media screen and (max-width: 991px) {
.single-gallery_post_type .slideshow__nav {
    top: auto;
    transform: none;
    bottom: -18px;
}
}
