///////////////////////////////////////////////////////////////
// Device: Desktop
///////////////////////////////////////////////////////////////

.jeu-grid1 {
    @include outer-container;
    margin-top: 60px;
    margin-bottom: 40px;
}

.jeu-grid1-wrapper {
    @include span-columns(10);
    @include shift(1);
}

.jeu-grid1-item {
    @include span-columns(4);
    @include omega(n);
    position: relative;
    overflow: hidden;
    background-color: black;
    &:hover {
        img {
            filter: blur(2px);
            opacity: 0.6;
            transform: scale(1.1);
        }
    }

    &.jeu-grid1-item-twogames, &.jeu-grid1-item-fourgames {
        @include span-columns(6);
        @include omega(n);
        max-height: 400px;
    }
    
    &.jeu-grid1-item--onegame
    {
        @include span-columns(6);
        @include shift(3);
        @include omega(n);
        max-height: 400px;
    }

    &.jeu-grid1-item-fivegames {
        width: 50%;
        float: left;
        max-height: 400px;
    }
    &.jeu-grid1-item-fivegames:nth-child(3),
    &.jeu-grid1-item-fivegames:nth-child(4),
    &.jeu-grid1-item-fivegames:nth-child(5) {
        width: 33.333333%;
        float: left;
    }
}

.jeu-grid1-item-img {
    overflow: hidden;
    img {
        transition: all .2s ease;
        transform: translateZ(0);
        transform-origin: 50% 50%;
        width: 100%;
        display: block;
    }
}

.jeu-grid1-item-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

.jeu-grid1-item-wrapper {
    display: table;
    height: 100%;
    width: 100%;
}

.jeu-grid1-item-infos {
    display: table-cell;
    vertical-align: middle;
    padding: 10px;
}

.jeu-grid1-item-infos-icon {
    svg {
        fill: white;
    }
    &.icon-grid-des {
        svg {
            width: 41px;
            height: 36px;
        }
    }
    &.icon-grid-cards {
        svg {
            width: 44px;
            height: 36px;
        }
    }
    &.icon-grid-wheel {
        svg {
            width: 44px;
            height: 36px;
        }
    }
    &.icon-grid-poker-circle {
        svg {
            width: 40px;
            height: 40px;
        }
    }
}

.jeu-grid1-item-title {
    font-family: "Lucien-bold";
    font-size: 2em;
    color: white;
    text-transform: uppercase;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    a {
        color: white;
    }
}

.jeu-grid1-item-btn {
    margin-top: 40px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    &:hover {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

///////////////////////////////////////////////////////////////
// Device: Tablet :: LANDSCAPE
///////////////////////////////////////////////////////////////

@include tablet-landscape-and-below {
    .jeu-grid1-item {
        float: left;
        width: 50%;
    }
}

///////////////////////////////////////////////////////////////
// Device: Tablet :: PORTRAIT
///////////////////////////////////////////////////////////////

@include tablet-portrait-and-below {
    .jeu-grid1-item {
        @include span-columns(12);
        position: relative;
        height: 360px;

        &.jeu-grid1-item--onegame {
            @include span-columns(12);
            @include shift(0);
        }
        &.jeu-grid1-item-twogames {
            @include span-columns(12);
        }
        &.jeu-grid1-item-fourgames {
            @include span-columns(12);
        }
        &.jeu-grid1-item-fivegames {
            @include span-columns(12);
        }
        &.jeu-grid1-item-fivegames:nth-child(3),
        &.jeu-grid1-item-fivegames:nth-child(4),
        &.jeu-grid1-item-fivegames:nth-child(5) {
            @include span-columns(12);
        }
    }
    .jeu-grid1-item-btn {
        font-size: 1.2em;
        &:hover {
            font-size: 1.2em;
        }
    }
}

///////////////////////////////////////////////////////////////
// Device: Mobile
///////////////////////////////////////////////////////////////

@include mobile-landscape-and-below {
    .jeu-grid1-wrapper {
        width: 100%;
        margin-left: 0;
    }
    .jeu-grid1-item {
        width: 100%;
        margin: 0;
        height: 300px;
    }
    .jeu-grid1-item-btn {
        font-size: 1em;
        &:hover {
            font-size: 1em;
        }
    }
}