.custom-section-widget {
  position: relative;
  width: 100%;
  height: 1040px;
  overflow: hidden;
}

.custom-section-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section-gallery {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section-gallery[data-active="true"] {
  opacity: 1;
  z-index: 1;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.gallery-slide[data-active="true"] {
  opacity: 1;
}

.custom-section-overlay {
  position: absolute;
  right: 0;
  z-index: 2;
  width: 40%;
  height: 100%;
  background: rgba(111, 38, 47, 0.90);
  backdrop-filter: blur(3px);
  color: #fff;
  padding: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 815px;
}
.custom-section-overlay h2{
  color: #FFF;
  font-size: 45px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 54px */
  letter-spacing: 1.35px;
  text-transform: capitalize;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.section-tab {
  background: none;
  border: 3px solid #FFF;
  color: #fff;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 19px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.57px;
  text-transform: none;
}

.section-tab.active,
.section-tab:hover {
  background: #fff;
  color: #000;
}

.section-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section-content.active {
  display: block;
  opacity: 1;
}

.section-buttons {
  margin-top: 25px;
}

.section-buttons .btn {
  margin-right: 10px;
}
.section-text p{
  color: #FFF;
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.57px;
  margin-bottom: 0;
}

@media only screen and (max-width: 1460px) {
  .custom-section-widget{
    height: 700px;
  }
}
@media only screen and (max-width: 959px) {
  .custom-section-bg{
    position: relative;
    float: left;
    width: 100%;
    height: 430px;
  }
  .custom-section-overlay{
    position: relative;
    float: left;
    width: 100%;
    right: auto;
    min-width: 1px;
    display:block;
    padding: 40px 25px;
    height: auto;
  }
  .custom-section-widget {
	height: auto;
}
.custom-section-overlay h2{
font-size: 30px;
font-weight: 700;
line-height: normal;
letter-spacing: 0.9px;
text-transform: capitalize;
}
.section-text p{

}
}
@media only screen and (max-width: 660px) {
  .section-nav{
    justify-content: space-between;
    gap: 25px;
  }
  .section-buttons .btn{
    margin-bottom: 15px;
  }
}
