/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*#region hlavni vzhled pro slider cards-wrapper*/
/* Nachází se v mnoha blades */

.cards-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
}

.cards-wrapper #cards {
    position: relative;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/*#region Grid template - umožňuje vytvořit pěknou tabulku, která zaplní celý řádek. Nedá se ale použít pro zarovnání na střed*/
.cards-wrapper #cards.grid-template {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 1rem;
}

.cards-wrapper #cards.grid-template .item {
    width: 100%;
}

/*#endregion Grid template */

/*#region Flex template umožňuje zarovnání na střed. Pokud je ale více než jeden řádek, tak ty v druhém řádku mohou být jinak široké podle min max width-*/
.cards-wrapper #cards.flex-template {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
}

.cards-wrapper #cards.flex-template .item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    max-width: 430px;
    min-width: 320px;
}

/*#endregion Flex template */

.cards-wrapper #cards .item {
    position: relative;
    height: 320px;
    -webkit-transition: all 0.7s;
    -o-transition: all 0.7s;
    transition: all 0.7s;
}

.cards-wrapper #cards .item:hover a::before {
    content: "+";
    position: absolute;
    display: block;
    color: var(--g-color-1);
    background: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 2;
    font-weight: 600;
    font-size: 25px;
    text-align: center;
    line-height: 46px;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
}

.cards-wrapper #cards .item.youtube_movie a::before {
    position: absolute;
    display: block;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    margin-left: -25px;
    margin-top: -25px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 2;
    font-weight: 600;
    font-size: 25px;
    text-align: center;
    line-height: 50px;
}

.cards-wrapper #cards .item.youtube_movie:hover a::before {
    position: absolute;
    display: block;
    background: transparent;
    z-index: 2;
    font-weight: 600;
    font-size: 25px;
    text-align: center;
    line-height: 50px;
}

.cards-wrapper .item.youtube_movie:after {
    background: url("/_data/styly/img/youtube-play.png") 0 -60px no-repeat;
}

.cards-wrapper .item.youtube_movie:after {
    content: "";
    height: 64px;
    width: 88px;
    position: absolute;
    left: calc(50% - 44px);
    top: calc(50% - 32px);
    pointer-events: none;
    opacity: .8
}

.cards-wrapper #cards .card-description,
.cards-wrapper #cards .card-title {
    position: relative;
    z-index: 1;
    color: #fff;
    display: block;
    text-shadow: #111 1px 0 10px;
    min-height: 68px;
}

.cards-wrapper #cards .card-title {
    font-weight: 600;
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
    padding: 2rem 2rem 0 3rem;
    position: relative;
    text-transform: uppercase;
}

.cards-wrapper #cards .card-title:before {
    content: "/";
    font-weight: 400;
    display: inline-block;
    position: absolute;
    font-size: 2.572rem;
    left: 22px;
    top: 18px;
}

.cards-wrapper #cards .card-description {
    font-weight: 400;
    font-size: 1.017rem;
    color: #fff;
    margin: 0;
    padding: 1rem 0 0 3rem;
}

.cards-wrapper #cards .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 0.37s;
    -o-transition: all 0.37s;
    transition: all 0.37s;
}


.cards-wrapper #cards .item:hover .card-link {
    background: rgba(0, 0, 0, 0.8);
}

.cards-wrapper #cards .item:hover a {
    opacity: 0.6;
}

@media (max-width: 450px) {
    .cards-wrapper #cards .item {
        width: 99%;
        height: 272px;
    }
}

/*#endregion*/
