/**** ADS ****/

.ad {
    background-color: #f1f1f1;
}

#main-content .ad {
    width: 730px;
    height: 90px;
    margin-bottom: 35px;
    margin-left: auto;
    margin-right: auto;
}

/**** FRONT GLOBAL ****/

#main-content article {
    position: relative;
    overflow: hidden;
}

#main-content.front article img {
    width: 100%;
    position: absolute;
    margin: auto;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

.front section {
    margin-bottom: 25px;
    text-align: center;
}

/**** FEATURED ****/

#featured {
    position: relative;
    height: 400px;
    margin-bottom: 50px;
    overflow: hidden;
}

#featured article {
    position: absolute;
    margin-top: 35px;
    height: 400px;
    width: 100%;
    top: 0;
    left: -100%;
}

#featured article a {
    color: #282828;
}

#featured article.active {
    left: 0;
}

#featured .next-nav, #featured .prev-nav {
    position: absolute;
    top: 48px;
    display: block;
    height: 20px;
    width: 20px;
    font-family: 'FontAwesome';
    color: #282828;
    z-index: 7;
}

#featured .next-nav:before, #featured .prev-nav:before {
    font-size: 36px;
}

#featured .next-nav:before {
    content: "\f105";
}

#featured .prev-nav:before {
    content: "\f104";
}

#featured .next-nav {
    right: 25px;
}

#featured .prev-nav {
    left: 25px;
}

#featured h1 {
    background-color: rgba(255, 255, 255, .85);
    font-size: 24px;
    position: absolute;
    top: 0;
    margin: 0;
    padding: 15px 0;
    width: 100%;
}

/**** POPULAR ****/

#popular {
    margin-top: 25px;
}

#popular article {
    width: 50%;
    height: 200px;
    float: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#popular article:nth-child(even) {
  padding-right: 10px;
}

#popular article:nth-child(odd) {
  padding-left: 10px;
}

#popular article .bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

#popular a, #popular a:hover {
    color: #282828;
}

#popular header {
    opacity: 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
    background-color: rgba(255, 255, 255, .75);
    height: 100%;
    transition: opacity .5s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 50px 20px 0;
}

#popular header:hover {
    opacity: 1;
}

#popular article:nth-child(even) img {
    right: -20px;
}

#popular article:nth-child(odd) img {
    left: -20px;
}

#popular article h1 {
    font-size: 18px;
}

/**** PINTEREST & INSTAGRAM ****/

#just-pinned {
    clear: left;
    float: left;
    width: 60%;
    max-width: 480px;
}

#just-pinned li.pins-feed-item {
    width: 150px;
    height: 150px;
    margin: 5px;
    display: block;
    float: left;
}

#just-pinned .kpi-button {
    margin-top: 15px;
}

#instagram {
    width: 40%;
    max-width: 320px;
    float: right;
}

#instagram .pllex-viewport {
    height: 0;
    padding-bottom: 100%;
}

#instagram .kpi-button {
    margin-top: 16px;
}

.instagram-pics {
    list-style-type: none;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 320px;
}

.instagram-pics li {
    width: 320px;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}

body .pllexislider .pllex-direction-nav {
    position: absolute;;
    top: 0;
    left: 0;
    right: auto;
    height: 100%;
    width: 100%;
    background: transparent;
}

body .pllexislider .pllex-direction-nav li {
    position: absolute;
    top: 50%;
    margin-top: -30px;
    float: none;
    margin: 0;
    border: none;
    right: 35px;
    left: auto;
}

body .pllexislider .pllex-direction-nav li:first-child {
    left: 0;
    right: auto;
    border: none;
}

body .pllexislider .pllex-direction-nav li a {
    position: absolute;
    margin-top: -30px;
    top: 50%;
    z-index: 5;
    width: 35px;
    height: 60px;
    background-color: rgba(255, 255, 255, .9);
}

body .pllexislider .pllex-direction-nav .pllex-prev:before {
    margin-top: 11px;
    content: "\f104";
    text-shadow: none;
    color: #6d6d6d;
    font-family: 'FontAwesome';
    font-size: 36px;
    margin-right: 5px;
}

body .pllexislider .pllex-direction-nav .pllex-next:before {
    margin-top: 11px;
    content: "\f105";
    text-shadow: none;
    color: #6d6d6d;
    font-family: 'FontAwesome';
    font-size: 36px;
    margin-left: 5px;
}

/**** BOOK & APP ****/

#book {
    clear: left;
    float: left;
    width: 31%;
    max-width: 320px;
}

#app {
    width: 67%;
    float: right;
}

#app img {
  display: block;
  margin: auto;
}

/**** NEWSLETTER MODAL ****/

#newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .9);
    z-index: 10;
    display: none;
}

#newsletter-modal-box {
    width: 600px;
    height: 400px;
    position: absolute;
    top: 50%;
    margin: auto;
    left: 0;
    right: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: rgba(241, 153, 142, .9);
    padding: 10px;
}

#newsletter-modal-inner {
    background-image: url(../img/newsletter-bg.jpg);
    background-repeat: no-repeat;
    height: 400px;
    width: 100%;
    padding-top: 180px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
}

#newsletter-modal-inner h1 {
    margin-top: 0;
    margin-bottom: 0;
    background-color: rgba(241, 153, 142, .9);
    color: #fff;
    font-size: 38px;
    padding: 20px 38px;
}

#newsletter-footer {
    width: 100%;
    height: 78px;
    background-color: #fff;
}

#newsletter-close {
    display: block;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 25px;
    color: #fff;
    z-index: 10;
}

#newsletter-footer .single-input-form {
    padding: 20px;
}

#newsletter-footer .single-input-form input[type="text"] {
    width: 75%;
}

#newsletter-footer .single-input-form input[type="submit"] {
    width: 25%;
}
