/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.gallery__template_1 {
    padding: var(--gallery-template-1-padding);
    position: relative;
}

.gallery__template_1 .bg-image {
    background: var(--gallery-template-1-bg-color);
}

.gallery__template_1.cards-wrapper {
    background: #fff;
    position: relative;
    width: 100%
}

.gallery__template_1 .title {
    display: var(--gallery-template-1-title-display);
    color: var(--g-color-1);
    font-size: 60px;
    font-weight: 700;
}




.gallery__template_1 .card-description, .card-title {
    position: relative;
    z-index: 1;
    color: #fff;
    display: block;
    text-shadow: #111 1px 0 10px
}

.gallery__template_1 .card-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #fff;
    margin: 0;
    padding: 2rem 2rem 0 3rem;
    position: relative
}

/*.gallery__template_1 .card-title:before {*/
/*    content: "/";*/
/*    font-weight: 400;*/
/*    display: inline-block;*/
/*    position: absolute;*/
/*    font-size: 2rem;*/
/*    left: 21px;*/
/*    top: 21px*/
/*}*/

.gallery__template_1 .card-description {
    font-weight: 400;
    font-size: 1.017rem;
    color: #fff;
    margin: 0;
    padding: 1rem 1rem 0 3rem
}

.gallery__template_1 .card-link {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    -webkit-transition: all .37s;
    -o-transition: all .37s;
    transition: all .37s
}

.gallery__template_1 .grid {
    display: block;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: var(--gallery-template-1-grid-template-columns);
    grid-template-columns: var(--gallery-template-1-grid-template-columns);
    grid-gap: var(--gallery-template-1-grid-gap)
}

.gallery__template_1 .grid > .item {
    padding: 1rem
}

.gallery__template_1 .item {
    position: relative;
    width: 100%;
    width: 100%;
    height: var(--gallery-template-1-grid-minmax);
    aspect-ratio: var(--gallery-template-1-aspect-ratio);
    padding: 0;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
    -webkit-transition: all .7s;
    -o-transition: all .7s;
    transition: all .7s
}



.gallery__template_1 .item:hover a {
    opacity: .6
}

.gallery__template_1 #main-down-in {
    margin-top: 0
}

.gallery__template_1 .lg-outer.lg-thumb-open .lg-thumb-outer, .lg-thumb .lg-group {
    display: none;
    opacity: 0
}

.gallery__template_1 .cards-wrapper .item.item_youtube:after {
    background: url("/_data/styly/img/ui/youtube-play.png") 0 -60px no-repeat;
}

.gallery__template_1 .cards-wrapper .item.item_vimeo:after {
    background: url("/_data/styly/img/ui/vimeo-play.png") 0 -60px no-repeat;
}

.gallery__template_1 .cards-wrapper .item.item_youtube:after,
.gallery__template_1 .cards-wrapper .item.item_vimeo:after {
    content: "";
    height: 64px;
    width: 88px;
    position: absolute;
    left: calc(50% - 44px);
    top: calc(50% - 32px);
    pointer-events: none;
    opacity: .8
}

.gallery__template_1 .cards-wrapper .item.item_video:after {
    content: "";
    background: url("/_data/styly/img/ui/video-play.png") no-repeat;
    position: absolute;
    left: calc(50% - 44px);
    top: calc(50% - 32px);
    height: 64px;
    width: 64px;
    pointer-events: none;
    opacity: .8
}
