:root {
    --thumb-height: 175px;
    --thumb-margin: 1px;
    --thumb-label-height: 50px;
    
    --container-padding-h: 40px;
}


.wide-container h2 {
    /*margin: 1.2em 0 0.7em;*/
    margin: 0.2em 0 0.2em;
    font-size: 1.6em;
}

.zindex0 {
    z-index: 0 !important;
}

.zindex5 {
    z-index: 5 !important;
}

.modalWin .swiper-wrapper .flex {
    align-items: flex-start !important;
    /*-webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;    */
}

.filter-items {
    margin-right: 15px;
    /*background: #f1cddb; */
    font-weight: bold;
}

main {
    padding-top: calc(var(--header-height) + 40px);
    position: relative;
    padding-bottom: 100px;
}

.wide-container h1 { font-size: 6.5vh; }

.wide-container h1 .smaller { font-size: .5em; }

.category-label-link {
    font-size: .9em;
    padding: 0px 15px;
}

.category-label-link a:not(:hover) { color: #000; }

.category-label-link .material-icons { 
    width: 0px;
    overflow: hidden;
    transition: .2s ease-out;
}

.category-label-link:hover .material-icons { 
    width: 1.1em;
}

.category-label-link a:hover {
    text-decoration: none;
}

.category-navigation .category-open-link {
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
}

.category-navigation {
    max-width: 730px;
    margin: AUTO;
    padding: 15px;
}

.decor-thumb-container {
    padding: 15px;
    background-color: #fff;
    width: 100%;
    max-height: 75vh;    
}

.decor-thumb-container:hover {
    box-shadow: 0px 3px 7px 0px rgba(0,0,0,.2);
    z-index: 10000000;
}

.decor-thumb-wrap {
    height: var(--thumb-height);
}



.decor-label p {
    height: var(--thumb-label-height);
    line-height: var(--thumb-label-height);
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.decor-thumb-holder {
    height: calc(var(--thumb-height) + 2 * var(--thumb-margin) + var(--thumb-label-height));
    cursor: pointer;
}

.decor-thumb-holder_search {
    height: calc(var(--thumb-height) + 2 * var(--thumb-margin) + var(--thumb-label-height) + 15px);
    cursor: pointer;
}

.decor-thumb-wrap img {
    width: 100%;
    height: 100%;
    /*max-height: 63vh;*/
    object-fit: cover;
    object-position: bottom left;    
}

.container[data-contain="1"] .decor-thumb-wrap img {
    object-fit: contain;
}

.decor-thumb-wrap img[src='/'] {
    height: 120px;display: block;
    position: relative;
    opacity: 0.1;
    border: 1px solid #000;
    color: transparent;
}

.decor-thumb-description {
    /*height: 0px;*/
    overflow: hidden;
    transition: .3s ease-out;
}

#note_id {
    color: red;
}

.decor-thumb-container:hover .decor-thumb-description {
    height: auto;
}

.wide-container {
    width: calc(100% - 2*var(--container-padding-h));
}


/*****************************************/

.modalWin .decor-thumb-wrap { 
    
    /*height: 35vw; */
    /*width: 60vw; */
    
}

.modalWin .decor-thumb-container.absolute { position: relative; padding: 0; }
.modalWin .decor-thumb-container:hover { box-shadow: none; }
.modalWin .decor-thumb-description { height: auto; }


@media (max-width: 767px)
{
    .container {
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    main {
        padding-top: calc(var(--header-height) + 30px);    
    }
}