/* ===================================
   Gallery Items
====================================== */

.instant-gallery{
    min-height: 100px;
}

.qmg-caption-defaultWrap{
    background-color: #00000008;
}

/*Expand Gallery*/
.qmg-popup-singlePageInline .qmg-popup-content > div{
    min-height: 300px;
    background-color: #f1f3f5;
}

.qmg-popup-singlePageInline .qmg-template-not-found {
    heigth: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
    line-height: 1;
    color: #2b2b2b;
    font-weight: 400;
}

.qmg-popup-singlePageInline .qmg-popup-close{
    position: relative;
    background-color: #c2cbd2;
    overflow: hidden;
    transition: all .3s ease-in-out;
}

.qmg-popup-singlePageInline .qmg-popup-close::before,
.qmg-popup-singlePageInline .qmg-popup-close::after{
    content: '';
    height: 2px;
    width: 15px;
    top: 50%;
    left: 50%;
    position: absolute;
    background-color: #fff;
    display: inline-block;
    transform: translate(-50%, -50%);
    transition: background-color .3s ease-in-out;
}

.qmg-popup-singlePageInline .qmg-popup-close::before{
    transform: translate(-50%, -50%) rotate(45deg);
}
.qmg-popup-singlePageInline .qmg-popup-close::after{
    transform: translate(-50%, -50%) rotate(-45deg);
}

.instant-gallery-type-grid .qmg-caption-defaultWrap > img,
.instant-gallery-type-justified .qmg-caption-defaultWrap > img,
.instant-gallery-type-slider .qmg-caption-defaultWrap > img,
.instant-gallery-type-creative .qmg-caption-defaultWrap > img,
.instant-gallery-type-expand .qmg-caption-defaultWrap > img{
    height: 100%;
    width:100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.instant-gallery .qmg-caption-activeWrap{
    background-color: var(--e-global-color-primary)
}

.instant-gallery .qmg-action-icons-wrapper{
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
}

.instant-gallery .qmg-icon-lightbox,
.instant-gallery .qmg-icon-external-link{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    line-height: 1;
    font-size: 15px;
    color: #fff;
    border: 1px solid #fff;
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.instant-gallery .qmg-icon-lightbox > svg,
.instant-gallery .qmg-icon-external-link > svg {
    fill: #fff;
    height: auto;
    width: 15px;
    -webkit-transition: fill .3s ease-in-out;
    -o-transition: fill .3s ease-in-out;
    transition: fill .3s ease-in-out;
}

.instant-gallery .qmg-icon-lightbox:hover,
.instant-gallery .qmg-icon-external-link:hover{
    color: var(--e-global-color-primary);
    background-color: #fff;
}

.instant-gallery .qmg-icon-lightbox:hover > svg,
.instant-gallery .qmg-icon-external-link:hover > svg{
    fill: var(--e-global-color-primary);
}

.instant-gallery .qmg-l-grid-item-content-outside{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 15px;
    background-color: #f3f3f3;
}

.rtl .instant-gallery .qmg-l-grid-item-content-outside{
    text-align: right;
}

.instant-gallery .qmg-l-grid-item-title {
    font-size: 17px;
    font-weight: 500;
}

.instant-gallery .qmg-l-grid-item-desc {
    font-size: 15px;
    font-weight: 400;
}

.instant-gallery .qmg-l-grid-item-content-inside{
    margin-top: 15px;
}

.qmg-l-grid-item-content-inside .qmg-l-grid-item-title {
    color:#fff;
}

.qmg-l-grid-item-content-inside .qmg-l-grid-item-desc {
    color:#fff;
}

.instant-gallery:not(.qmg-ready) .qmg-caption-defaultWrap{
    opacity: 0;
    visibility:hidden;
}

/*Overlay Effects*/
.instant-gallery.qmg-caption-overlayBottom .qmg-caption-activeWrap{
    height:auto;
}

.instant-gallery.qmg-caption-overlayBottomPush .qmg-caption-activeWrap {
    height: auto;
}

.instant-gallery.qmg-caption-overlayBottomPush .qmg-caption:hover .qmg-caption-activeWrap {
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
}

.instant-gallery.qmg-caption-overlayBottomPush .qmg-caption:hover .qmg-caption-defaultWrap{
    -webkit-transform: translateY(-60px);
    -ms-transform: translateY(-60px);
    transform: translateY(-60px);
}

/*Overlay Along*/
.qmg-caption-overlayLeftAlong .qmg-caption-activeWrap {
    top: 0;
    right: -50%;
    width: 50%;
}

.qmg-caption-overlayLeftAlong .qmg-caption:hover .qmg-caption-activeWrap {
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}

.qmg-caption-overlayLeftAlong .qmg-caption-defaultWrap, .qmg-caption-overlayLeftAlong .qmg-caption-activeWrap {
    -webkit-transition: -webkit-transform .4s;
    transition: -webkit-transform .4s;
    -o-transition: transform .4s;
    transition: transform .4s;
    transition: transform .4s, -webkit-transform .4s;
}

.qmg-caption-overlayLeftAlong .qmg-caption:hover .qmg-caption-defaultWrap {
    -webkit-transform: translateX(-25%);
    -ms-transform: translateX(-25%);
    transform: translateX(-25%);
}

/*Rotate*/
.qmg-caption-rotate .qmg-caption-activeWrap {
    opacity: 0;
    top: 0;
    -webkit-transition: opacity .4s;
    -o-transition: opacity .4s;
    transition: opacity .4s;
}

.qmg-caption-rotate .qmg-caption-defaultWrap{
    transition: transform 0.35s ease-out 0s, -webkit-transform 0.35s ease-out 0s;
}

.qmg-caption-rotate .qmg-caption:hover .qmg-caption-defaultWrap {
    -webkit-transform: scale(1.25) rotate(
            3deg
    );
    -ms-transform: scale(1.25) rotate(
            3deg
    );
    transform: scale(1.25) rotate(
            3deg
    );
}

.qmg-caption-rotate .qmg-caption:hover .qmg-caption-activeWrap {
    opacity: 1;
}

/*Classic*/
.qmg-caption-classic .qmg-caption-activeWrap {
    opacity: 1;
    top:0;
    left:0;
    background-color: #0000003b;
}

/*minimal*/
.qmg-caption-minimal .qmg-caption-activeWrap {
    opacity: 1;
    top:0;
    left:0;
    background-color: #0000003b;
}

.qmg-caption-minimal .qmg-l-caption-body{
    position: relative;
    vertical-align: bottom
}

.qmg-caption-minimal .qmg-action-icons-wrapper{
    position: absolute;
    top:50%;
    left: 50%;
    -webkit-transform: translate(-50%,-30%);
    -ms-transform: translate(-50%,-30%);
    transform: translate(-50%,-30%);
    opacity: 0;
    -webkit-transition: transform 0.4s ease 0s, opacity 0.4s ease;
    -o-transition: transform 0.4s ease 0s, opacity 0.4s ease;
    -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease 0s;
    transition: opacity 0.4s ease, -webkit-transform 0.4s ease 0s;
    transition: transform 0.4s ease 0s, opacity 0.4s ease;
    transition: transform 0.4s ease 0s, opacity 0.4s ease, -webkit-transform 0.4s ease 0s;
}

.qmg-caption-minimal .qmg-caption:hover .qmg-action-icons-wrapper{
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    opacity: 1;
    -webkit-transition: transform 0.4s ease 0s, opacity 0.4s ease;
    -o-transition: transform 0.4s ease 0s, opacity 0.4s ease;
    -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease 0s;
    transition: opacity 0.4s ease, -webkit-transform 0.4s ease 0s;
    transition: transform 0.4s ease 0s, opacity 0.4s ease;
    transition: transform 0.4s ease 0s, opacity 0.4s ease, -webkit-transform 0.4s ease 0s;
}

/*ZoomBoxLine*/
.qmg-caption-zoomBoxLine .qmg-caption-activeWrap {
    opacity: 0;
    top: 0;
    -webkit-transition: opacity 0.4s ease 0s;
    -o-transition: opacity 0.4s ease 0s;
    transition: opacity 0.4s ease 0s;
}

.qmg-caption-zoomBoxLine .qmg-caption:hover .qmg-caption-activeWrap {
    opacity: 1;
}

.qmg-caption-zoomBoxLine .qmg-caption-defaultWrap {
    -webkit-transition: -webkit-transform .35s ease-out;
    transition: -webkit-transform .35s ease-out;
    -o-transition: transform .35s ease-out;
    transition: transform .35s ease-out;
    transition: transform .35s ease-out, -webkit-transform .35s ease-out;
}

.qmg-caption-zoomBoxLine .qmg-caption:hover .qmg-caption-defaultWrap {
    -webkit-transform: scale(1.25);
    -ms-transform: scale(1.25);
    transform: scale(1.25);
}

.qmg-caption-zoomBoxLine .qmg-action-icons-wrapper {
    -webkit-transform: translateY(-50px);
    -ms-transform: translateY(-50px);
    transform: translateY(-50px);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-zoomBoxLine .qmg-caption:hover .qmg-action-icons-wrapper {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-zoomBoxLine .qmg-l-grid-item-content-inside {
    -webkit-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-zoomBoxLine .qmg-caption:hover .qmg-l-grid-item-content-inside {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-zoomBoxLine .qmg-caption-activeWrap:before {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: '';
    opacity: 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1);
    pointer-events: none;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.5s;
    transition: opacity 0.35s, -webkit-transform 0.5s;
    -o-transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s, -webkit-transform 0.5s;
}

.qmg-caption-zoomBoxLine .qmg-caption-activeWrap:after {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: '';
    opacity: 0;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    -ms-transform: scale(1, 0);
    transform: scale(1, 0);
    pointer-events: none;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.5s;
    transition: opacity 0.35s, -webkit-transform 0.5s;
    -o-transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s, -webkit-transform 0.5s;
}

.qmg-caption-zoomBoxLine .qmg-caption:hover .qmg-caption-activeWrap:before, .qmg-caption-zoomBoxLine .qmg-caption:hover .qmg-caption-activeWrap:after {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

/*zoomCrossLine*/
.qmg-caption-zoomCrossLine .qmg-caption-activeWrap {
    opacity: 0;
    top: 0;
    -webkit-transition: opacity 0.4s ease 0s;
    -o-transition: opacity 0.4s ease 0s;
    transition: opacity 0.4s ease 0s;
}

.qmg-caption-zoomCrossLine .qmg-caption:hover .qmg-caption-activeWrap {
    opacity: 1;
}

.qmg-caption-zoomCrossLine .qmg-caption-defaultWrap {
    -webkit-transition: -webkit-transform .35s ease-out;
    transition: -webkit-transform .35s ease-out;
    -o-transition: transform .35s ease-out;
    transition: transform .35s ease-out;
    transition: transform .35s ease-out, -webkit-transform .35s ease-out;
}

.qmg-caption-zoomCrossLine .qmg-caption:hover .qmg-caption-defaultWrap {
    -webkit-transform: scale(1.25);
    -ms-transform: scale(1.25);
    transform: scale(1.25);
}

.qmg-caption-zoomCrossLine .qmg-caption-activeWrap:before {
    position: absolute;
    top: 30px;
    right: 20px;
    bottom: 30px;
    left: 20px;
    content: '';
    opacity: 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1);
    pointer-events: none;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.5s;
    transition: opacity 0.35s, -webkit-transform 0.5s;
    -o-transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s, -webkit-transform 0.5s;
}

.qmg-caption-zoomCrossLine .qmg-caption-activeWrap:after {
    position: absolute;
    top: 20px;
    right: 30px;
    bottom: 20px;
    left: 30px;
    content: '';
    opacity: 0;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    -ms-transform: scale(1, 0);
    transform: scale(1, 0);
    pointer-events: none;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.5s;
    transition: opacity 0.35s, -webkit-transform 0.5s;
    -o-transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s;
    transition: opacity 0.35s, transform 0.5s, -webkit-transform 0.5s;
}

.qmg-caption-zoomCrossLine .qmg-caption:hover .qmg-caption-activeWrap:before, .qmg-caption-zoomCrossLine .qmg-caption:hover .qmg-caption-activeWrap:after {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.instant-gallery-album-wrapper{
    margin: 0;
    padding:0;
    list-style: none;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/*Blur In*/
.qmg-caption-blurIn .qmg-caption-activeWrap {
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    background-color: #0d0e0e6e;
    backdrop-filter: saturate(1.2) blur(3px);
}

.qmg-caption-blurIn .qmg-caption .qmg-caption-defaultWrap{
    -webkit-transition: all .35s ease-out;
    transition: all .35s ease-out;
    -o-transition: all .35s ease-out;
    transition: all .35s ease-out;
}

.qmg-caption-blurIn .qmg-caption:hover .qmg-caption-defaultWrap {
    transform: scale(1.25);
}

.qmg-caption-blurIn .qmg-caption:hover .qmg-caption-activeWrap {
    opacity: 1;
}

.qmg-caption-blurIn .qmg-action-icons-wrapper {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-blurIn .qmg-caption:hover .qmg-action-icons-wrapper {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-blurIn .qmg-l-grid-item-content-inside {
    -webkit-transform: translateY(10px);
    -ms-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.qmg-caption-blurIn .qmg-caption:hover .qmg-l-grid-item-content-inside {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

/*Modern Left*/
.qmg-caption-modernLeft .qmg-caption-activeWrap {
    opacity: 0;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    height: calc(100% - 30px);
    width: calc(100% - 30px);
    -webkit-transition: opacity .4s;
    -o-transition: opacity .4s;
    transition: opacity .4s;
}

.qmg-caption-modernLeft .qmg-caption-defaultWrap{
    transition: transform 0.35s ease-out 0s,
    -webkit-transform 0.35s ease-out 0s;
}

.qmg-caption-modernLeft .qmg-caption:hover .qmg-caption-defaultWrap {
    -webkit-transform: scale(1.25);
    -ms-transform: scale(1.25);
    transform: scale(1.25);
}

.qmg-caption-modernLeft .qmg-caption:hover .qmg-caption-activeWrap {
    opacity: 1;
}

.instant-gallery.qmg-caption-modernLeft .qmg-l-grid-item-content-inside{
    padding: 15px;
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: left;
}

/*Creative Layout*/
.instant-gallery-creative-wrapper .instant-gallery-header-wrapper{
    position: relative;
    max-width: 50%;
    z-index: 2;
}

.instant-gallery-creative-wrapper .instant-gallery-heading{
    font-size: 40px;
    margin: 0 0 30px;
}

.instant-gallery-creative-wrapper .qmg-bottom-content{
    display:flex;
    flex-direction: column;
    justify-content: center;
}

.instant-gallery-creative-wrapper .qmg-bottom-content .qmg-item-wrapper{
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.instant-gallery-creative-wrapper .instant-gallery-sub-heading{
    font-size: 35px;
    line-height: 1;
    margin: 0 0 15px;
}

.instant-gallery-creative-wrapper .instant-gallery-description{
    margin: 0;
}

.instant-gallery-creative-wrapper .instant-gallery-btn-wrapper{
    flex-shrink: 0;
    flex-grow: 0;
}

.instant-gallery-creative-wrapper .instant-gallery-btn{
    display: inline-block;
    text-align: center;
    cursor: pointer;
    line-height: 1;
    padding: 15px 35px;
    color: #fff;
    min-width: max-content;
    background-color: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
    -webkit-transition: all .3s ease-in-out;
    -o-transition:  all .3s ease-in-out;
    transition:  all .3s ease-in-out;
}

.instant-gallery-creative-wrapper .instant-gallery-btn:hover,
.instant-gallery-creative-wrapper .instant-gallery-btn:focus{
    color: var(--e-global-color-primary);
    background-color: transparent;
}

/* ===================================
   Load More
====================================== */

.instant-gallery-loadmore-wrapper{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.instant-gallery-loadmore .qmg-l-loadMore-stop{
    display: none;
}

/* ===================================
   Filters
====================================== */

.instant-gallery-actions-wrapper{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.instant-gallery-wrapper .instant-gallery-filter{
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding:0;
    margin-bottom: 30px;
}

.instant-gallery-wrapper .qmg-filter-item{
    margin:0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #888888;
    border: 1px solid #ECECEC;
}

.instant-gallery-wrapper .qmg-filter-item.qmg-filter-item-active{
    background-color: var(--e-global-color-primary);
    color: #fff;
    border-color: var(--e-global-color-primary);
}

.instant-gallery-dropdown-wrapper{
    display:none;
    opacity:0;
    visibility: hidden;
}

button.instant-gallery-dropdown-icon{
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

button.instant-gallery-dropdown-icon:focus{
    border-radius: 0;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
}

button.instant-gallery-dropdown-icon > svg{
    width: 20px;
    height: auto;
    fill: #fff;
}

.instant-gallery-wrapper .qmg-filter-item .qmg-filter-counter-inline{
    position: relative;
    opacity: 1;
    height: 16px;
    width: 16px;
    font-size: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50px;
    background-color: #888888;
}

.instant-gallery-wrapper .qmg-filter-item .qmg-filter-counter-tooltip{
    height: 30px;
    width: 40px;
    font-size: 12px;
    line-height: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.instant-gallery-wrapper .qmg-filter-item .qmg-filter-counter-inline:after{
    content: none;
}

.instant-gallery-wrapper .qmg-filter-item:hover .qmg-filter-counter-inline{
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

.instant-gallery-wrapper .qmg-filter-item.qmg-filter-item-active .qmg-filter-counter-inline{
    background-color: #fff;
    color:var(--e-global-color-primary);
}

/* ===================================
   Search
====================================== */

.instant-gallery-wrapper .instant-gallery-search-wrapper{
    margin: 0;
    padding:0;
    width:300px;
    margin-bottom: 30px;
}

.instant-gallery-search-wrapper .qmg-search-icon{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #888888;
    font-size: 14px;
    line-height: 1;
}

.instant-gallery-search-wrapper .qmg-search-icon > svg{
    fill: #888888;
    height: auto;
    width: 14px;
}

.instant-gallery-search-wrapper .qmg-search-icon:after{
    content: none;
}

.instant-gallery-search-wrapper .instant-gallery-search{
    border-radius: 0;
    font-size: 14px;
    color:#888888;
    border: 1px solid #ECECEC;
    width:100%;
    max-width: 100%;
    margin: 0;
}

.instant-gallery-search-wrapper .instant-gallery-search:focus{
    outline: none;
}

.instant-gallery-wrapper .qmg-search-icon{
    width: 50px;
}

/* ===================================
   Navigation
====================================== */

.instant-gallery-wrapper .qmg-nav-controls .qmg-nav-prev,
.instant-gallery-wrapper .qmg-nav-controls .qmg-nav-next{
    position: absolute;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    height: 40px;
    width: 40px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #6ec1e4;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    z-index: 2;
    margin: 0;
    border: 1px solid #6ec1e4;
    -webkit-transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out, border-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out, border-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out, border-color 0.2s ease-in-out;
}

.instant-gallery-wrapper .qmg-nav-controls svg{
    height: auto;
    width: 50px;
    fill: #fff;
    transition: fill .2s ease-in-out;
}

.instant-gallery-wrapper .qmg-nav-controls .qmg-nav-prev{
    left: 10px;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.instant-gallery-wrapper .qmg-nav-controls .qmg-nav-next{
    right: 10px;
    top: 50%;
    bottom: auto;
    left: auto;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* ===================================
  Dots
====================================== */

.qmg-nav-pagination .qmg-nav-pagination-item {
    --instant-gallery-slider-dot-height: 12px;
    --instant-gallery-slider-dot-width: 12px;
    position: relative;
    height:var(--instant-gallery-slider-dot-height);
    width: var(--instant-gallery-slider-dot-width);
    background-color: transparent;
    border-radius: 50px;
    border: 1px solid #6ec1e4;
    opacity: 1;
    -webkit-transition: color .3s ease-in-out, background .3s ease-in-out, border .3s ease-in-out;
    -o-transition: color .3s ease-in-out, background .3s ease-in-out, border .3s ease-in-out;
    transition: color .3s ease-in-out, background .3s ease-in-out, border .3s ease-in-out;
}

.qmg-nav-pagination .qmg-nav-pagination-active {
    background-color: #6ec1e4;
}

.instant-gallery-dots-style-2 .qmg-nav-pagination-active {
    width: calc( var(--instant-gallery-slider-dot-width) * 2);
}

.instant-gallery-dots-style-3 .qmg-nav-pagination-active{
    -webkit-transform:scale(1.4);
    -ms-transform:scale(1.4);
    transform:scale(1.4);
}

.instant-gallery-dots-style-4 .swiper-pagination-bullet{
    --instant-gallery-slider-dot-height: 8px;
    --instant-gallery-slider-dot-width: 8px;
    border:none;
    background-color: #6ec1e4;
}

.instant-gallery-dots-style-4 .qmg-nav-pagination-active:after{
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #6ec1e4;
    border-radius: 50%;
}

/* ===================================
   FancyBox Styling
====================================== */

.admin-bar .instant-gallery-lightbox{
    padding-top: 32px;
}

.instant-gallery-lightbox button:hover,
.instant-gallery-lightbox button:focus{
    background: var(--f-button-hover-bg);
}

.instant-gallery-lightbox{
    z-index: 9999;
}

.instant-gallery-lightbox .fancybox-image{
    position: relative;
}

.instant-gallery-lightbox .fancybox__html5video{
    -o-object-fit: cover;
    object-fit: cover;
}

.instant-gallery-lightbox .fancybox__content{
    padding: 0;
}

.instant-gallery-lightbox .fancybox__caption{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
}

.instant-gallery-lightbox .fancybox__caption > p{
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

/* ===================================
   Media Queries
====================================== */

/*Tablet Screens*/
@media screen and (max-width: 1025px) {

    /*Fitlters*/
    .instant-gallery-dropdown-tablet .instant-gallery-dropdown-area{
        position: relative;
        width: 100%;
        margin-bottom: 15px;
    }

    .instant-gallery-dropdown-tablet .instant-gallery-actions-wrapper{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }

    .instant-gallery-dropdown-tablet .instant-gallery-dropdown-wrapper {
        width: 100%;
        position: relative;
        background-color: var(--e-global-color-primary);
        color: #fff;
        margin: 0;
        padding: 10px 15px;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: pointer;
        text-align: left;
        opacity: 1;
        visibility: visible;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .instant-gallery-dropdown-tablet .instant-gallery-dropdown-content {
        pointer-events: none;
    }

    .instant-gallery-dropdown-tablet .qmg-l-filters-button {
        width: 100%;
        position: absolute;
        left: 0;
        padding: 0;
        list-style: none;
        display: none;
        z-index: 9;
        margin: 0;
        -webkit-box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
        box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
        -webkit-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .instant-gallery-dropdown-tablet.active .qmg-l-filters-button {
        display: -ms-inline-grid;
        display: inline-grid;
        gap:0;
    }

    .instant-gallery-dropdown-tablet .qmg-l-filters-button{
        gap: 0 !important;
    }

    .instant-gallery-dropdown-tablet .qmg-l-filters-button .qmg-filter-item {
        position: relative;
        font: inherit;
        border: none !important;
        border-top: 1px solid #fff !important;
        background-color: var(--e-global-color-primary) !important;
        color: #fff !important;
        padding: 10px 15px;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100%;
        text-align: left;
        -webkit-box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
        box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
    }

    .instant-gallery-dropdown-tablet .qmg-l-filters-button:hover{
        border-color: #fff;
    }

    .instant-gallery-dropdown-tablet .qmg-filter-item.qmg-filter-item-active{
        display: none;
    }

    .instant-gallery-dropdown-tablet .instant-gallery-filter > i{
        display: none;
    }

    .instant-gallery-wrapper .qmg-filter-counter{
        display: none !important;
    }

    /*Search*/
    .instant-gallery-dropdown-tablet .instant-gallery-search-wrapper{
        width:100% !important;
    }

    .instant-gallery-dropdown-tablet .instant-gallery-search{
        width:100% !important;
    }

    .instant-gallery-dropdown-tablet .instant-gallery-search-wrapper{
        margin-bottom: 15px;
    }

    /*Creative Layout*/
    .instant-gallery-creative-wrapper .instant-gallery-header-wrapper{
        max-width: 100%;
    }

}

/*Mobile Screens*/
@media screen and (max-width:767px){

    /*Lightbox*/
    .instant-gallery-lightbox .fancybox__toolbar__column.is-middle{
        display: none !important;
    }

    /*Fitlters*/
    .instant-gallery-dropdown-mobile .instant-gallery-dropdown-area{
        position: relative;
        width: 100%;
        margin-bottom: 15px;
    }

    .instant-gallery-dropdown-mobile .instant-gallery-actions-wrapper{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }

    .instant-gallery-dropdown-mobile .instant-gallery-dropdown-wrapper {
        width: 100%;
        position: relative;
        background-color: var(--e-global-color-primary);
        color: #fff;
        margin: 0;
        padding: 10px 15px;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: pointer;
        text-align: left;
        opacity: 1;
        visibility: visible;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .instant-gallery-dropdown-mobile .instant-gallery-dropdown-content {
        pointer-events: none;
    }

    .instant-gallery-dropdown-mobile .qmg-l-filters-button {
        width: 100%;
        position: absolute;
        left: 0;
        padding: 0;
        list-style: none;
        display: none;
        z-index: 9;
        margin: 0;
        -webkit-box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
        box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
        -webkit-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .instant-gallery-dropdown-mobile.active .qmg-l-filters-button {
        display: -ms-inline-grid;
        display: inline-grid;
        gap:0;
    }

    .instant-gallery-dropdown-mobile .qmg-l-filters-button{
        gap: 0 !important;
    }

    .instant-gallery-dropdown-mobile .qmg-l-filters-button .qmg-filter-item {
        position: relative;
        font: inherit;
        border: none !important;
        border-top: 1px solid #fff !important;
        background-color: var(--e-global-color-primary) !important;
        color: #fff !important;
        padding: 10px 15px;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100%;
        text-align: left;
        -webkit-box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
        box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
    }

    .instant-gallery-dropdown-mobile .qmg-l-filters-button:hover{
        border-color: #fff;
    }

    .instant-gallery-dropdown-mobile .qmg-filter-item.qmg-filter-item-active{
        display: none;
    }

    .instant-gallery-dropdown-mobile .instant-gallery-filter > i{
        display: none;
    }

    .instant-gallery-wrapper .qmg-filter-counter{
        display: none !important;
    }

    /*Search*/
    .instant-gallery-dropdown-mobile .instant-gallery-search-wrapper{
        width:100% !important;
    }

    .instant-gallery-dropdown-mobile .instant-gallery-search{
        width:100% !important;
    }

    .instant-gallery-dropdown-mobile .instant-gallery-search-wrapper{
        margin-bottom: 15px;
    }

    .instant-gallery-creative-wrapper .qmg-bottom-content .qmg-item-wrapper {
        display: block;
    }

    .instant-gallery-creative-wrapper .instant-gallery-btn-wrapper{
        margin-top: 15px;
    }

}