/* CUSTOM CSS FOR OKO THEME */

.bg-oko-grey {
    background-color: #C6C6C6;
}

.bg-oko-blue {
    background-color: #557d8d; /* #667683; */
}

.bg-facebook {
    background-color: #3a5998;
}

.bg-twitter {
    background-color: #38A1F3;
}

.bg-linkedin {
    background-color: #0077B5;
}

.bg-print {
    background-color: #000000;
}

h1,
h2,
aside section .date {
    font-family: 'Open Sans', serif;
}

h3,
h4,
h5,
h6,
p,
#story,
.main-menu,
.top-menu a,
#mobile-navbar a {
    font-family: 'Open Sans', sans-serif;
}


/*
h1, h2, aside section .date { font-family: 'Markazi Text', serif; }
h3, h4, h5, h6, p, .story, .main-menu, .top-menu a, #mobile-navbar a { font-family: 'Lato', sans-serif; }
footer h4 { font-family: 'Markazi Text', serif; }
*/

footer h4 {
    font-family: 'Open Sans', serif;
}
footer p {
    margin-bottom: .5rem;
}
footer p a {
	color: #fff;
}

#story h3,
.page h2,
.page h3 {
    margin-top: 1.1rem;
    margin-bottom: .5rem;
}

#story p,
#story ul,
.page p,
#story ul {
    margin-bottom: 1rem !important;
}

#story .ad p {
    margin-bottom: .25rem;
}

#story a,
.page a {
    color: #000;
}

.factbox {
    position: relative;
}

.factbox__content {
    height: 120px;
    max-height: 120px;
    position: relative;
    overflow: hidden;
    transition: max-height .3s;
}

.factbox__content.show {
    height: auto;
    max-height: 1000px;
}

.factbox__content:after {
    width: 100%;
    height: 80px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    background: linear-gradient(to bottom, rgba(103, 119, 131, 0), #557d8d);
}

.factbox__content.show:after {
    display: none;
}

.factbox__toggler {
    margin: 20px auto 0;
    display: block;
    color: white;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    border: 0;
    background: transparent;
}

.factbox__toggler svg {
    width: 16px;
    height: 16px;
    margin: 0 auto 4px;
    display: block;
    fill: white;
}

.factbox__content.show + .factbox__toggler svg {
    transform: rotate(180deg);
}

.factbox h3 {
    margin: 0 0 1rem 0;
}

.factbox ul {
    padding-left: 1.5rem;
}

img.port,
figcaption.port {
	max-width: 15rem !important;
	margin: 0 auto;
}

/* .leading-none { line-height: 0.9 !important; } */

.paragraphs a {
	color: #567383 !important;
}
.paragraphs a:hover {
	color: #33454E !important;
}


/* IFRAME */

#story iframe {
    display: block;
    margin: 0 auto 1rem auto;
}


/* HTML5 banner */
/* default height */
.html5banner{
   height:272px;
}
@media only screen and (min-width: 360px) {
   .html5banner {
      height:328px;
   }
}

@media only screen and (min-width: 375px) {
   .html5banner {
      height:343px;
   }
}
@media only screen and (min-width: 414px) {
   .html5banner {
      height:382px;
   }
}

@media only screen and (min-width: 667px) {
   .html5banner {
      height:635px;
   }
}

@media only screen and (min-width: 736px) {
   .html5banner {
      height:704px;
   }
}

@media only screen and (min-width: 812px) {
   .html5banner {
      height:780px;
   }
}

@media only screen and (min-width: 992px) {
   .html5banner {
      height:272px;
   }
}
/* VIDEO RESPONSIVE */

.video-responsive {
    position: relative;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 56.25%;
}

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


/* FEATURED ARTICLE */

@media (min-width: 992px) {
    .featured article.lg\:w-1\/3 {
        width: 32%;
    }
}


/* SIDEBAR */

#mobile-navbar {
    height: 100%;
    /* 100% Full-height */
    width: 0;
    /* 0 width - change this with JavaScript */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Stay on top */
    top: 0;
    /* Stay at the top */
    left: 0;
    background-color: #557d8d;
    /* Black*/
    overflow-x: hidden;
    /* Disable horizontal scroll */
    padding-top: 60px;
    /* Place content 60px from the top */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in the sidenav */
}


/* The navigation menu links */

#mobile-navbar a {
    padding: 5px 5px 5px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    display: block;
    transition: 0.3s;
}


/* Position and style the close button (top right corner) */

#mobile-navbar .closebtn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 36px;
    /* margin-left: 50px; */
}


/* Style page content - use this if you want to push the page content to the right when you open the side navigation */

#wrap {
    transition: margin-left .5s;
}


/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */

@media screen and (max-height: 450px) {
    #mobile-navbar {
        padding-top: 15px;
    }
    #mobile-navbar a {
        font-size: 18px;
    }
}


/* STICKY NAVBAR */


/* The sticky class is added to the navbar with JS when it reaches its scroll position */

.sticky {
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
}


/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */

.sticky+#content {
    padding-top: 49px;
}


/* PRINT */

@media print {
    body {
        font-family: Georgia, serif;
        font-size: 60% !important;
        background: none;
        color: black;
    }
    #story {
        width: 100%;
        margin: 0;
        padding: 0;
        background: none;
    }
    .top-menu,
    #navbar,
    section .ad,
    #story .border-t,
    .share,
    aside,
    footer {
        display: none;
    }
    #story p a:after {
        content: " [" attr(href) "] ";
    }
}


/* Preferred lazy loader
http://dinbror.dk/blog/blazy/ */
.b-lazy {
    opacity: 0;
    transition: all .25s ease-in;
}

.b-lazy.b-loaded {
    opacity: 1;
}

/* IMAGE MODAL */
.modalImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.modalImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 50px;
}

/* Add Animation */
.modal-content, #caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)}
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 35px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

/* FACT BOX QUICK FIX */
.factbox__toggler { display: none; }
.factbox__content { height: auto; max-height: none; }
.factbox__content::after { height: auto; }
