img {
  max-width: 100%;
}

.fc {
  position: relative;
  height: 235px;
  background-size: cover;
  padding-top: 90px;
}

.template-x {
  position: absolute;
  top: 40px;
  right: 10%;
}

#content {
  width: 60%;
  max-width: 550px;
  padding-top: 80px;
  margin-right: 105px;
}

#sidebar {
  width: 40%;
  max-width: 300px;
  padding-top: 150px;
  margin-bottom: 30px;
}

#wp-calendar {
  width: 210px;
  margin: 0 auto;
}

#wp-calendar td, #wp-calendar th {
  height: 30px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #CCC;
}

#wp-calendar caption {
  font-weight: bold;
}

#staff .template {
  background-image: url('/img/staff/bgd-content.png');
}

.template {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 600px;
}

.template-single {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.template-single-title {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  line-height: 1.6;
  padding-left: 30px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #B5B5B5;
}

.template-single-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 10px;
  height: 80%;
  width: 5px;
  background-color: #AC3737;
}

.template-single-title.v2 {
  font-size: 24px;
  font-weight: 500;
  margin-top: 50px;
}

.template-single-date {
  font-size: 14px;
  margin-bottom: 30px;
}

.template-single-content {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 30px;
}

.template-single-image {
  margin-bottom: 30px;
}

.template-single-image img {
  max-width: 100%;
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-title {
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  line-height: 1.6;
  padding-left: 20px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #B5B5B5;
}

.sidebar-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 10px;
  height: 80%;
  width: 5px;
  background-color: #AC3737;
}

.post {
  width: 100%;
  display: block;
  padding: 0 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dotted #CCC;
}
.post-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
}
.post-excerpt {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  max-height: 55px;
  overflow: hidden;
}

.template-archive-post {
  margin-bottom: 20px;
  border-bottom: 1px solid #CCC;
}
.template-archive-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 10px 0 0;
}
.template-archive-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 10px 0 20px;
}
.template-archive-title {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  line-height: 1.6;
  padding-left: 30px;
}
.template-archive-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 10px;
  height: 80%;
  width: 5px;
  background-color: #AC3737;
}
.template-archive-date {
  font-size: 14px;
}
.template-archive-image {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 200px;
          flex: 0 0 200px;
  margin-right: 10px;
  display: block;
}
.template-archive-image img {
  max-width: 100%;
}

@media screen and (max-width: 1024px) {
  .template-x.v2 {
    max-width: 400px;
    top: 80px;
    right: 20px;
  }
  #content {
    margin-right: 50px;
  }
  .template-single-title.v2 {
    font-size: 20px;
    margin-top: 30px;
  }
}

@media screen and (max-width: 768px) {
  #content {
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
  } 
  .template-single {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
  }
  #sidebar {
    display: block;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding-top: 50px;
  }
  .template-x {
    display: none;
  }
  .fc {
    padding: 60px 20px 0;
    padding-right: 10px;
    height: 180px;
  }
  .fc .t1 {
    max-width: 100px;
  }


  .template-archive-top {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .template-archive-title, 
  .template-single-title {
    padding-left: 15px;
    font-size: 14px;
  }
  .template-single-title.v2 {
    font-size: 16px;
    margin-top: 0;
  }
  .template-archive-title::before, 
  .template-single-title::before {
    bottom: 0;
    height: 100%;
  }
  .template-archive-date, 
  .template-single-date {
    font-size: 11px;
  }
  .template-archive-image {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100px;
            flex: 0 0 100px;
  }
  .template-excerpt {
    font-size: 12px;
  }
}