

.box1, .box2 {
    align-items: stretch;
    display: flex;
    flex: 1;
}

.box1buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
    width: 100%;
       align-content: center;
        align-items: stretch;
    flex-direction: row;
    justify-content: center;
}


.box1buttons .button {
    border-radius: 12px;
    display: flex;
        flex: 0 0 calc((100% - 2 * 12px) / 2);
    padding: 10px 20px 8px 20px;
    text-decoration: none;
    z-index: 5;
    justify-content: center;
    align-items: center;
    min-width: calc((100% - 2 * 12px) / 2);
}

.box1buttons a {
    border-radius: 5px;
    flex: 1 1 calc(50% - 20px);
    text-align: center;
    text-decoration: none;
  }

.box1text {
    align-items: center;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    text-align: left;
        width: 100%;
}

.box1contenttext {
    width: 100%;
}
.box1title {
    align-self: stretch;
    margin-bottom: auto;
    text-align: left;
}

.box2 {
    overflow: hidden;
    position: relative;
}

.box2 img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.box2-spacer {
    background: transparent;
    flex: 1;
}

.fullimage_section {
    margin-bottom: 40px;
    margin-top: 40px;
    padding-bottom: 10px;
    padding-top: 20px;
    position: relative;
}

.imageandtextcontainer {
   
    color: #fff;
    height: auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

.imageandtextcontainer.fullimageleft {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.box1content {
    /* 1) make width include padding/border */
    box-sizing: border-box;
  
    /* 2) clip (or scroll) any accidental overflow */
    overflow: hidden;  /* or overflow: auto; */
  
    /* 3) (optional) enforce a max width if you like */
    max-width: 100%;
    /* 4) (optional) clear any floated children */
  }
  .box1content::after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* if you have very long words or urls, force wrap */
  .box1contenttext {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .box1.halfboxleft {
  padding: 60px;	
  }
  
  .box1.halfboxright {
  padding: 60px;	
  }
  
  .imageandtextcontainer.fullimageleft, 
  .imageandtextcontainer.fullimageright {
      background-color: transparent;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      /* border-radius: 10px; */
      display: flex;
      /* margin: 20px; */
      padding: 20px;
      min-height: 60vh;
  }

  .imageandtextcontainer.halfboxleft .box1content, 
  .imageandtextcontainer.halfboxright .box1content {
      align-items: center;
      border-radius: 22px;
       box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin: auto;
      padding: 60px;
      width: 100%;
     height: 100%;
       box-sizing: border-box;
  }

  .imageandtextcontainer.fullimageleft .box1content, 
  .imageandtextcontainer.fullimageright .box1content {
      align-items: center;
      border-radius: 22px;
       box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin: auto;
      padding: 60px;
      width: 100%;
     height: 100%;
       box-sizing: border-box;
   }

.imageandtextcontainer.halfimageleft .box1content, 
.imageandtextcontainer.halfimageright .box1content {
    align-items: center;
    background-color: none;
    border-radius: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    padding: 5px;
    width: 80%;
    }

.imageandtextcontainer.fullimageright {
    align-items: stretch;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-around;
        min-height: 60vh;
}

.imageandtextcontainer.halfboxleft {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}






.imageandtextcontainer.halfboxright {
    align-items: stretch;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.imageandtextcontainer.halfimageleft {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}



.imageandtextcontainer.halfimageright {
    align-items: stretch;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-around;
}


@media (max-width: 768px) {
     .box1buttons a {
        flex: 1;
    }

    .box2 {
        height: 300px;
            padding: 0px;
    }

    .imageandtextcontainer {
        flex-direction: column;
        height: auto;
    }

    .imageandtextcontainer.fullimageleft {
        align-items: stretch;
        display: flex;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        justify-content: space-around;
        min-height: 2vh;
    }

    .imageandtextcontainer.fullimageleft .box2-spacer {
        min-height: 0px;
    }

    .imageandtextcontainer {
    background-color: #ffffff00;
    color: #fff;
    height: auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

    .imageandtextcontainer.fullimageleft, .imageandtextcontainer.fullimageright {
        background-image: none !important;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    display: flex;
    margin: 0px;
    padding: 0px; */
    min-height: auto;
}
    
    .imageandtextcontainer.fullimageright {
        align-items: stretch;
        display: flex;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        justify-content: space-around;
        min-height: 2vh;
    }

    .imageandtextcontainer.fullimageright .box2-spacer {
        min-height: 0px;
    }

    .imageandtextcontainer.halfboxleft {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .imageandtextcontainer.halfboxright {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .imageandtextcontainer.halfimageleft {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .imageandtextcontainer.halfimageright {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
.imageandtextcontainer.halfboxleft .box1content, .imageandtextcontainer.halfboxright .box1content,     .imageandtextcontainer.fullimageleft .box1content,  .imageandtextcontainer.fullimageright .box1content,  .imageandtextcontainer.halfimageleft .box1content, .imageandtextcontainer.halfimageright .box1content {
    align-items: center;
        border-radius: 22px;
    border: 0px solid #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    padding-left: 4vw;
     padding-right: 4vw;
     padding-bottom: 20px;
     padding-top: 10px;
    width: 100%;
    min-height: 100%;
}   
    
.box2 img {
    border-radius: 0px;
    height: auto;
    object-fit: cover;
    object-position: center;
    width: 100%;
    margin: auto;
}   
.box1buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: auto;
    width: 90%;
       align-content: center;
        align-items: stretch;
    flex-direction: row;
}
    
}