.navbar {
  position: relative;
  background-color: #2d2d2d;
  font-family: Arial;
  color: #efefef;
  display: flex;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: #efefef;
  text-align: center;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 3px solid #2d2d2d;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: #efefef;
  padding: 9px 12px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  border-bottom: 3px solid #2d2d2d;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  -webkit-box-shadow: 0 4px 4px rgba(0,0,0,.35);
          box-shadow: 0 4px 4px rgba(0,0,0,.35);
  z-index: 1;
  -webkit-columns: 5 auto;
     -moz-columns: 5 auto;
          columns: 5 auto;
    overflow: hidden;
}

@media screen and (max-width: 790px) {
    .dropdown-content{
        left: 5px;
        right: 5px;
        -webkit-columns: 2 auto;
           -moz-columns: 2 auto;
                columns: 2 auto;
    }
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 7px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: none;
  min-width: 120px;
}

.navbar a:hover, .dropdown:hover .dropbtn{
    cursor: pointer;
}

.navbar a:hover, .dropdown:hover .dropbtn{
  border-bottom: 3px solid #49b5b1;
}

.dropdown-content a:hover{
    background: #d6d6d6;
    border: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn img{
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    background-color: transparent;
}

.navbar .advlink{
    position: relative;
}

.navbar .advlink img{
    width: 22px;
    height: 22px;
    position: absolute;
    background-color: transparent;
    top: -3px;
    right: -3px;
    -webkit-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
            transform: rotate(-135deg);
}


.navbar .menu{
    display: none;
}

@media screen and (max-width: 790px) {
    .navbar .menu{
        display: inline-block;
        vertical-align: middle;
        width: 35px;
        height: 35px;
        margin: 2px 0 0 0;
        cursor: pointer;
        float: left;
        margin-right: 10px;
    }
    .extra-navbar{
        display: block;
        position: absolute;
        top: 100%;
        z-index: 2;
        background: #2d2d2d;
        width: 100%;
        max-width: 180px;
    }
    .extra-navbar .dropdown{
        float: none;
    }
    .extra-navbar .dropbtn,
    .extra-navbar a{
        float: none;
        display: block;
        width: 100%;
        text-align: left;
    }
    .extra-navbar .dropdown-content{
        background: #2d2d2d;
        border: none;
        -webkit-box-shadow: none;
                box-shadow: none;
        -webkit-columns: 1 auto;
           -moz-columns: 1 auto;
                columns: 1 auto;
        left: 0;
        right: 0;
        border-radius: 0;
    }
    .extra-navbar .dropdown-content a{
        color: #efefef;
    }
    .dropdown-content a{
        border-bottom: 3px solid #2d2d2d;
    }
    .dropdown-content a:hover{
        border-bottom: 3px solid #49b5b1;
        background: #2d2d2d;
    }
    .custom-list li.mobile-hidden,
    .hidden{
        display: none;
    }  	
    .custom-list li.mobile-more{
        display: inline-block;
        vertical-align: middle;
        padding: 7px 9px;
        background: #e073be;
        color: #101010;
        font-family: Arial;
        border-radius: 3px;
        font-size: 16px;
        cursor: pointer;
    }
}
.custom-list li.visible{
    display: inline-block;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
/* ================================= */

body
{background-color: #2d322e;}

body, .search input::placeholder, .header li a, .footer li a
{color: #fff;}

img, .thumbs li a, .h-block, .footer
{background-color: #414641;}

.header, .titlesort a, .links-block li a, .list-block a, ul.pages a, ul.pages span
{background-color: #232825;}

.search-field
{ background-color: rgb(252,254,255); }

.header, .search-field, .titlesort a, .thumbs li a, .links-block li a, .list-block a, ul.pages a, ul.pages span, .footer
{border-color: #414641;}

a:hover, .logo a span, .header li a:hover, .header li a.active, .header li.active a
{color: #49b5b1;}

.search button, .titlesort a:hover, .titlesort a.active, .titlesort li.active a, .meta-block a, .links-block li a:hover, .list-block a:hover, ul.pages a:hover, ul.pages li.active a, ul.pages a.active
{background-color: #49b5b1;border-color: #49b5b1;color: rgb(255,255,255);} 

.search button:hover, .meta-block a:hover
{ background-color: rgb(50,142,195); }

a, .logo a, .search input, h1, h2, .meta-block li span, .links-block li span, .footer span, .footer li a:hover
{color: #fff;}

.thumbs li p span, .thumbs li span.meta
{ background-color: rgba(0,2,5,0.5); color: rgb(255,255,255); text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }

.thumbs li a:hover p span
{ background-color: rgba(0,2,5,0.7); }

.go-block a
{ background-color: rgb(60,62,65); color: rgb(255,255,255); text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }

.go-block a:hover
{ background-color: rgb(40,42,45); }


body,html,div,p,a,ul,li,input,button,form,textarea,span,img,h1,h2,h3 { margin: 0; padding: 0; }

/* div, ul, li, a, span, p { overflow: hidden; } */

body { font-family: Arial, sans-serif; font-size: 14px; }

li { list-style-type: none; }

img { display: block; }

a { text-decoration: none; }

h1, h2 { font-weight: normal; }
h1 { font-size: 22px; line-height: 30px; margin: 10px 5px 0 5px; }
h2 { text-align: center; margin: 40px 5px 0 5px; font-size: 20px; line-height: 24px; }

.wrapper { margin: 0 auto; max-width: 850px; }

.header { border-bottom-style: solid; border-bottom-width: 1px; text-align: center; font-size: 0; padding-bottom: 10px; }

.logo { display: inline-block; text-align: center; vertical-align: top; margin: 10px 10px 0 10px; }
.logo a { display: block; font-weight: bold; height: 34px; line-height: 34px; font-size: 20px; }

.search { display: inline-block; vertical-align: top; margin: 10px 10px 0 10px; width: 240px; }
.search form { position: relative; overflow: hidden; }
.search-field { border-style: solid; border-width: 1px; height: 32px; line-height: 32px; border-radius: 3px; padding: 0 70px 0 15px; }
.search input { width: 100%; height: inherit; line-height: normal; font-size: 14px; background: none; border: 0 none; outline: 0 none; }
.search button { height: 34px; width: 60px; text-align: center; line-height: normal; border-radius: 0 3px 3px 0; font-size: 14px; border: 0 none; position: absolute; top: 0; right: 0; cursor: pointer; outline: 0 none; }

.header ul { display: inline-block; vertical-align: top; margin-top: 5px; }
.header li { display: inline-block; vertical-align: top; margin: 5px 10px 0 10px; }
.header li a { display: block; height: 34px; line-height: 34px; font-size: 14px; }

.titlesort { font-size: 0; text-align: center; }

.titlesort h1 { display: inline-block; vertical-align: top; }

.titlesort ul { display: inline-block; vertical-align: top; margin: 6px 3px 0 13px; }
.titlesort li { display: inline-block; vertical-align: top; margin: 4px 2px 0 2px; }
.titlesort a { border-style: solid; border-width: 1px; font-size: 14px; height: 28px; line-height: 28px; border-radius: 3px; display: block; padding: 0 10px; }

.lazy-load, .lazy-loaded { -webkit-transition: opacity 0.3s; -moz-transition: opacity 0.3s; -ms-transition: opacity 0.3s; -o-transition: opacity 0.3s; transition: opacity 0.3s; opacity: 0; }
.lazy-loaded { opacity: 1; }

.thumbs li { float: left; width: 50%; }
.thumbs li a { display: block; margin: 2px 2px 0 2px; position: relative; border: 1px solid white; }
.thumbs li hover { border: 1px dashed white; }
.thumbs li a:hover { border: 1px dashed white; }
.thumbs li img { width: 100% !important; height: auto !important; }
.thumbs li p { position: absolute; bottom: 5px; left: 5px; right: 5px; text-align: center; }
.thumbs li p span { padding: 0 5px; font-size: 12px; border-radius: 3px; line-height: 22px; height: 22px; display: inline-block; vertical-align: top; }
.thumbs li p.catname span { font-size: 14px; line-height: 28px; height: 28px; }
.thumbs li span.meta { position: absolute; top: 10px; right: 10px; border-radius: 3px; padding: 0 5px 0 25px; background-image: url(../icons/like.png); background-position: 5px center; background-repeat: no-repeat; background-size: 16px 16px; height: 22px; line-height: 22px; font-size: 12px; }

ul.pages { font-size: 0; text-align: center; margin: 16px 3px 0 3px; }
ul.pages li { display: inline-block; vertical-align: top; margin: 4px 2px 0 2px; }
ul.pages a, ul.pages span { border-style: solid; border-width: 1px; font-size: 14px; height: 28px; line-height: 28px; border-radius: 3px; display: block; min-width: 18px; padding: 0 5px; }

.desc { margin: 0 5px; line-height: 18px; }
.desc p { margin-top: 10px; }

.h-blocks { margin-top: 30px; text-align: center; font-size: 0; }
.h-block { display: inline-block; vertical-align: top; width: 300px; height: 250px; margin: 10px 5px 0 5px; }
.h-block-2, .h-block-3, .h-block-4, .h-block-5 { display: none; }

.list-block { font-size: 0; padding: 4px 2px 0 2px; }
.list-block li { page-break-inside: avoid; break-inside: avoid; display: inline-block; vertical-align: top; width: 100%; padding-top: 6px; }
.list-block a { border-width: 1px; border-style: solid; display: block; height: 40px; line-height: 40px; font-size: 14px; padding: 0 15px; margin: 0 3px; }

.line-list-block { font-size: 0; padding: 4px 2px 0 2px; }
.line-list-block li { page-break-inside: avoid; break-inside: avoid; display: inline-block; vertical-align: top; width: 100%; padding-top: 6px; }
.line-list-block a { text-overflow: ellipsis; white-space: nowrap; display: block; height: 30px; line-height: 30px; font-size: 14px; margin: 0 15px; }

.go-block { margin: 20px 5px 0 5px; text-align: center; }
.go-block a { display: block; padding: 20px 15px; font-size: 18px; border-radius: 5px; text-transform: uppercase; font-weight: bold; }

.meta-block { margin: 20px 5px 0 5px; text-align: center; }
.meta-block a { background-image: url(../icons/like.png); background-position: 25px center; background-repeat: no-repeat; background-size: 38px 38px; cursor: pointer; display: inline-block; vertical-align: top; padding: 0 25px 0 73px; height: 75px; line-height: 75px; font-size: 22px; border-radius: 5px; text-transform: uppercase; font-weight: bold; }
.meta-block li { display: inline-block; vertical-align: top; margin: 7px 3px 0 3px; }
.meta-block li span { font-weight: bold; }

.links-block { margin-top: 10px; text-align: center; }
.links-block ul { font-size: 0; padding: 6px 3px 0 3px; display: inline-block; vertical-align: top; }
.links-block li { font-size: 14px; margin: 4px 2px 0 2px; display: inline-block; vertical-align: top; }
.links-block li span { font-weight: bold; height: 32px; line-height: 32px; display: block; margin-right: 5px; }
.links-block li a { border-style: solid; border-width: 1px; font-size: 14px; height: 30px; line-height: 30px; border-radius: 3px; display: block; padding: 0 10px; }

.big-picture { margin: 10px 5px 0 5px; text-align: center; }
.big-picture img { display: inline-block; vertical-align: top; max-width: 100%; height: auto; }

ul.navi { text-align: center; }
ul.navi li { display: inline-block; vertical-align: top; margin: 10px 10px 0 10px; }
ul.navi a, ul.navi span { display: block; height: 30px; line-height: 30px; font-size: 18px; text-transform: uppercase; font-weight: bold; }

.footer { border-top-style: solid; border-top-width: 1px; padding: 10px 0 20px 0; margin-top: 40px; line-height: 20px; text-align: center; }
.footer p { margin: 10px 5px 0 5px; }
.footer ul { margin-top: 5px; }
.footer li { display: inline-block; vertical-align: top; margin: 5px 8px 0 8px; }
.footer li a { text-decoration: underline; display: block; height: 28px; line-height: 28px; }
.footer li a:hover { text-decoration: none; }


/* @media all and (min-width:260px) {
    .thumbs li { width: 33.3333%; }
}

@media all and (min-width:390px) {
    .thumbs li { width: 25%; }
} */

@media all and (min-width:520px) {
    .list-block, .line-list-block { column-count: 2; -moz-column-count: 2; -webkit-column-count: 2; }
    /* .thumbs li { width: 20%; } */
}


@media all and (min-width:640px) {
    .logo a { font-size: 22px; }
    .h-block-2 { display: inline-block; }
    .list-block { column-count: 3; -moz-column-count: 3; -webkit-column-count: 3; }

}

/* @media all and (min-width:650px) {
    .thumbs li { width: 16.6666%; }
}

@media all and (min-width:780px) {
    .thumbs li { width: 14.2857%; }
} */

@media all and (min-width:930px) {
    .wrapper { max-width: 100%; width: 840px; }
    .logo { float: center; margin: 10px 20px 0 5px; }
    .logo a { height: 40px; line-height: 40px; font-size: 26px; }
    .search { width: 300px; float: left; margin-left: 20px; }
    .search-field { height: 38px; line-height: 38px; }
    .search input { padding-right: 80px; font-size: 16px; }
    .search button { width: 40px; height: 40px; width: 70px; }
    .header ul { float: right; }
    .header li { margin: 5px 5px 0 20px; }
    .header li a { height: 40px; line-height: 40px; font-size: 16px; }
    .header li a span { display: inline; }
    /* .titlesort h1 { float: left; } */
    .titlesort ul { float: right; }
    /* .thumbs li { width: 122px; }
    .thumbs li img { width: 120px !important; height: 160px !important; } */
    h1 { font-size: 24px; margin-top: 13px; margin-bottom: 3px; }
    h2 { font-size: 22px; line-height: 26px; text-align: center; }
    
    .line-list-block li { float: left; display: block; }
    .titlesort a { height: 35px; line-height: 35px; padding: 0 15px; }
    .go-block a { padding: 25px 15px; font-size: 24px; }
    .meta-block a { background-position: 30px center; background-size: 48px 48px; padding: 0 30px 0 88px; height: 85px; line-height: 85px; font-size: 24px; }
    .line-list-block a { margin: 0 27px 0 3px; }
    ul.pages a, ul.pages span { height: 36px; line-height: 36px; min-width: 26px; }
}

@media all and (min-width:1060px) {
    .wrapper { width: 960px; }
    .h-block-3 { display: inline-block; }
}

@media all and (min-width:1190px) {
    .wrapper { width: 1080px; }
    .logo a { font-size: 28px; }
    .search { width: 400px; }
    .header li { margin-left: 30px; }
    .list-block { column-count: 6; -moz-column-count: 6; -webkit-column-count: 6; }
}

@media all and (min-width:1320px) {
    .wrapper { width: 1200px; }
    .h-block-4 { display: inline-block; }
}

@media all and (min-width:1450px) {
    .wrapper { width: 1320px; }
}

@media all and (min-width:1580px) {
    .wrapper { width: 1440px; }
    .h-block-5 { display: inline-block; }
    .list-block { column-count: 8; -moz-column-count: 8; -webkit-column-count: 8; }
}

/********* custom css ************/

.thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
 .thumbs li {
    width: 120px;
    height: 160px;
 }

 .thumb {
    width: 117px !important;
    height: 154px !important;
    margin: 0 !important;
    border: none !important;
    transform: translate(2px, 2px);
}
.thumb a {
    margin: 0 !important;
    height: 153px !important;
    border: 0.5px solid #fff !important;
}

.thumb a:hover {
    border: 0.5px dashed #fff !important;
}

.footer p span {
    color: #84dbd8;
}

#upButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 35px;
    width: 35px;
    font-weight: 700;
    font-size: 20px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
}

#upButton img {
    width: 15px;
    height: 15px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
}

#upButton:hover,.custom-gallery .th:hover,article a:hover img {
    border-color: #49b5b1;
}
#upButton {
    display: none;
}
.mobile-banner {
    display: none;
    text-align: center;
    margin: 10px 15px;
}
.mobile-banner img {
    max-width: 100%;
}
@media all and (max-width: 580px) {
    .mobile-banner {
        display: block;
    }
    .banner-container {
        display: none !important;
    }
}

