body.page-template-workshops .modal-backdrop{
    display: none;
    width:1px;
    height: 1px;

}


#registration-section .reg-but-wrap{
    padding-top:1rem;
    padding-bottom: 1rem;
}

#registration-section button.workshop-reg{

    color:#fff;
    background-color: #DB222A ;
    border-color: transparent;
    padding: .375rem 3rem;
    font-size: 1rem;
    line-height: 1.5;


}

#registration-section button.workshop-reg:hover,
#registration-section button.workshop-reg:focus{
    color:#fff;
    background-color: #495057; 
    border-color: #74707b;
    box-shadow: 0 0 0 .2rem rgba(53, 51, 56, .5);
    text-decoration: underline;
}

#dialog1 .modal-header{
    display: block;
    position: relative;
}

#dialog1 .modal-header .close{
    position: absolute;
    top:0;
    left:0;
}

#dialog1 .modal-header .close:hover,
#dialog1 .modal-header .close:focus{
    color:#fff;
    background:  #DB222A ;
    outline: 2px solid  #DB222A ;
    outline-offset: 2px;
}

#dialog1 legend{
    text-align: center;
}

#dialog1 form p,
#dialog1 form input[type="text"],
#dialog1 form input[type="tel"],
#dialog1 form input[type="email"]{
    text-align: right;
}

#dialog1  .wpcf7 input:disabled[type=submit] {
    color:#fff;
     background:  #DB222A ;
     opacity: 0.5;
}

#dialog1 .wpcf7 input[type=checkbox]:focus{
    border-color: #74707b;
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(53, 51, 56, .25);
}

#dialog1 .wpcf7 a{
    text-decoration: underline;
    color:#707070;
    display: inline-block;
}

#dialog1 .wpcf7 a:focus{
    color:#DB222A ;
    outline-offset: 4px;
    outline: 1px solid #DB222A;

}

#dialog1.modal .close{
    color: #707070;
    padding:0.5rem 1rem;
}

#dialog1.modal .modal-content{
    background-color: #fff;
}

 #dialog1.modal .modal-content{
         position: absolute;
        width: 100%;
 }

@media (min-width: 576px) { 
   #dialog1.modal .modal-dialog{
        position: absolute;
        top: 50vh;
        left: 50vw;
        transform: translateX(-50%) translateY(-50%);
    }

    #dialog1.modal .modal-content{
       
        width: max-content;
    }
}
    

@media (min-width: 992px) { 
    
    #registration-section .workshop-row {
        display: flex;
        flex-wrap: wrap;

    }

    #registration-section .workshop-row .workshop-item-narrow{ 
        position: relative;;
        padding-top: 0; 
        padding-right:15px;
        padding-left:15px;
        flex: 0 0 50%;
        max-width: 50%;
        border-color:transparent;

    }

    #registration-section .workshop-row .workshop-item-narrow:nth-child(even):after{
        content:"";
        display: block;
        background:#db222a;
        width:1px;
        height:80%;
        position: absolute;
        right:-15px;
        top:10%;
    }

    #registration-section .workshop-row .workshop-item-narrow:nth-child(n+3){
        padding-top:1rem;
    }

    #registration-section .workshop-row .workshop-item-narrow:nth-child(n+3):before{
        content:"";
        display: block;
        background:#db222a;
        position: absolute;
        width:80%;
        height:1px;
        left:10%;
        top:0;


    }
}