/*
Theme Name: DmiMag sakhamedia.ru
Theme URI: https://dmimag.site
Author: the WordPress team
Author URI: https://dmimag.site
Description: DmiMag for shop.sakhamedia.ru
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.1.10
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: dmimag-sakhamedia
*/

/**
 * Theme variables
 *
 * @since 1.0.0
 */
:root {
    --theme-color-background: #ffffff;
  
    --theme-color: #222222; 
  
    --theme-color-grey: #d9d9d9;

    --theme-color-dark-grey: #6D6D6D;
  
    --theme-color-black: #2d2728;
  
    --theme-font-color: #000000;
  
    --theme-padding: 20px;
  
    --theme-padding-mobile: 20px;
  
    --theme-margin: 20px;

    --theme-margin-negative: -20px;
  
    --theme-margin-mobile: 20px;
  
    --theme-font-family: 'Roboto', sans-serif; /* 'Roboto Condensed', sans-serif; 'Rubik', sans-serif; */
}

/**
 * Theme
 *
 * @since 1.0.0
 */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, 
address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, 
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

article, aside, details, figcaption, figure, footer,
header, main, nav, section {
	display: block;
}

html, body {
    width: 100%;
    min-width: 320px;
    font-size: 16px;
    line-height: normal;
    font-family: var( --theme-font-family );
    font-style: normal;
    font-weight: normal;
    color: var( --theme-font-color );
    background-color: #f9f9f9;
    font-display: swap;
}

@media only screen and (max-width: 1100px) {
    body {
        background-color: #f9f9f9;
    }
}

ul {
    padding: 0;
    margin: 0;
}

strong, b {
    font-weight: 600;
}

em {
    font-style: italic;
}

a {
    text-decoration: none;
    color: var( --theme-color );
    transition: .4s;
}

a:hover {
    opacity: 0.8;
}

.theme-scroll-to:hover, .theme-scroll-to > *:hover {
    opacity: 1 !important;
}

/*.theme-content a {
    text-decoration: underline;
    font-weight: 400;
}

.theme-content a:hover {
    text-decoration: none;
}*/

/** 
 * Scrollbar customize
 *
 * @since 1.0.0
 */
.theme-menu-header::-webkit-scrollbar, .dmimag-events-card-grid::-webkit-scrollbar {
    height: 6px;
}

.theme-menu-header:hover::-webkit-scrollbar-track, .dmimag-events-card-grid::-webkit-scrollbar-track {
    background-color: var(--theme-color-grey)
}

.theme-menu-header:hover::-webkit-scrollbar-thumb, .dmimag-events-card-grid::-webkit-scrollbar-thumb {
    background-color: var(--theme-color);
    border-radius: 0;
    border: none;
}

.theme-modal::-webkit-scrollbar, 
.theme-all-posts .theme-grid-card::-webkit-scrollbar,
.theme-search-form select::-webkit-scrollbar {
    width: 6px;
}

.theme-modal::-webkit-scrollbar-track, 
.theme-all-posts .theme-grid-card::-webkit-scrollbar-track,
.theme-search-form select::-webkit-scrollbar-track {
    background-color: #e2e2e2; /*var( --theme-color-grey );*/
}

.theme-modal::-webkit-scrollbar-thumb, 
.theme-all-posts .theme-grid-card::-webkit-scrollbar-thumb,
.theme-search-form select::-webkit-scrollbar-thumb {
    background-color: var( --theme-color );
    border-radius: 0;
    border: none;
}

/** 
 * Theme ads
 *
 * @since 1.0.0
 */
.theme-ads {
    display: flex;
    width: 100%;
    justify-content: center;
}

.theme-ads a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.theme-block-item .theme-ads + .theme-block-item .theme-ads {
    margin-top: var( --theme-margin );
}

.theme-ads-desktop {
    display: flex;
    width: 100%;
    justify-content: center;
}

.theme-ads-mobile {
    display: none;
    width: 100%;
    justify-content: center;
}

@media only screen and (max-width: 1100px) {
    .theme-ads-desktop {
        display: none;
    }

    .theme-ads-mobile {
        display: flex;
    }
}

.theme-ads-header {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.theme-ads-empty {
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    color: #878787;
    font-size: 13px;
    position: relative;
}

.theme-ads-empty:before {
    width: 100%;
    content: 'Реклама';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -5px;
}

.theme-ads-header {
    height: 150px;
}

/*
@media only screen and (max-width: 1210px) {
    .theme-ads-header {
        height: 130px;
    }
}

@media only screen and (max-width: 1100px) {
    .theme-ads-header {
        height: 250px;
    }
}

@media only screen and (max-width: 680px) {
    .theme-ads-header {
        height: 210px;
    }
}

@media only screen and (max-width: 560px) {
    .theme-ads-header {
        height: 180px;
    }
}

@media only screen and (max-width: 480px) {
    .theme-ads-header {
        height: 150px;
    }
}
*/

.theme-ads-items, .theme-post-content div[class*=dvysia-], .adrotate_widgets {
    padding: 20px;
    background-color: #f9f9f9;
}

/*.theme-post-content div[class*=advads-] {
    max-height: 340px;
}*/

@media only screen and (max-width: 768px) {
    theme-ads-items, .theme-post-content div[class*=advads-] {
        padding: 10px;
    }
}

/*.theme-post-content div[class*=advads-], .theme-ads-item {
    overflow: hidden;
}*/

/**
 * Theme ADS in footer single
 *
 */
.theme-grid-row-ads {
    margin-bottom: var(--theme-margin) !important;
}

.theme-grid-row.theme-grid-sparrow + .theme-grid-row {
    margin-bottom: var(--theme-margin) !important;
}

@media only screen and (max-width: 1100px) {
    .theme-grid-yandex-native-ads {
        display: block;
    }

    .theme-grid-row.theme-grid-sparrow {
        margin-bottom: var(--theme-margin) !important;
    }

    .theme-read-also+.theme-grid-row {
        display: none;
    }
}

/** 
 * Theme counter
 *
 * @since 1.0.0
 */
.theme-counter {
    display: flex;
    flex-direction: row;
}

.theme-counter a:not(:last-child) {
    margin-right: 20px;
}

@media only screen and (max-width: 580px) {
    .theme-counter, footer .theme-grid-row.widget_custom_html {
        justify-content: center;
    }
}

/** 
 * Theme mobile, desktop
 *
 * @since 1.0.0
 */
.theme-desktop {
    display: flex;
}

.theme-mobile {
    display: none;
}

@media only screen and (max-width: 1100px) {
    .theme-desktop {
        display: none;
    }

    .theme-mobile {
        display: flex;
    }
}