.custom-blog-gallery .owl-theme .owl-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.custom-blog-gallery .owl-theme .owl-dots .owl-dot span {
  background-color: #99b2dd;
}

.custom-blog-gallery .owl-theme .owl-dots .owl-dot.active span,
.custom-blog-gallery .owl-theme .owl-dots .owl-dot:hover span {
  background-color: #3a5974;
}

.custom-blog-gallery .owl-theme .owl-stage {
  display: flex;
}

.custom-blog-gallery__handler {
  display: flex;
  flex-wrap: wrap;
}

.blog-section-header {
  position: relative;
  font-size: 2rem;
  color: rgb(9, 47, 81);
  padding: 15px 0;
  z-index: 4;
}

.blog-section-header::before {
  content: ".";
  font-family: "Red Hat Display", sans-serif;
  font-size: 6rem;
  color: #99b2dd;
  position: relative;
}

.custom-blog-gallery__wrapper {
  flex: 0 0 70%;
  width: 70%;
}

.custom-blog-gallery__wrapper.owl-carousel {
  width: 70%;
}

.custom-blog-gallery__small-articles {
  flex: 0 0 30%;
}

.custom-blog-gallery__categories {
  display: flex;
  margin-bottom: 8px;
}

.custom-blog-gallery__category {
  background: #99b2dd;
  color: #fff;
  font-size: 12px;
  padding: 0 15px;
  border-radius: 4px;
  margin-right: 8px;
}

.custom-blog-gallery__categories.custom-blog-gallery__categories--small
  .custom-blog-gallery__category {
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 10px;
}

.custom-blog-gallery__single {
  height: 100%;
}

.custom-blog-gallery__single a,
.custom-blog-gallery__small-article a {
  display: block;
  height: 100%;
  position: relative;
}

.custom-blog-gallery__single a:hover h3 {
  text-decoration: underline;
}

.custom-blog-gallery .custom-blog-gallery__wrapper a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-blog-gallery__single a::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0,
    rgba(9, 47, 81, 0.8) 100%
  );
  z-index: 2;
}

.custom-blog-gallery__overlay,
.custom-blog-gallery__small-article-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 15px;
  z-index: 3;
}

.custom-blog-gallery__overlay h3 {
  color: #fff;
  font-size: 2rem;
}

.custom-blog-gallery__small-articles {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.custom-blog-gallery__small-article {
  flex: 0 0 33.333%;
  padding: 0 0 8px 8px;
}

.custom-blog-gallery__small-article:last-child {
  padding-bottom: 0;
}

.custom-blog-gallery__small-article a {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.custom-blog-gallery__small-article a:hover h3 {
  text-decoration: underline;
}

.custom-blog-gallery__small-article h3 {
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
}

.custom-blog-gallery__small-article img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-all-categories {
  margin-top: 120px;
}

.blog-category__posts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-category__posts .post-img {
  height: 200px;
}

.blog-category__posts .post-img.post-img-no-thumbnail {
  display: flex;
  align-items: center;
  padding: 0 30px;
  background: #fcfcfc;
}

.blog-category__posts article {
  flex: 0 0 calc(33.333% - (8px * 2 / 3));
}

.blog-category article a img {
  border-radius: 0;
}

.blog-category article,
.blog-category article a {
  border: none;
}

.blog-category article a {
  display: block;
  height: 100%;
}

.blog-category .post-content {
  border: none !important;
  padding: 8px 8px;
}

.blog-category .blog-category__post-link {
  background-color: transparent;
  transition: 0.4s background-color ease-in-out;
  border-radius: 0;
}

.blog-category .blog-category__post-link:hover {
  background-color: #e1e3ef;
  transition: 0.4s background-color ease-in-out;
}

.blog-see-also__wrapper {
  display: flex;
}

@media screen and (max-width: 768px) {
  .custom-blog-gallery__wrapper {
    width: 100%;
    flex: 0 0 100%;
  }

  .custom-blog-gallery__small-articles {
    display: none;
    visibility: hidden;
  }

  .blog-category__posts article {
    flex: 0 0 calc(50% - (8px / 2));
  }

  .custom-blog-gallery__overlay h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .blog-all-categories {
    margin-top: 60px;
  }
}

@media screen and (max-width: 480px) {
  .blog-category__posts article {
    flex: 0 0 100%;
  }
}
