/**
 * Blogs Layout 3
 *
 * @todo - Set site colors / override file
 *
 * @copyright 2016 Monk Development
 */
/*******************************
 * OVERRIDES
 *******************************/

.post-categories__item:hover,
.post-categories__item.post-categories__item--active,
.post-header__title,
.post-list__item.post-list__item--padding {outline: none;}

/*******************************
 * SVG ICONS
 *******************************/
.post-icon {
  display: inline-block;
  fill: currentColor;
  height: 1em;
  width: 1em;
}

/*******************************
 * ANIMATIONS
 *******************************/
@keyframes slideDown {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: block;
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideDownFlex {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideUp {
  0% {
    display: block;
    opacity: 1;
    transform: scale(1);
  }
  99% {
    display: block;
    opacity: 0;
    transform: scale(0);
  }
  100% {
    display: none;
    opacity: 0;
  }
}
@keyframes slideUpFlex {
  0% {
    display: flex;
    opacity: 1;
    transform: scale(1);
  }
  99% {
    display: flex;
    opacity: 0;
    transform: scale(0);
  }
  100% {
    display: none;
    opacity: 0;
  }
}
@keyframes spin-anim {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fade-anim {
  0% {
    opacity: .2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: .2;
  }
}
/*******************************
 * FEATURED
 *******************************/
.featured-post {
  margin-bottom: 1rem;
}
.no-flexbox .featured-post {
  overflow: hidden;
}

.featured-post__item {
  align-items: center;
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .featured-post__item {
    flex-direction: row;
  }
}

.featured-post__image {
  margin-bottom: -2px;
}
.featured-post__image img {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .featured-post__image {
    flex: 0 1 64.3%;
  }
}
@media screen and (min-width: 768px) {
  .no-flexbox .featured-post__image {
    float: left;
    width: 64.3%;
  }
}

.featured-post__info {
  padding: 3rem 5%;
}
@media screen and (min-width: 768px) {
  .featured-post__info {
    flex: 1 0 30.7%;
    padding: 1rem 2.5%;
  }
}
@media screen and (min-width: 768px) {
  .no-flexbox .featured-post__info {
    float: right;
    padding: 1.5rem 2.5%;
    width: 30.7%;
  }
}

.featured-post__description {
  margin-bottom: .25rem;
}

.featured-post__copy p {
  font-size: 1rem;
}

.featured-post__meta {
  font-size: .875rem;
}

.featured-post__nav {
  align-items: stretch;
  display: flex;
  justify-content: space-between;
}
.no-flexbox .featured-post__nav {
  clear: both;
  float: left;
  width: 100%;
}

.featured-post__btn {
  align-items: center;
  border: 0;
  display: flex;
  padding: 1rem .5rem;
  transition: background-color .2s ease;
}
.featured-post__btn .post-icon {
  font-size: 1rem;
  margin: 0 .5rem;
}
.no-flexbox .featured-post__btn {
  max-width: 42.5%;
}
.no-flexbox .featured-post__btn .post-icon {
  vertical-align: text-bottom;
}

.no-flexbox .featured-post__btn--prev {
  float: left;
}

.no-flexbox .featured-post__btn--next {
  float: right;
}

.featured-post__slide {
  width: 100%;
}

/*******************************
 * CATEGORY FILTERS
 *******************************/
.post-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 1rem 0 0;
}
.no-flexbox .post-categories {
  text-align: center;
}

.post-categories__item {
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 1.2rem 1.5rem;
  transition: background-color .2s ease;
}
.no-flexbox .post-categories__item {
  display: inline-block;
  margin-left: .2rem;
  margin-right: .2rem;
}

/*******************************
 * LIST
 *******************************/
.post-list {
  text-align: center;
}

.post-list__heading {
  font-weight: 700;
  margin-bottom: 2rem;
  margin-top: 2rem;
  text-transform: uppercase;
}

.post-list__grid {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
}
@media screen and (min-width: 512px) {
  .post-list__grid {
    flex-direction: row;
  }
}
@media screen and (min-width: 768px) {
  .post-list__grid {
    justify-content: space-between;
  }
}
.no-flexbox .post-list__grid {
  overflow: hidden;
}

.post-list__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}
@media screen and (min-width: 512px) {
  .post-list__item {
    flex-basis: 48%;
  }
}
@media screen and (min-width: 768px) {
  .post-list__item {
    flex-basis: 31.2%;
  }
}
.post-list__item:hover img {
  transform: scale(1.1) translateY(-5%);
  transition: transform .5s ease;
}
@media screen and (min-width: 512px) {
  .no-flexbox .post-list__item {
    float: left;
    margin-left: 1%;
    margin-right: 1%;
    width: 48%;
  }
  .no-flexbox .post-list__item:nth-child(2n+1) {
    clear: both;
  }
}
@media screen and (min-width: 768px) {
  .no-flexbox .post-list__item {
    float: left;
    margin-left: 0;
    margin-right: 3.15%;
    width: 31.2%;
  }
  .no-flexbox .post-list__item:nth-child(3n) {
    margin-right: 0;
  }
  .no-flexbox .post-list__item:nth-child(2n+1) {
    clear: none;
  }
  .no-flexbox .post-list__item:nth-child(3n+1) {
    clear: both;
  }
}

.post-list__item--padding {
  display: none;
}
@media screen and (min-width: 768px) {
  .post-list__item--padding {
    display: flex;
  }
}

.post-list__image {
  overflow: hidden;
  position: relative;
}
.post-list__image img {
  position: relative;
  transition: transform .6s ease;
  z-index: 0;
}

.post-list__info {
  padding: 1.25rem 1rem 2.5rem;
}

.post-list__title {
  margin-bottom: .25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-list__date {
  margin-bottom: 0;
}

.post-list__copy {
  font-size: 1rem;
  margin: 0;
}

.post-list__item--has-image {
  justify-content: flex-start;
}
.post-list__item--has-image .post-list__info {
  padding: .75rem 1rem 1rem;
  position: relative;
}

/*******************************
 * LOADING ICON
 *******************************/
.post-list__loading {
  display: none;
}
.post-list__loading .post-icon {
  font-size: 2rem;
}

.post-list__loading--spin {
  display: block;
  text-align: center;
}
.post-list__loading--spin .post-icon {
  animation: spin-anim 1s linear infinite, fade-anim 3s ease-in-out infinite;
}
.post-list__loading--spin .no-flexbox {
  clear: both;
}

/*******************************
 * NAV
 *******************************/
.post-nav {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem 0;
  padding: .75rem;
}
@media screen and (min-width: 512px) {
  .post-nav {
    align-items: stretch;
    flex-direction: row;
    padding: 1rem;
  }
}
.no-flexbox .post-nav {
  clear: both;
  overflow: hidden;
}

.post-nav--detail {
  align-items: stretch;
  flex-direction: row;
  padding: 0;
}

.post-nav__btn {
  align-items: center;
  border: 0;
  display: flex;
  padding: 1rem .5rem;
  transition: background-color .2s ease;
}
.post-nav__btn .post-icon {
  font-size: 1rem;
  margin: 0 .5rem;
}
.no-flexbox .post-nav__btn {
  max-width: 42.5%;
}
.no-flexbox .post-nav__btn .post-icon {
  vertical-align: text-bottom;
}

.no-flexbox .post-nav__btn--prev {
  float: left;
}

.no-flexbox .post-nav__btn--next {
  float: right;
}

.post-nav__more {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: .875rem;
  padding: .75rem;
}
.post-nav__more > div {
  align-items: center;
  display: flex;
}
.post-nav__more:disabled {
  cursor: no-drop;
  opacity: .5;
}
.post-nav__more .post-icon {
  font-size: 1rem;
  margin-right: .5rem;
}
@media screen and (min-width: 512px) {
  .no-flexbox .post-nav__more {
    float: left;
    margin-top: .75rem;
    max-width: 42.5%;
  }
}
.no-flexbox .post-nav__more .post-icon {
  vertical-align: text-bottom;
}

.post-nav__search {
  padding: .75rem;
  position: relative;
}
@media screen and (min-width: 512px) {
  .post-nav__search {
    flex: 0 1 16rem;
  }
}
@media screen and (min-width: 512px) {
  .no-flexbox .post-nav__search {
    float: right;
    max-width: 16rem;
  }
}

.post-nav__search-input {
  border-style: solid;
  border-width: 1px;
  font-size: .875rem;
  padding: .75rem 1rem;
  width: calc(100% - 2rem);
}

.post-nav__search-submit {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
}

/*******************************
 * RECOMMENDED
 *******************************/
.recommended-posts {
  padding: 2rem 0;
  border-top: 1px solid;
}

.recommended-posts__heading {
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

.recommended-posts__grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media screen and (min-width: 512px) {
  .recommended-posts__grid {
    flex-direction: row;
  }
}
.no-flexbox .recommended-posts__grid {
  overflow: hidden;
}

.recommended-posts__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1rem;
}
@media screen and (min-width: 768px) {
  .recommended-posts__item {
    flex: 0 0 31.2%;
    flex-direction: row;
  }
}
.no-flexbox .recommended-posts__item {
  float: left;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .no-flexbox .recommended-posts__item {
    margin-right: 3.15%;
    width: 31.2%;
  }
  .no-flexbox .recommended-posts__item:nth-child(3n) {
    margin-right: 0;
  }
}

.recommended-posts__image,
.recommended-posts__info {
  flex: 0 0 49%;
}
.no-flexbox .recommended-posts__image, .no-flexbox
.recommended-posts__info {
  width: 49%;
}

.no-flexbox .recommended-posts__image {
  float: left;
}

.no-flexbox .recommended-posts__info {
  float: right;
}

.recommended-posts__title {
  margin-bottom: .25em;
}

.recommended-posts__date {
  font-size: .9125em;
  margin: 0;
}

/*******************************
 * DETAIL VIEW
 *******************************/
.post-header {
  position: relative;
}

.post-header__image {
  max-width: none;
  width: 100%;
}

.post-header__info--image {
  margin-top: -3.125rem;
}
@media screen and (min-width: 512px) {
  .post-header__info--image {
    bottom: 0;
    left: 0;
    margin-top: 0;
    position: absolute;
    right: 0;
  }
}

.post-header__title {
  font-size: 3.125rem;
  margin-bottom: 0;
  padding-top: 3rem;
  text-align: center;
}
.no-flexbox .post-header__title {
  float: left;
  width: 100%;
}

.post-header__btn {
  align-items: center;
  border: 0;
  display: flex;
  opacity: .5;
  padding: 1rem 0;
  transition: opacity .2s ease;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 18px;
}
.post-header__btn:hover {
  opacity: 1;
}
.post-header__btn .post-icon {
  font-size: 1rem;
  margin: 0 .5rem;
}
.no-flexbox .post-header__btn {
  float: left;
}
.no-flexbox .post-header__btn .post-icon {
  vertical-align: text-bottom;
}

.post-body {
  margin: 0 auto;
  max-width: 46.25rem;
  width: 95%;
}

.post-body__meta {
  margin-bottom: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.post-body__summary {
  font-size: 1.25rem;
}

.post-body__author {
  margin-bottom: 0;
}

.post-body__button {
  align-items: center;
  border-radius: .375rem;
  display: flex;
  font-size: .875rem;
  justify-content: center;
  margin-top: 1rem;
  padding: .75rem 1.5rem;
  text-align: center;
  transition: background-color .2s ease;
  width: calc(100% - 3rem);
}
@media screen and (min-width: 768px) {
  .post-body__button {
    margin-top: 0;
    width: auto;
  }
}
.post-body__button .post-icon {
  margin-left: .5rem;
}
.no-flexbox .post-body__button {
  float: left;
}
@media screen and (min-width: 768px) {
  .no-flexbox .post-body__button {
    margin-left: .25rem;
    margin-right: .25rem;
  }
}

.post-body__content {
  margin-bottom: 2rem;
}
.no-flexbox .post-body__content {
  clear: both;
}

.post-body__tags a {
  font-size: .9125em;
}

.post-author {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
@media screen and (min-width: 512px) {
  .post-author {
    flex-direction: row;
  }
}
.no-flexbox .post-author {
  clear: both;
  overflow: hidden;
}

.post-author__image {
  border-style: solid;
  border-width: 3px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
  flex: 0 0 18%;
  margin-bottom: 1rem;
}
.no-flexbox .post-author__image {
  float: left;
}
@media screen and (min-width: 512px) {
  .no-flexbox .post-author__image {
    width: 18%;
  }
}

.post-author__info {
  flex: 0 1 78.38%;
}
.no-flexbox .post-author__info {
  float: right;
}
@media screen and (min-width: 512px) {
  .no-flexbox .post-author__info {
    width: 78.38%;
  }
}

.post-author__heading {
  margin-bottom: 0;
}

.post-author__title {
  margin-bottom: 1rem;
}

.post-author__social {
  margin-bottom: 1rem;
}

.post-author__social-button {
  border-radius: 50%;
  margin-right: .5rem;
  padding: .25rem .33rem;
  transition: background-color .2s ease;
  vertical-align: top;
}

/*******************************
 * COMMENTS
 *******************************/
.comment-intro {
  padding: 1em 0;
  margin-bottom: 1em;
}

.comment-intro h2 {
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0;
}

.comments h2,
.comment-login {
  float: left;
  margin-right: 1em;
}

.comment-item {
  clear: both;
  overflow: hidden;
}

.comment-login {
  margin-top: 5px;
}

.commenter-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  float: left;
  margin-right: -64px;
}

.comment {
  margin-left: 74px;
  margin-bottom: 1em;
}

.comment-login {
  font-size: .9125em;
}

.comment-header {
  line-height: 1.3;
  font-size: .9125em;
  padding: .5em;
}

.comment-body {
  padding: 5px;
}

.comments form {
  margin-left: 74px;
}

.comments form label {
  display: block;
  font-size: 1em;
}

.comments form textarea#comment {
  width: 99%;
}
