body{
    font-family:'Source Sans Pro';
}


#site-header-wrapper{max-height: min-content;}

.fa, .fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.location-wrap{
    max-width: 1308px;
    margin: 0 auto;
}

.location-wrap p{
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    font-family: 'Source Sans Pro';
    font-size: 16px;

}

.location-wrap h2{

    text-align:center;
    margin-bottom: 20px;
    line-height: 40px;
    color: #3c3950;
    font-size: 27px;
    font-style: normal;
    font-weight: 700;
    padding: 30px 21px 0 21px;
    text-transform:uppercase;
    font-family: 'Montserrat';
}

.locations-list {
    display: grid;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    list-style:none;
    margin: 0;
    padding: 0;
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1308px;
    margin: 0 auto 0;
    padding: 0 20px;
    margin-bottom: 20px;
    margin-top:50px;
} 
 .location-title{  
    margin-bottom: 0px;
    margin-top: 0px;
    color: #169bd7;
    font-size: 17px;
    line-height: 0.1em;
    text-align:center;
    font-family: 'Source Sans Pro',sans-serif;
    text-transform: uppercase;
 }

 .location-thumbnail {
margin: 0px auto;
display:flex;
align-items:center;
justify-content: center;
    margin-bottom: 20px;
 }

.location-thumbnail img{
      
      height: auto;
    max-width: 100%;
    outline: none;
    vertical-align: middle;
  }
 

 .sold-wrapper {margin-bottom:30px;text-align: center;}
 .sold-wrapper img{max-height:60px;}


 p.location-address{ text-align:center;margin-top: 10px;}
  .location-item{  
    border-style: double;
    border-color: #CBCBCB;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    padding: 20px 20px 20px 20px;
  }
  
.location-address i{margin-right:5px;}


  .repeatable-fields {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.repeatable-fields li {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size:15px;
    line-height: 1em;
    align-items: center;
    margin-bottom: 15px;
}

.field-name,.field-details {font-size: 12px;}
.field-name,.field-details {font-family: 'Source Sans Pro' !important;}
.field-name {
    flex-shrink: 0;  /* Prevents the name from shrinking */
    padding-right: 0px;  /* Adds some space between name and the dots */
    color: #5f727f;
    font-weight:600;
    font-size: 15px;
    line-height: 1em;
}

.dotted-separator {
    flex-grow: 1;  /* Makes the separator stretch */
    border-bottom: 1px dotted #5f727f;
    margin: 0 10px;
}

.field-details {
    white-space: nowrap;  /* Prevents the details from wrapping to the next line */
    flex-shrink: 0;  /* Prevents the details from shrinking */
    padding-left: 0px;
    color: #5f727f;
    font-weight:600;
    font-size: 15px;
    line-height: 1em;
}


.field-name, .field-details {
    white-space: pre-wrap; /* Preserve newlines and spaces */
}

.details-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.details-button{
    display: inline-block;
    line-height: 1;
    background-color:#169bd7;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 3px;
    color: #fff;
    fill: #fff;
    text-align: center;
    transition: all .3s;
    font-weight:700;
}

.details-button:hover{
    
    background-color: #324986;
    color:#ffffff;
}


.locations-metabox{
    background-color: #F5FBFF;
    row-gap: 20px;
    display: flex;
    flex-direction: column;
    padding: 0 37px;
    padding-bottom: 20px;

}

.google-map-entry {width:100%;}
.google-map-entry iframe{border:0px !important;    width: 100%;}
.google-map-entry iframe.desktop {display:flex;}
.google-map-entry iframe.mobile {display:none;}

@media(max-width: 767px){
    .locations-list {  grid-template-columns: 1fr;}
    .google-map-entry iframe.desktop {display:none;}
    .google-map-entry iframe.mobile {display:flex;}
  }


  /***Header**/

.post-type-archive-locations .page-title,.tax-states_cities  .page-title{
    position: relative;
    overflow: hidden;
    background-color: #212331;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
    padding-top: 80px;
    padding-bottom: 80px;
} 

.post-type-archive-locations .page-title-title,.tax-states_cities .page-title-title{
    display: flex;
    justify-content: center;
}
.post-type-archive-locations .page-title-background-overlay,.tax-states_cities .page-title-background-overlay {
    background-color: #0000009E;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* Ken Burns Zoom Out - Keyframes */
@keyframes thegemKenburnsZoomOut {
    0% {
        -webkit-transform: scale(1.15);
        transform: scale(1.15); /* Start with a slightly zoomed-in background */
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1); /* Zoom out to the normal size */
    }
}

/* Apply the Ken Burns Zoom Out Effect */
.post-type-archive-locations .page-title-ken-burns-block .location-ken-burns-bg,.tax-states_cities .page-title-ken-burns-block .location-ken-burns-bg  {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    animation: thegemKenburnsZoomOut 15s ease-out forwards; /* Animation applied */
    z-index: 0;
}


.post-type-archive-locations .page-title-ken-burns-block .thegem-ken-burns-zoom-out.thegem-ken-burns-inited,.tax-states_cities .page-title-ken-burns-block .thegem-ken-burns-zoom-out.thegem-ken-burns-inited{
    -webkit-animation-name: thegemKenburnsZoomOut;
    animation-name: thegemKenburnsZoomOut;
}

.post-type-archive-locations  .page-title-ken-burns-background,.tax-states_cities .page-title-ken-burns-background{
    background-image: url(https://rise48equity.com/wp-content/uploads/2021/09/IMG_0074-2-scaled.jpeg);
}
.post-type-archive-locations .page-title h1,.tax-states_cities .page-title h1{color:#ffffff;z-index:2;text-align: center;padding: 0 21px;}

/***Counter***/


.counter-section {
    display: grid;
    justify-content: center;
    padding: 20px;
    background-color: #f9fafb;
    max-width: 1170px;
    margin: 0 auto 0;
    width: 100%;
    align-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-items: center;
    font-weight: 200 !important;
}

.counter {
    text-align: center;
    color: #253B80;
    font-family: "Montserrat", Sans-serif;
    width: 100%;
    font-weight: 200 !important;
    margin-top: 30px;

}

.counter-number {
    font-size: 47px;
    color: #334e68;  
      font-weight: 200 !important;
}

.counter h2, .counter p {
    margin-top: 10px;
    font-size: 1.2em;
    color: #7b8c98;
}


.location-two-column {max-width: 1212px;margin: 0 auto 0;display:flex;gap:4%;padding: 0 21px;}
.location-col-content,.location-col-img{
max-width: 48%;
}
.col-content-title {    letter-spacing: .05em;line-height: 38px;color: #3c3950;text-transform: uppercase;font-size: 22px;font-style: normal;font-weight: 700;}

.col-content-subtitle {line-height: 38px;color: #3c3950;text-transform: uppercase;font-size: 22px;font-style: normal;font-weight: 400;font-family: 'Montserrat UltraLight';    letter-spacing: .05em;}
.col-content{font-size: 16px;line-height: 25px;font-family: 'Source Sans Pro';}


.location-footer-logo {padding: 0 21px;text-align: center;margin:60px 30px;}
@media(max-width:468px){
.location-footer-logo img {max-height:100px;}
}
.location-footer-cta {padding: 0 20px}
.location-cta-button {
    padding: 15px 25px 16px;
    background-color: #169BD7;
    color:#fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 357px;
    margin: 0 auto 0;
    margin-top:30px;
}


.location-cta-button:hover{
    
    background-color: #324986;
    color:#ffffff;
}
.location-cta-text-button {font-size:19px;font-weight:700;font-family: 'Montserrat';}

.locations-site-map {
gap: 5px;
    max-width: 1306px;
    padding: 0 21px;
    margin: 0 auto;
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

button.openCalendlyModal{
background: none;
margin: 0 auto;
text-align: center;
display: flex;
border:0;
}
    /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

/* Modal Content Box */
.modal-content {
  position: relative;
  margin: 10% auto;
  padding: 0px;
  background-color: #fff;
  border-radius: 5px;
  max-width: 1060px;
  width: 10%;
}

/* Close Button */
.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index:1;
}

.close:hover, .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.gem-button-icon i {margin-right:10px;}
@media(max-width:1091px){
    .field-name,.field-details {font-size: 12px !important;}
    .counter-section,.locations-list {
        grid-template-columns: 1fr 1fr;  
    }
}

@media(max-width:767px){
    .location-two-column {flex-direction:column-reverse;margin-top: 30px}
    .location-col-content,.location-col-img{max-width: 100%;margin-bottom: 30px}
    .field-name,.field-details {font-size: 12px;}
    .locations-list {
        grid-template-columns: 1fr;  
    }

    .post-type-archive-locations .page-title h1, .tax-states_cities .page-title h1 {
        font-size: 1.4em;
        line-height: 1.4;
        text-shadow: 2px 3px 19px black;
    }

}

@media(max-width:578px){
    .field-name,.field-details {font-size: 12px !important;}
    .counter-section,.locations-list {
        grid-template-columns: 1fr;  
    }
    .location-cta-text-button {font-size:16px;}
    .locations-metabox {padding: 0 21px;}
}