/**
 * @package    quantummanager
 * @author     Dmitry Tsymbal <cymbal@delo-design.ru>
 * @copyright  Copyright © 2019 Delo Design & NorrNext. All rights reserved.
 * @license    GNU General Public License version 3 or later; see license.txt
 * @link       https://www.norrnext.com
 */

.quantumpexels-module {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: #ffffff;
}

.quantumpexels-module.active {
    display: block;
}

.quantumpexels-module .quantumpexels-save {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: rgba(255,255,255,0.7);
}

.quantumpexels-module .quantumpexels-save .loader {
    width: 480px;
}

.quantumpexels-module .quantumpexels-module-container {
    position: relative;
    width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-direction: column;
    -webkit-flex-direction: column;
    flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
    justify-content: flex-end;
}

.quantumpexels-module .quantumpexels-module-container .quantumpexels-module-close {
    position: absolute;
    top: 8px;
    right: 4px;
}

.quantumpexels-module .quantumpexels-module-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 85px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.quantumpexels-module .quantumpexels-module-header > div {
    width: 100%;
}

.quantumpexels-module .quantumpexels-module-header label {
    width: 100%;
}

.quantumpexels-module .quantumpexels-module-header input {
    width: calc(100% - 37px);
    padding: 0 10px;
    padding-left: 25px;
    height: 35px;
    margin: 0;
    flex: 1;
    font-size: 17px;
    vertical-align: middle;
    display: inline-block;
    max-width: 100%;
    background: #fff;
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    box-shadow: none !important;
    font-weight: normal;
    transition: .2s ease-in-out;
    transition-property: color,background-color,border;
}

.quantumpexels-module .quantumpexels-module-header input:focus {
    border-color: rgba(82,168,236,0.8);
    outline: 0;
    outline: thin dotted \9;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(82 168 236 / 60%);
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(82 168 236 / 60%);
}

.quantumpexels-module .quantumpexels-module-header .header-filters {
    display: flex;
    width: 100%;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div:first-child > div {
    margin-right: 15px;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div:last-child {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div:last-child > * {
    margin-right: 10px;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div:last-child > *:last-child {
    margin-right: 0;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div:last-child > span {
    display: flex;
    align-content: center;
    align-items: center;
}

.quantumpexels-module .quantumpexels-module-header .header-filters > div:last-child a {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 9px;
}

.quantumpexels-module .quantumpexels-module-header .header-filters .quantummanager-dropdown-title {
    padding: 5px 10px;
    font-size: 14px;
}

.quantumpexels-module .quantumpexels-module-header .header-filters .quantummanager-dropdown-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quantumpexels-module .quantumpexels-module-header .header-filters .quantummanager-dropdown-content ul li {
    display: block;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 14px;
}

.quantumpexels-module .quantumpexels-module-header .header-filters .quantummanager-dropdown-content ul li:hover {
    background: #d7d7d7;
}

.quantumpexels-module .quantumpexels-module-header .header-filters [data-name="colors"] .quantummanager-dropdown-title span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-bottom: -5px;
    padding: 0;
    border-radius: 50%;
}

.quantumpexels-module .quantumpexels-module-header .header-filters [data-name="colors"] ul {
    display: flex;
    flex-wrap: wrap;
    padding-left: 5px;
    padding-top: 5px;
}

.quantumpexels-module .quantumpexels-module-header .header-filters [data-name="colors"] ul li {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 0;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.quantumpexels-module .quantumpexels-module-header .header-filters [data-name="colors"] ul li:hover {
    background: initial;
    transform: scale(1.2);
}

.quantumpexels-module .quantumpexels-module-header .header-filters [data-name="colors"] ul li span {
    display: none;
}

.quantumpexels-module .quantumpexels-module-header .header-filters [data-name="colors"] .color-all {
    background: red;
    background: -webkit-linear-gradient(left, orange , yellow, green, cyan, blue, violet);
    background: -o-linear-gradient(right, orange, yellow, green, cyan, blue, violet);
    background: -moz-linear-gradient(right, orange, yellow, green, cyan, blue, violet);
    background: linear-gradient(to right, orange , yellow, green, cyan, blue, violet);
}

.quantumpexels-module .quantumpexels-module-container-search-wrap {
    position: relative;
    width: 100%;
    height: calc(100% - 90px);
}

.quantumpexels-module .quantumpexels-module-container-search {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.quantumpexels-module .quantumpexels-module-search {
    margin-top: -1%;
    margin-left: -1%;
    margin-right: 0.5%;
}

.quantumpexels-module .quantumpexels-module-search .grid-sizer,
.quantumpexels-module .quantumpexels-module-search .grid-item
{
    width: 31.3%;
    margin: 1%;
    text-align: center;
}

.quantumpexels-module .quantumpexels-module-search .grid-item:hover {
    cursor: pointer;
}

.quantumpexels-module .quantumpexels-module-search .grid-item--width2 {
    width: 64.6%;
}

.quantumpexels-module .quantumpexels-module-search .grid-item img {
    width: 100%;
    height: 100%;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    transition: background-image 0.3s ease;
}

.quantumpexels-module .quantumpexels-module-search .grid-item:hover .pexels-meta-wrap {
    background-image: linear-gradient(rgba(0,0,0,0) 70%, rgba(0,0,0,.3));
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta {
    display: flex;
    width: 100%;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.quantumpexels-module .quantumpexels-module-search .grid-item:hover .pexels-meta {
    opacity: 1;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-like {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-like img {
    display: none;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-like svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-like svg > * {
    fill: #fff;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-like .quantummanager-icon {
    margin-right: 5px;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-user-avatar {
    width: 30px;
    height: 30px;
    margin-right: 13px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta a:hover {
    color: #eeeeee;
    cursor: pointer;
}

.quantumpexels-module .quantumpexels-module-search .pexels-meta .pexels-user-name {
    color: #ffffff;
    font-size: 15px;
}

.quantumpexels-module .quantumpexels-module-load-page {
    display: block;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    min-height: 45px;
}

.quantumpexels-module .quantumpexels-module-load-page .qm-btn {
    display: none;
    padding: 12px 25px;
    font-size: 17px;
}

.quantumpexels-module .quantumpexels-module-load-page.active .qm-btn {
    display: inline-block;
}

@media screen and (max-width: 1200px) {

    .quantumpexels-module .quantumpexels-module-container {
        max-width: 100%;
    }

}