.modern-living-section{
  margin-left:-40px;
  margin-right:-40px;
}

.modern-living-inner{
  margin-left:1.92%;
  margin-right:1.92%;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.modern-living-services{
  display: flex;
  flex-direction: row;
}
.grids{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 66%;
}
.grids .one{
  width: calc(33% - 20px);
  transition: all 0.2s ease;
  margin: 10px;
  overflow: hidden;
}
.grids .one div{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  padding: 20px;
  height: 328px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grids .one div:hover{
  transition: all 0.2s ease;
  overflow: hidden;
  transform: scale(1.02);
}
.grids .one .grave15 {
  font-family: gravesend-sans, Verdana, Geneva, sans-serif;
  font-size: 15px;
  color: #fff;
  margin-bottom: -5px;
  letter-spacing: 0.5px;
  line-height: 34px;
}
.grids .one .roboto14 {
  font-family: 'Roboto';
  font-size: 14px;
  color: #fff;
  line-height: 34px;
}
.modern-living-section .block{
  width: 33%;
  margin: 10px 0;
  padding: 100px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modern-living-section .block h2{
  font-size:30px;
  text-transform:uppercase;
  letter-spacing:0.07em;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.1em;
}
.modern-living-section .block p {
  margin-top: 0;
  margin-bottom: 20px;
}
.modern-living-section .block div a {
  text-transform: uppercase;
  border: 2px solid;
  letter-spacing: 2.55px;
  outline: 0;
  font-weight: 700;
  color: #fff;
  border-color: transparent;
  background: #002b49;
  font-size: 17px;
  line-height: 23px;
  padding: 20px;
  display: inline-block;
  transition: all .2s;
}
.modern-living-section .block div a:after {
  margin-left: 13.6px;
  transition: all 0.3s ease;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.002' height='12.495' viewBox='0 0 20.002 12.495'%3E*/%0A/* %3Cpath id='Path_1244' data-name='Path 1244' d='M13.086-1.559a.8.8,0,0,1-.273-.629.931.931,0,0,1,.275-.663L16.8-6.562H.938A.947.947,0,0,1,0-7.535a.93.93,0,0,1,.938-.9H16.8L13.089-12.15a.937.937,0,0,1,0-1.326.937.937,0,0,1,1.326,0l5.313,5.313a.937.937,0,0,1,0,1.326L14.414-1.525A.915.915,0,0,1,13.086-1.559Z' transform='translate(0 13.75)' fill='%23fff'/%3E*/%0A/*%3C/svg%3E");
}
.modern-living-section .block div a:hover {
  border-color: #fff;
  background: var(--button_gradient_top_color_hover);
  --button_gradient_top_color_hover: hsla(0,calc(0% - 5%),calc(100% - 10%), 0%);
}
.modern-living-section .block div a:hover:after {
  margin-left: 17.5px;
  transition: all 0.3s ease;
}
.modern-living-section.con_pos_left .modern-living-services {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.modern-living-section  .block div a.style2 {
  background: #93404A;
}
.modern-living-section .block div a.style2:hover {
  background: transparent;
}

.modern-living-section  .block div a.style3 {
  background: #008D6D;
}
.modern-living-section .block div a.style3:hover {
  background: transparent;
}
.modern-living-section  .block div a.style4 {
  background: #8AB7C3;
}
.modern-living-section .block div a.style4:hover {
  background: transparent;
}
.modern-living-section.mod_style2 {
  display: flex;
  justify-content: center;
}
.modern-living-section.mod_style2 .modern-living-wrap {
  width: 104%;
  max-width: 104%;
  margin-left: calc(-4% / 2);
  margin-right: calc(-4% / 2);
  padding: 0 40px;
}
.modern-living-section.mod_style2 .grids .one {
  width: calc(50% - 20px);
}
.modern-living-section.mod_style2.cs_style .block {
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width:1200px){
  .modern-living-section {
	 width: 100%;
	 margin: 0;
	 display: flex;
  }
  .modern-living-inner {
	 margin: 0;
  }
  .modern-living-section .block {
	 padding-left: 30px;
	 padding-right: 30px;
  }
  .modern-living-section.mod_style2 .modern-living-wrap{
	 padding: 0 20px;
  }

}
@media only screen and (max-width: 800px) {
  .modern-living-services {
	 flex-direction: column-reverse;
  }
  .modern-living-section .block {
	 width: 100%;
  }
  .grids {
	 width: 100%;
  }
  .grids .one {
	 width: calc(50% - 10px);
	 margin: 10px 10px 10px 0;
  }
  .grids .one:nth-child(even) {
	 margin: 10px 0 10px 10px;
  }
  .modern-living-section .block h2 {
	 font-size: 28px !important;
	 line-height: 28px !important;
  }
  .modern-living-section.con_pos_left .modern-living-services {
	 flex-direction: column-reverse;
  }
  .modern-living-section.mod_style2 .grids .one {
	 width: calc(50% - 10px);
  }
  .modern-living-section.mod_style2 .grids .one:nth-child(even) {
	 margin-right: 0;
  }
  .modern-living-section.mod_style2 .modern-living-wrap{
	 padding: 0 10px;
  }
}

@media only screen and (max-width: 650px) {
  .grids .one {
	 width: 100%;
	 margin: 10px 0 !important;
  }
  .modern-living-section.mod_style2 .grids .one {
	 width: 100%;
  }
}
