.headimg1 , .headimg2 ,.headimg3 , .headimg4 , .headimg99, .headimg199{
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 400px;
        top: 0;
    background-attachment: inherit;
    background-repeat: no-repeat;
    background-position: center;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    -webkit-align-items: flex-end;
    -ms-flex-align: flex-end;
    align-items: flex-end;
}
.cuscol {width:50%;background: #333333;height: 100%;min-height: 600px;display: flex;flex-direction: column;justify-content: center;padding: 30px 60px;}
.cuscols {height: auto;display: flex;width: 70%;margin: 80px auto;margin-top: 350px;border: 30px solid #333;background-color: #333;border-radius: 10px;flex-wrap: wrap;}

@media screen and (max-width:1280px){
    .cuscol {width:100%;padding:0px !important;}
    .cuscol > div{margin:5px !important;}	
    .cuscols {    flex-direction: column-reverse;width: 90%;    border: 15px solid #333;}
    .phonefax {flex-direction: column;}
    .emailfs{font-size:14px;}
}


.headimg1{
    background-image: url(../img/giahpp.jpg);

}
.headimg2{
    background-image: url(../img/pro2.jpg);
    
}
.headimg3{
    background-image: url(../img/conus.jpg);
    
}
.headimg4{
    background-image: url(../img/about-back.jpg);
	    background-position: center 20%;
    
}
.headimg99{
	background-image: url(../img/hamayesh/back.jpg);
}
.headimg199 {
	background-image: url(../img/namayeshgah1400/44.jpg);
}
.popup{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
        padding-right: 55px;
        }
.popupbtn{
	position: absolute;
}


        .column {
            width: 31%;
margin: 0.66%;
    padding: 0.5%;
            cursor: pointer;
            opacity: .9;
            transition:.3s linear;
            border-radius: 15px
        }
        .column:hover{
            opacity: 1;
            transition: .3s linear;
        }

        /* The Modal (background) */
        .modal {
            display: none;
            position: fixed;
            z-index: 100;
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: #000000de;
        }

        .motherpop{
            margin-bottom: 50px;
        }
        /* Modal Content */
        .modal-content {
            margin: 0 auto;
            width: 54%;
            max-width: 1200px;
            position: relative;
        }
        .modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
    display: flex;
    justify-content: center;
    align-items: center;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}


.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
    width:100%;
    border-radius: 20px;
	max-height: 88vh;
    width: auto;
}

.cursor {
    cursor: pointer
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    opacity: .5;
    animation: btn .6s linar;
}

/* Position the "next button" to the right */
.next {
    right: 110%;
    border-radius: 3px 0 0 3px;
}
.prev{
    left: 110%;
}
@-webkit-keyframes btn {
    from{
        opacity:0; 
        
    }
    to{
        opacity: .5;
    }
}
@keyframes btn {
    from{
        opacity:0; 
        
    }
    to{
        opacity: .5;
    }
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    opacity: 1;
}
.mt8{
    margin-top: 8%;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}



.demo {
    opacity: 0.6;
}

.active,
.demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}
.btnupbtn{
    position: relative;
}
#hcimg{
color: white;
width: 96%;
    max-width: 1300px;
    margin-bottom: 3px;
    border-radius: 10px 10px 0 0;
    padding: 10px 20px;
    font-size: 32px;
    text-shadow: 0px 1px 6px #00000055;
}

#hcimg > i {
    margin-right: 20px;
    float: right;
    margin-left: 20px;
    margin-top: 8px;
}

.rowus{
    display: flex;
    justify-content: center;
    margin-top: 300px;
    font-size: 14px;
    color: gray;
}
.mapdiv{
        display: flex;
    flex-direction: column;
    align-items: center;
}
#map{
    width: 69%;
    text-align: center;
    border-radius: 20px
}
#formsend{
    color: white;
}
.ffw > input{
    width: 90%;
}
.fields{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.field{
    width: 40%
}
.pad{
    margin: 10px auto;
}
.info{
        width: 100%;
        margin-right: 5%;
}
.submit{
    margin: 30px 5% 10px 0;
    background-color: gray;
    color: white;
    width: 102px;
    height: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all .3s linear;
    font-weight: bold;
    overflow: hidden;
}
.submit:hover{
    background-color: white;
    border:2px solid gray;
    transition: all .3s linear;
    color: gray;
}
.submit:hover #formsend{
    color: gray;
}
input[type="submit"]{
    height: 100%;
    background-color: #828282;
    outline: none;
    border: none;
    color: #fff;
    transition: all .3s linear;
    cursor: pointer;
    width: 100%;
}
input[type="submit"]:hover    {
    background-color:#fff;
    color: #828282;
    transition: all .3s linear;

}
.instyle{
    border-radius: 10px;
    resize: none;
    background-color: #F7F7F7;
    height: 40px;
    border: 2px solid #ebebeb;
    border-radius: 10px;
    outline: none;
    color: gray;
    padding:10px;
    resize:none;
}
.instyle:focus{
    background-color: white;
}
#msg{
        height: 200px;
        width: 86%;
}
#map{
        width: 80%;
    height: 750px;
    background: white;
    position: relative;
    overflow: hidden;
}
#form{
        margin-right: 3%;
        margin-top: 50px;
}
#form label{
    padding: 8px 15px;
    display: block;
}
@media only screen and (max-width:967px){
    #form{
        margin: 0;
    }
    #map{
    width: 90%;
    text-align: center;
}

.rowus{
    /* margin-top: 369px; */
 }



.headimg1 , .headimg2 ,.headimg3 , .headimg4{
        /* top: 92px; */
        }

.column{
    width: 85%;
    margin: 25px auto;
    opacity: 1;
}


.modal-content{
        width: 80%;
    margin: 0 auto 0;
    }

.motherpop {
    /* margin-top: -90px; */
}
.close{
position: fixed;
    top: 0;
    right: 20px;
}
.mt8{margin-top: 18%;}
.next{
	right:85%;position: fixed;
}
.prev{
	left:85%;position: fixed;
}
.popup{
	text-align: center;
	padding: 0;
}
}




@media only screen and (max-width:660px){
    .close {
    position: fixed;
}
.next{
	right: 85%;
    position: fixed;
}
.prev{
	left: 85%;
    position: fixed;
}
.rowus{
    /* margin-top: 392px; */
}

.field{
    width: 89%;
}
#msg{
    width: 81%;
    text-align: center;
}
.ffw{
    text-align: center;
}
.textarea{
    text-align: center;
}
.info{
    margin:0;
}
.info > label{
        padding-right: 23px;
}

.submit{
    width: 81%;
    margin: 40px auto 120px;
}
.field > label  {
    padding-right: 5%;
}
 .info > label {
    padding-right: 10%;
}
.headimg1 , .headimg2 ,.headimg3 , .headimg4{
        /* top: 135px; */
        }








}
