.acf-block-preview a {
    pointer-events: none;
}

#main {
    position: relative;
}

.profilez {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    width:100%;
    margin: 0 auto;
    height:100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profilez img {
    margin: 0 auto;
    width: 100%;
    display: block;
}

.profilez button {
    background: #fff;
    box-shadow: none;
    border:0;
    outline: none!important;
    padding: 0;
    margin: 0;
    height: auto;
    z-index: 10;
    position: relative;
    opacity: 1;
    white-space: inherit;
    text-shadow: none !important;
    letter-spacing: 0;
    border-bottom: 0;
    width: 100%;
    border-radius: 0;
      
}

.profilez button * {
    pointer-events: none;
    text-shadow: none !important;
    transition: filter 0.3s;
}

.profilez button:hover img {
    transition: outline 0.1s;
}

.profilez h2 {
    font-family: 'Open Sans';
    font-weight: 400 !important;;
    color: #000;
    margin-top: 5px;
    font-size: 20px;
    text-align:left;
    padding:10px 15px 15px;
    text-decoration: underline solid transparent;
    transition: text-decoration 1s ease;
}

.profilez button:hover h2 {
    text-decoration: underline solid Currentcolor;
}

.profilez .btnbg {
    background-color: #35914d;
    display: block;
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
}

.profilez .butn {
    display: inline-block !important;
    width: 100%;
    text-align: left;
    margin: 0 auto;
}

.profilez .butn:hover {
    background: transparent !important;
    color: #fff !important;
}

.acf-field.acf-field-image-aspect-ratio-crop .acf-image-uploader-aspect-ratio-crop img {
    min-width: 10px !important;
    min-height: 10px !important
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    overflow: auto;
    z-index: 9999;

}

.modal-window {
    background-color: #FFFFFF;
    width: 780px;
    margin: 5% auto;
    padding: 30px 20px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    max-width: 75%;
}

.open .modal-window {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0.2;
        transform: scale(1.1)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

.modal-window.small {
    width: 75%;
}

.modal-window.large {
    width: 75%;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    color: rgba(0,0,0,0.3);
    height: 30px;
    width: 30px;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
}

.close:hover, .close:focus {
    color: #000000;
    cursor: pointer;
}

.open {
    display: block;
    opacity: 1;
    background:#000000dd
}

.modal-window {
    position: relative;
    text-align: center;
}

.modal-window button {
    position: absolute;
    top: 2px;
    right: 0;
    text-shadow: none;
    color: #000;
    padding: 0 10px;
    font-size: 22px;
    line-height: 1;
    background-color:#fff;
    border:0;
    font-weight: 300;
}

.modal-window img {
    width: 220px;
    max-width: 90%;
    float:right;
    margin: 0 0 20px 20px
}

.modal-window h2 {
    color: inherit;
    font-size: 1.15em;
    text-align:left;
	 margin-bottom:1em
}

.modal-window .bio p {
    text-align: left;
    font-size: 15px;
    margin: 0 0 15px;
    display: block;
}

.page-id-659 .modal-window h2, .page-id-659 .profilez h2  {font-weight: 700; padding-bottom:20px; text-align:left; color:#000!important;}
.page-id-659 .modal-window h2 span.sub,
.page-id-659 .profilez h2 span.sub {display: block; font-weight: 400;}

@media screen and ( max-width: 780px) {
    .modal-window img {float:none; margin:0 auto 20px}
}

.profilez button {height: 100%;display: flex;flex-direction: column;}
