.topmenu > li.current-menu-item,
.topmenu > li.current_page_item,
.topmenu > li.current-menu-ancestor,
.topmenu > li.current-page-ancestor {
    background: url("../images/tma.png") repeat-x !important;
}

.topmenu > li.current-menu-item > a,
.topmenu > li.current_page_item > a,
.topmenu > li.current-menu-ancestor > a,
.topmenu > li.current-page-ancestor > a {
    color: #000;
    text-decoration: none;
    text-shadow: 1px 1px 1px #ffffff;
}

.topmenu > li:last-child {
    background: none;
}

.headnav,
.topmenu,
.tpb-nav {
    margin: 0;
    padding: 0;
}

.gallery > div > div {
    display: none;
}

.gallery > div > div:first-child {
    display: block;
}

.gallery img,
.horpic img,
.picobj img,
.wrpic img,
.ipart img,
.photo-col img {
    max-width: 100%;
    height: auto;
}

.searchform {
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.photo-col img {
    display: block;
    margin: 0 0 12px;
}

.catversion:after,
.textpart:after {
    content: "";
    display: block;
    clear: both;
}

.admin-bar .header {
    margin-top: 32px;
}

@media (max-width: 1024px) {
    html,
    body,
    .all-wrap,
    .main,
    .wrapper-shd,
    .wrapper,
    .content,
    .gallery,
    .wrap-footer,
    .footer {
        min-width: 0;
        width: auto;
    }

    .wrapper,
    .content,
    .footer {
        width: 100%;
        max-width: 928px;
    }

    .header,
    .content,
    .footer,
    .ind-bl,
    .textpart {
        box-sizing: border-box;
    }
}
