/** Articles Layout 4 @todo - Set site colors / override file @author Ben Brandt <ben@monkdevelopment.com> @copyright 2016 Monk Development */

/******************************* ICONS */
.article-icon { display: inline-block; height: 1em; width: 1em; font-size: 1em; }

/******************************* ANIMATIONS */
@-webkit-keyframes slideDown { 0% { display: none;
    opacity: 0; }
  1% { display: block;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); } }

@keyframes slideDown { 0% { display: none;
    opacity: 0; }
  1% { display: block;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); } }

@-webkit-keyframes slideDownFlex { 0% { display: none;
    opacity: 0; }
  1% { display: -webkit-box;
    display: flex;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); } }

@keyframes slideDownFlex { 0% { display: none;
    opacity: 0; }
  1% { display: -webkit-box;
    display: flex;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); } }

@-webkit-keyframes slideUp { 0% { display: block;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); }
  99% { display: block;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { display: none;
    opacity: 0; } }

@keyframes slideUp { 0% { display: block;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); }
  99% { display: block;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { display: none;
    opacity: 0; } }

@-webkit-keyframes slideUpFlex { 0% { display: -webkit-box;
    display: flex;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); }
  99% { display: -webkit-box;
    display: flex;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { display: none;
    opacity: 0; } }

@keyframes slideUpFlex { 0% { display: -webkit-box;
    display: flex;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1); }
  99% { display: -webkit-box;
    display: flex;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0); }
  100% { display: none;
    opacity: 0; } }

@-webkit-keyframes spin-anim { 0% { -webkit-transform: rotate(0deg);
    transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg);
    transform: rotate(360deg); } }

@keyframes spin-anim { 0% { -webkit-transform: rotate(0deg);
    transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg);
    transform: rotate(360deg); } }

@-webkit-keyframes fade-anim { 0% { opacity: .2; }
  50% { opacity: 1; }
  100% { opacity: .2; } }

@keyframes fade-anim { 0% { opacity: .2; }
  50% { opacity: 1; }
  100% { opacity: .2; } }

/******************************* FEATURED ARTICLES */
.featured-article { margin-bottom: 1rem; }

.featured-article__item { display: block; background-color: black; }

@media (min-width:992px) {.featured-article__item { display: flex; flex-wrap: wrap; } }

.featured-article__image {padding-top: 50%; position: relative; width: 100%; }

@media (min-width:992px) {.featured-article__image {padding-top: 32.15%; } }

.featured-article__image .image-link-container {top: 0; left: 0; right: 0; bottom: 0; background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat; display: block; position: absolute; }

@media screen and (min-width: 992px) { .featured-article__image { width: 65%; } }

.featured-article__info { padding: 1rem; width: 100%;}

@media screen and (min-width: 992px) { .featured-article__info { width: 35%; padding: 2rem; } }

.featured-article__title { line-height: 1.25em; }

.featured-article__description { margin-bottom: 0; }

.featured-article__copy p {margin-bottom: .5rem; font-size: .85rem; }

@media (min-width:992px) {
  .featured-article__copy p { font-size: 1rem; margin-bottom: 1em; }
}

.featured-article__meta { font-size: .875rem; padding-top: 1px; }

.featured-article__nav { -webkit-box-align: stretch; align-items: stretch; display: -webkit-box; display: flex; -webkit-box-pack: justify; justify-content: space-between; }

.featured-article__btn { -webkit-box-align: center; align-items: center; border: 0; display: -webkit-box; display: flex; padding: 1rem 1rem .8rem; transition: color .25s ease-in-out; font-size: .9125rem; text-transform: uppercase; letter-spacing: .15em; }

@media (min-width: 992px) { .featured-article__btn { font-size: 1.125rem; letter-spacing: .3em; } }

#articles4 button.article-categories__item:focus { outline: none; }

#articles4 button.article-categories__item--active:hover { cursor: default; }

.featured-article__btn .article-icon { font-size: 1rem; margin: 0 .5rem; }

.featured-article__slide { width: 100%; margin-bottom: 1rem; }

@media (min-width:992px) {.featured-article__slide { margin-bottom: 0; } }

/******************************* CATEGORY FILTERS */
.article-categories { display: block; padding: 1rem 0 1rem; }

@media (min-width: 48em) { .article-categories { display: -webkit-box; display: flex; flex-wrap: wrap; -webkit-box-pack: center; justify-content: center; padding: 1rem 0 0; text-align: center; } }

.article-categories__item { cursor: pointer; display: block; width: 100%; font-weight: 400; line-height: 1.25; text-align: center; white-space: nowrap; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; padding: 1.125rem 1.75rem 1rem; margin: 0 1rem .5rem 0; font-size: .9125rem; border-radius: none; text-transform: uppercase; transition: all 0.2s ease-in-out; border-width: 2px; border-style: solid; letter-spacing: .2em; }

@media (min-width: 768px) { .article-categories__item { padding: 1.25rem 2.125rem 1rem; font-size: 1.125rem; } }

@media (min-width: 48em) { .article-categories__item { border: none; width: auto; cursor: pointer; margin-bottom: 1rem; } }

.article-categories.use-select .article-categories__item { display: none !important; }

/******************************* ARTICLE LIST */
.article-list { text-align: center; }

.article-list h2 { margin-bottom: 2rem; margin-top: 2rem; }

.article-list__grid { display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; flex-wrap: wrap; justify-content: flex-start; }

@media screen and (min-width: 512px) { .article-list__grid { -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; } }

@media screen and (min-width: 992px) { .article-list__grid { -webkit-box-pack: justify; } }

.article-list__item { display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -webkit-box-pack: center; justify-content: flex-start; margin: 0 0 2rem; overflow: hidden; position: relative; flex-basis: 100%; }

/* Make sure that articles without an image will display (since they won't have any inherent height of their own) */
.article-list__item:not(.article-list__item--has-image) {padding-top: 67.1%; }

@media (min-width:768px) {.article-list__item { margin-right: 4%; } .article-list__item:nth-child(2n) { margin-right: 0; } .article-list__item:not(.article-list__item--has-image) {padding-top: 32.208%; } }

@media (min-width:992px) {.article-list__item { margin-right: 3.2%; } .article-list__item:nth-child(2n) { margin-right: 3.2%; } .article-list__item:nth-child(3n) { margin-right: 0; } .article-list__item:not(.article-list__item--has-image) {padding-top: 20.9352%; } }

.article-list__item a { background: none; }

@media screen and (min-width: 768px) { .article-list__item { flex-basis: 48%; } }

@media screen and (min-width: 992px) { .article-list__item { flex-basis: 31.2%; } }

/* .article-list__item:hover .article-list__image:after { background-color: #739ff8; } */

.article-list__image { overflow: hidden; position: relative; }

.article-list__image:after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background-color: #4072d7; z-index: 100; transition: .2s all ease-in-out; }

.article-list__image img, .recommended-articles img { position: relative; display: block; z-index: 0; opacity: 1.0; transition: opacity .2s ease-in-out; -moz-transition: opacity .2s ease-in-out; -webkit-transition: opacity .2s ease-in-out; backface-visibility: hidden; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; }

#articles4 .article-list__item >  a:hover .article-list__image img, #articles4 .recommended-articles__item >  a:hover .recommended-articles__image img { opacity: 0.85; }

.article-list__info { padding: 1.25rem 1rem; }

.article-list__item:not(.article-list__item--has-image) .article-list__info { position: absolute; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); }

.article-list__title { margin-bottom: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s ease-in-out; -moz-transition: color .25s ease-in-out; -webkit-transition: color .25s ease-in-out; }

.article-list__copy { font-size: .8rem; margin: 0; }

.article-list__media { bottom: 110%; width: 90%; left: 5%; position: absolute; z-index: 10; text-align: center; line-height: 1; }

.article-list__item:not(.article-list__item--has-image) .article-list__media {position: relative; margin-top: 1em; bottom: auto; }

.article-list__media > span { font-size: 1.35rem; padding: .25rem .25rem 0; line-height: 1; }

.article-list__media .article-icon-book { font-size: 1.4rem; }

.article-list__item--has-image { -webkit-box-pack: start; background-color: transparent !important; }

.article-list__item--has-image .article-list__info { padding: .75rem 1rem .45rem; position: relative; }

.article-list__item--has-image .article-list__media { bottom: calc(100% + 1rem); }

/******************************* SERIES LIST */
.article-list__item--series { -webkit-box-align: center; align-items: center; display: -webkit-box; display: flex; flex-basis: 100%; -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; flex-wrap: wrap; -webkit-box-pack: start; justify-content: flex-start; text-align: left; }

@media screen and (min-width: 768px) { .article-list__item--series { flex-wrap: nowrap; } }

.article-list__copy--series p { margin-bottom: 0; }

.article-list__image--series { -webkit-box-flex: 1; flex: 1 0 100%; }

@media screen and (min-width: 768px) { .article-list__image--series { -webkit-box-flex: 0; flex: 0 1 31.2%; } }

.article-list__info--series { -webkit-box-flex: 1; flex: 1 0 80%; overflow: hidden; padding: 3rem 5%; }

@media screen and (min-width: 768px) { .article-list__info--series { -webkit-box-flex: 1; flex: 1 0 63.8%; padding: 1rem 2.5%; } }

.article-list__grid--series { -webkit-animation: slideUpFlex .3s ease; animation: slideUpFlex .3s ease; display: none; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; opacity: 0; -webkit-transform: scale(0); transform: scale(0); transition: opacity .3s ease, -webkit-transform .3s ease; transition: transform .3s ease, opacity .3s ease; transition: transform .3s ease, opacity .3s ease, -webkit-transform .3s ease; }

@media screen and (min-width: 512px) { .article-list__grid--series { -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; } }

.article-list__series-status { -webkit-box-flex: 0; flex: 1 0 10%; text-align: center; padding: 1rem; }

.article-list__series-status h5 span { vertical-align: middle; }

@media screen and (min-width: 768px) { .article-list__series-status { text-align: left; } }

.article-list__series-status .icon { font-size: 1rem; }

.article-list__series-status .article-icon-close { display: none; }

.article-list__series--open .article-list__grid--series { -webkit-animation: slideDownFlex .3s ease; animation: slideDownFlex .3s ease; display: -webkit-box; display: flex; opacity: 1; -webkit-transform: scale(1); transform: scale(1); }

.article-list__series--open .article-list__series-status .article-icon-plus { display: none; }

.article-list__series--open .article-list__series-status .article-icon-close { display: inline-block; }

.article-list__item.article-list__item--series:hover { cursor: pointer; }

.article-list__close--series { -webkit-box-align: center; align-items: center; display: -webkit-box; display: flex; flex-basis: 100%; font-size: .875rem; -webkit-box-pack: center; justify-content: center; margin: -1rem 0 2rem; padding: .75rem; text-align: center; }

.article-list__close--series .icon { font-size: .5rem; margin-right: .5rem; }

/******************************* LOADING ICON */
.article-list__loading { display: none; width: 40px; height: auto; margin: auto; min-height: 280px; position: relative; }

.article-list__loading > img { position:absolute; left: 0; top: calc(50% - 20px); }

.article-list__loading .article-icon { font-size: 2rem; }

.article-list__loading--spin { display: block; text-align: center; }

.article-list__loading--spin .article-icon { -webkit-animation: spin-anim 1s linear infinite, fade-anim 3s ease-in-out infinite; animation: spin-anim 1s linear infinite, fade-anim 3s ease-in-out infinite; }

/******************************* ARTICLE NAV */
.article-nav { -webkit-box-align: center; align-items: center; display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -webkit-box-pack: justify; justify-content: space-between; margin: 1rem 0; padding: .75rem; }

@media screen and (min-width: 512px) { .article-nav { -webkit-box-align: stretch; align-items: stretch; -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; padding: .5rem 1rem; } }

.article-nav--detail { -webkit-box-align: stretch; align-items: stretch; -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; padding: 0; }

.article-nav__btn { -webkit-box-align: center; align-items: center; border: 0; display: -webkit-box; display: flex; padding: 1rem .5rem; transition: background-color .2s ease; }

.article-nav__btn .article-icon { font-size: 1rem; margin: 0 .5rem; }

.article-nav__more { background-color: transparent; border: 0; cursor: pointer; font-size: 1rem; padding: .75rem .75rem .5rem; }

.article-nav__more > div { -webkit-box-align: center; align-items: center; display: -webkit-box; display: flex; }

.article-nav__more:disabled { cursor: no-drop; opacity: .3; }

.article-nav__more .article-icon { font-size: 1rem; margin-right: .5rem; margin-top: -4px; }

.article-nav__search { padding: .75rem; position: relative; }

@media screen and (min-width: 512px) { .article-nav__search { -webkit-box-flex: 0; flex: 0 1 16rem; } }

.article-nav__search fieldset { position: relative; display: block; padding: 0 8px; margin: 0; line-height: 1; border-width: 2px; border-style: solid; border-radius: 0; overflow: hidden; }

.article-nav__search-input { width: 80%; padding: 0 2.5%; border: 0; font-size: 16px; font-weight: 400; line-height: 48px; height: 48px; outline: none; outline: none !important; background-color: transparent; border-radius: 0; }

.article-nav__search-submit { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 20%; font-size: 20px; vertical-align: middle; text-align: center; outline: none; border: 0; padding: 2px 0; cursor: pointer; transition: .3s; background: none; }

/******************************* RECOMMENDED ARTICLES */
.recommended-articles { padding: 2rem 0 0; }

.recommended-articles__heading { margin-bottom: 1.5rem; text-align: center; text-transform: uppercase; }

.recommended-articles__grid { display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; flex-wrap: wrap; justify-content: space-around; margin-bottom: -2rem; }

@media screen and (min-width: 512px) { .recommended-articles__grid { -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; } }

@media screen and (min-width: 768px) { .recommended-articles__grid { -webkit-box-pack: justify; justify-content: space-between; } }

.recommended-articles__item { display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -webkit-box-pack: center; justify-content: flex-start; margin-bottom: 2rem; overflow: hidden; position: relative; }

@media screen and (min-width: 512px) { .recommended-articles__item { flex-basis: 48%; } }

@media screen and (min-width: 768px) { .recommended-articles__item { flex-basis: 31.2%; } }

.recommended-articles__item a { display: block; }

.recommended-articles__info .recommended-articles__title { text-align: center; margin: 1em auto; transition: .2s all ease-in-out; }

.recommended-articles__image { position: relative; }

.recommended-articles__image:after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background-color: #4072d7; z-index: 100; transition: .2s all ease-in-out; }

/******************************* DETAIL VIEW */
.article-header { position: relative; }

.article-header__image { max-width: none; width: 100%; }

.article-header__info--image { margin-top: -3.125rem; }

.article-header__info--image > .container { width: 90%; }

@media screen and (min-width: 512px) { .article-header__info--image { bottom: -1px; left: 0; margin-top: 0; position: absolute; right: 0; } }

.article-header__title { font-size: 3.125rem; margin-bottom: 0; padding-top: 3rem; text-align: center; }

@media (min-width: 512px) { .article-header__title { padding: 3rem 1.5rem 0; } }

.article-header__btn { -webkit-box-align: center; align-items: center; border: 0; display: -webkit-box; display: flex; opacity: .8; padding: 1rem 0; transition: opacity .2s ease; }

.article-header__btn:hover { opacity: 1; }

.article-header__btn .article-icon { font-size: 1rem; margin: -6px .5rem 0; }

.article-body { margin: 0 auto; max-width: 46.25rem; width: 95%; }

.article-body__meta { margin-bottom: 2rem; margin-top: 2rem; text-align: center; }

.article-body__summary { font-size: 1.25rem; }

.article-body__author { margin-bottom: 0; }

.article-body__media { margin: 0 auto 2rem; max-width: 39.25rem; width: 100%; }

.article-body__video { height: 0; margin-bottom: 1rem; overflow: hidden; padding-bottom: 56.25%; position: relative; width: 100%; }

.article-body__video iframe, .article-body__video object, .article-body__video embed, .article-body__video video { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }

.article-body__media-row { -webkit-box-align: center; align-items: center; display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; justify-content: space-around; }

@media screen and (min-width: 768px) { .article-body__media-row { -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; } }

.article-body__media-row--all { -webkit-box-pack: justify; justify-content: space-between; }

.article-body__audio { width: 100%; margin-bottom: 1rem; }

@media screen and (min-width: 768px) { .article-body__audio { width: 40%; margin-bottom: 0; } }

.article-body__button.btn { -webkit-box-align: center; align-items: center; display: -webkit-box; display: flex; font-size: .85rem; -webkit-box-pack: center; justify-content: center; padding: .65rem 1.05rem .5rem 1.25rem; text-align: center; width: calc(100% - 3rem); margin: 0 0 1rem 0; }

.article-body__button.btn > span { font-size: 1rem; }

@media screen and (min-width: 768px) { .article-body__button.btn { margin-bottom: 0; width: auto; } }

.article-body__button.btn .article-icon { margin-left: .5rem; }

.article-body__content { margin-bottom: 2rem; }

.article-author { display: block; margin-bottom: 1.5rem; }

@media screen and (min-width: 768px) { .article-author { display: flex; flex-wrap: nowrap; } }

.article-author__image { border: 0; width: 50%; margin-bottom: 1rem; }

@media (min-width:768px) {.article-author__image { width: 18%; margin-right: 1rem; align-self: start; } }

.article-author__info { width: 100%; }

@media (min-width:768px) {.article-author__info { width: calc(82% - 1rem); } }

.article-author__heading { margin-bottom: .25rem; }

.article-author__social { margin-bottom: 1rem; }

.article-author__social-button { display: inline-block; border-radius: 50%; margin-right: .5rem; padding: 0; width: 32px; height: 32px; line-height: 32px; transition: background-color .2s ease; text-align: center; border-radius: 100%; }

.article-author__social-button span { display: inline-block; line-height: 32px; padding: 0; margin: 0; }

@media screen and (max-width: 899px) { .article-categories { display: none; } }

@media screen and (min-width: 900px) { .article-select { display: none; } }

.article-select.use-select { display: block !important; }
