.if-tabs-wrapper {}

.if-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: center;
}

.if-tab-button {
  flex: 1 1 100px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  font-family: "Inter", Sans-serif;
  font-size: 18px;
  line-height: 1.2em;
  font-weight: 800;
  text-transform: uppercase;
  color: #3970B5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 1024px) {
  .if-tab-button {
    flex-basis: 200px;
  }
}
.if-tab-button.active {
  background: #DEE8F2;
  color: #3970B5;
}

.if-tab-button.tax_post {
  display: none;
}
.if-featured-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 8px;
}

.if-tab-content {
  display: none;
  padding: 40px 50px 0;
}
@media (max-width: 1024px) {
  .if-tab-content {
    display: none;
    padding: 30px 20px 0;
  }
}
.if-tab-content.active {
  display: block;
  background-color: #DEE8F2;
}
.if-tab-content.active.tax_post {
  background-color: #fff;
}

.if-no-gallery-found {
  text-align: center;
  font-family: "Inter", Sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #3970B5;
  padding-bottom: 30px;
}
.if-custom-gallery-grid {
    column-count: 4;
    column-gap: 30px;
    column-width: 300px;
    max-width: 1290px;
    margin: 0 auto;
}
.if-custom-gallery-grid.six-items {
    column-count: 3;
    max-width: 990px;
}
@media (max-width: 1024px) {
  .if-custom-gallery-grid {
      column-gap: 15px;
  }
}
@media (max-width: 767px) {
  .if-custom-gallery-grid {
      column-count: 2;
  }
}
.if-custom-gallery-grid.four-items {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}
.if-custom-gallery-grid .grid-item-wrap {
  padding-bottom: 30px;
  break-inside: avoid;
}
.if-custom-gallery-grid .grid-item {
    position: relative;
}
@media (max-width: 1024px) {
  .if-custom-gallery-grid .grid-item {
      margin-bottom: 15px;
      position: relative;
  }
}
.if-custom-gallery-grid a:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #012234ad;
	transition: all 0.3s ease;
}
.if-custom-gallery-grid a:hover:before {
	background-color: rgba(0, 0, 0, 0);
}
.if-custom-gallery-grid img {
    display: block;
}
.if-custom-gallery-grid .grid-item img {
    object-fit: cover;
    width: 100%;
    height: auto;
}
.if-custom-gallery-grid .grid-item-wrap:nth-child(1) img,
.if-custom-gallery-grid .grid-item-wrap:nth-child(4) img,
.if-custom-gallery-grid .grid-item-wrap:nth-child(5) img,
.if-custom-gallery-grid .grid-item-wrap:nth-child(8) img {
    aspect-ratio: 3/1.6;
}
.if-custom-gallery-grid .grid-item-wrap:nth-child(2) img,
.if-custom-gallery-grid .grid-item-wrap:nth-child(3) img,
.if-custom-gallery-grid .grid-item-wrap:nth-child(6) img,
.if-custom-gallery-grid .grid-item-wrap:nth-child(7) img {
    aspect-ratio: 6.5/5;
}
@media (max-width: 767px) {

	.if-custom-gallery-grid .grid-item-wrap:nth-child(1) img,
	.if-custom-gallery-grid .grid-item-wrap:nth-child(4) img,
	.if-custom-gallery-grid .grid-item-wrap:nth-child(6) img,
	.if-custom-gallery-grid .grid-item-wrap:nth-child(7) img {
		aspect-ratio: 3/1.6;
	}

	.if-custom-gallery-grid .grid-item-wrap:nth-child(2) img,
	.if-custom-gallery-grid .grid-item-wrap:nth-child(3) img,
	.if-custom-gallery-grid .grid-item-wrap:nth-child(5) img,
	.if-custom-gallery-grid .grid-item-wrap:nth-child(8) img {
		aspect-ratio: 6.5/5;
	}

}
.if-custom-gallery-grid .grid-item-overlay {
	position: absolute;
	bottom:0;
	width: 100%;
	color: #fff;
	background-color: #00000073;
	padding: 5px 10px;
	opacity: 0;
	transition: all 0.3s ease;
	text-align: center;
	font-family: 'Inter', Sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-transform: capitalize;
}
.if-custom-gallery-grid a:hover .grid-item-overlay {
	opacity: 1;
}

/* Featured Image Background */
.if-featured-bg-wrapper .elementor-widget-shortcode,
.if-featured-bg-wrapper .elementor-widget-shortcode .elementor-shortcode {
  height: 100%;
}
.if-featured-bg-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  min-height: 250px;
}
/* Magnific Popup */
.mfp-wrap {
  z-index: 9999 !important;
}
.mfp-arrow {
  background-color: rgba(0, 0, 0, 0.4) !important;
}
.mfp-close {
  background-color: rgba(0, 0, 0, 0) !important;
}
