/*CSS for All Custom Modules*/
.custom-modules--wrapper {
    position: relative;
    margin: 32px 0px 0px 0px;
}

.custom-modules--wrapper + .custom-modules--wrapper {
    margin-top: 0px;
}

.custom-modules-content {
    position: relative;
    z-index: 2;
}

/* Style 1: Background Image with content on top */

.custom-modules--wrapper.style-1 .bkg-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.custom-modules--wrapper.style-1 .custom-modules-content {
    padding: 50px 32px;
}

.custom-modules--wrapper.style-1 .custom-modules-content h2,
.custom-modules--wrapper.style-1 .custom-modules-content h3,
.custom-modules--wrapper.style-1 .custom-modules-content p {
    color: #fff;
}

.custom-modules--wrapper.style-1 .custom-modules-content h2 {
    margin: 0px;
}

.custom-modules--wrapper.style-1 p {
    font-size:18px;
}

.custom-modules--wrapper.style-1:before {
    content: '';
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    z-index: 1;
}

.custom-modules--wrapper.style-1 {
}

.style-1 a.button {
    background-color: #A21F25;
    padding: 10px 52px 10px 32px;
    font-weight: bold;
}

.style-1 a.button:hover {
    background-color:white;
}

.style-1 a.button::after {
  content: "→";
  position: absolute;
  top: 50%;
  padding-left:5px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

@media (min-width: 768px){
    .custom-modules--wrapper.style-1 .custom-modules-content {
    width: 75%;
}
}

/* Style 2: 50/50 Layout */

.custom-modules--wrapper.style-2 {
    background: #A21F25;
}

.custom-modules--wrapper.style-2 .image-wrapper {
    width: auto;
  height: 250px;
  overflow: hidden;

}

.custom-modules--wrapper.style-2 .image-wrapper img {
    width: 100%;
    height: 100%;
  object-fit: cover;
  object-position: center;
}

.custom-modules--wrapper.style-2 .custom-modules-content {
    padding: 25px 32px 25px 32px;
    text-align: center;
}

.custom-modules--wrapper.style-2 .custom-modules-content h2,
.custom-modules--wrapper.style-2 .custom-modules-content h3,
.custom-modules--wrapper.style-2 .custom-modules-content p {
    color: #fff;
}

.custom-modules--wrapper.style-2 .custom-modules-content h2 {
    margin: 0px;
}

.custom-modules--wrapper.style-2 p {
    font-size:18px;
}

.style-2 a.button {
    background-color: white;
    color: black;
    padding: 10px 52px 10px 32px;
    font-weight: bold;
}

.style-2 a.button:hover {
    color: white;
    background-color:black;
}

.style-2 a.button::after {
  content: "→";
  position: absolute;
  top: 50%;
  padding-left:5px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

@media (min-width: 570px){
    .custom-modules--wrapper.style-2{
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        position: relative;
    }

   .custom-modules--wrapper.style-2 .custom-modules-content {
        padding: 25px 32px 25px 25px;
        text-align: left;
        width: 65%;
        margin-right: auto;
   }

   .custom-modules--wrapper.style-2 .image-wrapper {
     position: absolute;
      top: 0;
      bottom: 0;
      height: 100%; 
    overflow: hidden;
    }
}

@media (min-width: 768px){
    .custom-modules--wrapper.style-2 .image-wrapper {
        width: 39%;
    }
}

@media (min-width: 1150px){
    .custom-modules--wrapper.style-2 .custom-modules-content {
        padding: 45px 32px 45px 25px;
        text-align: left;
    }

    .custom-modules--wrapper.style-2 .image-wrapper {
        width: 35%;
    }
}

/* Style 3: Background color with Text No Image */

.custom-modules--wrapper.style-3 {
    background: linear-gradient(15deg, #4a080b, #A21F25);
}

.custom-modules--wrapper.style-3 .custom-modules-content {
    padding: 32px;
    text-align: center;

}

.custom-modules--wrapper.style-3 .custom-modules-content h2,
.custom-modules--wrapper.style-3 .custom-modules-content h3,
.custom-modules--wrapper.style-3 .custom-modules-content p {
    color: #fff;
}

.custom-modules--wrapper.style-3 p {
    font-size:18px;
}

.custom-modules--wrapper.style-3 .custom-modules-content h2 {
    margin-top: 0px;
    font-size: 24px;
}

.style-3 a.button {
    color: black;
    background-color: white;
    padding: 10px 32px 10px 32px;
    font-weight: bold;
}

@media (min-width: 768px){
    .custom-modules--wrapper.style-3 .custom-modules-content {
        padding: 40px 32px;
    }
}