body {
    background-image: url(../../../Images/mariam_back.png);
    background-repeat: no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    background-attachment: fixed;
}

.team-content h3 {
    font-size: 40px;
    color: rgb(255, 255, 255);
    line-height: 0.625;
    text-align: left;
    margin-top: 3%;
    margin-left: 2.2%;
}

.team-content .team {
  text-align: center;
  width: 900px;
  margin: 25px auto 70px;
  overflow: auto;
}
.team-content .team a {
  float: left;
  display: block;
  margin: 20px 15px;
}
.team-content .team .team-item {
  width: 420px;
  height: 360px;
  position: relative;
  text-align: left;
  background-color: #999;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.team-content .team .main {
  float: none;
  clear: both;
  padding-top: 20px;
  border-top: 1px solid #fff;
  padding-bottom: 20px;
  border-bottom: 1px solid #fff;
}
.team-content .team .main .team-item {
  margin-left: auto;
  margin-right: auto;
}
.team-content .team .team-item .title {
  position: absolute;
  left: 0;
  bottom: 20px;
  background-color: rgba( 199, 189, 144, 0.7 );
  padding: 13px 30px;
}
.team-content .team .team-item .title h5 {
  font-size: 18px;
    color: rgb( 1, 1, 1 );
    text-align: center;
    margin: 0;
}
.team-content .team .team-item .title p {
  font-size: 14px;
    color: rgb( 255, 255, 254 );
    text-align: center;
    margin: 0;
}

@media only screen and (max-width: 1024px) {
  .team-content .team .team-item {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
  .team-content h3 {
    margin-top: 70px;
    font-size: 34px;
  }
  .team-content .team {
    width: auto;
  }
  .team-content .team a {
    float: none;
  }
}

@media only screen and (max-width: 768px) {
  .team-content h3 {
    font-size: 22px;
  }

} 

@media only screen and (max-width: 480px) {
  .team-content .team {
    margin-top: 0;
  }
  .team-content .team .team-item {
    width: 300px;
  }
  .team-content .team .team-item img {
    width: 100%;
  }
  .team-content h3 {
    font-size: 18px;
    margin-left: 10px;
  }
}





/* Detail */

.team-detail-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2%;
}


.team-detail-content h3 {
    font-size: 40px;
    color: rgb(255, 255, 255);
    line-height: 0.625;
    text-align: left;
    margin-top: 3%;
    margin-left: 2.2%;
}
.team-detail-content p.sub-title {
    font-size: 17.983px;
    color: rgb( 199, 189, 144 );
    margin: 0;
    margin-left: 2.2%;
    text-indent: 0;
}

.team-detail-content .text {
    margin: 0 3% 1% 3%;  
}
.team-detail-content .text p {
    font-size: 15px;
    color: rgb(255, 255, 255);
    line-height: 1.6;
    text-align: left;
    margin-top: 30px;
}

.team-detail-content fieldset {
    margin-top:2%;
    margin-right: calc(2% + 20px);
    cursor: pointer;
    display: inline-block;

    font-size: 14.58px;
    color: rgb(199, 189, 144);
    line-height: 1.5;
    float: right;
}
.team-detail-content fieldset img {
    display: inline;
    margin-right: 20px;
    margin-top: 0;
    vertical-align: text-top;
}
.program-arrow {
    height: 50px;
    margin: auto;
    background: url(../../Images/Front/arrow.png) no-repeat center center;
}


.fotorama__nav-wrap {
    height: 30px !important;
}

@media only screen and (max-width: 1024px) {
    .fotorama {
        margin: 0 50px;
    }
    .team-detail-content h3 {
        font-size: 30px;
        margin-top: 70px;
    }
}

@media only screen and (max-width: 768px) {
    .team-detail-content .text {
        margin: 3% 12px 0;
    }
    .team-detail-content h3 {
        font-size: 22px;
    }
    .program-arrow {
    	display: none;
    }
}

@media only screen and (max-width: 480px) {
    .team-detail-content h3 {
        font-size: 18px;
    }
    .fotorama__nav-wrap {
        height: auto !important;
    }
}
