.gs-component{
    margin-bottom: 40px;
}

.gs-section-flex .gs-container{
    flex-direction: column;
    display: flex;
}

/* COMPOSANT GALERIE
********************************/

.gs-galery a.galery-item + a.galery-item{
    margin-top: 40px;   
}

.galery-unstructured-column{
    margin-bottom: 40px;
}

.galery-unstructured-column .galery-item-photo{
    margin-left: auto !important;
    margin-top: auto !important;
    width: 100% !important;
}

.gs-container.galery-structured-row{
    flex-direction: column;
    margin-bottom: 0 !important;
}

.gs-container.galery-structured-row + .galery-structured-row{
    margin-top: 40px;
}

.gs-galery-structured .galery-item{
    margin-bottom: 40px;
}

.gs-galery-unstructured .galery-item{
    margin-bottom: 40px;
}

.gs-container.gs-galery-unstructured.inverse{
    flex-direction: column;
}


/* COMPOSANT NEWS
********************************/

.gs-container.news-structured-row{
    flex-direction: column;
}

article.news-item + article.news-item{
    margin-top: 40px;
}

.gs-news-actions{
    margin-top: 40px;
}

.gs-container.news-structured-row{
    margin-bottom: 0 !important;
}

.gs-container.news-structured-row + .gs-container.news-structured-row{
    margin-top: 40px;
}

.gs-news .article-item-title{
    height: auto;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.gs-container.news-structured-row + .gs-container.news-structured-row{
    margin-top: 40px;
}

/* affichage horizontal */

.gs-news article.row>a{
    flex-direction: column;
}

.gs-news article.row .article-item-details{
    width: 100%;
}

.gs-news article.row .article-item-photo{
    margin: 0 0 20px;
}

.gs-news .title-first.row .article-item-photo{
    margin: 20px 0 0;
}

/* COMPOSANT ACCORDEON
********************************/

.gs-galery-accordeon{
    display: block;
}

.gs-galery-accordeon:after{
    display: block;
    clear: both;
    content: '';
}

.gs-galery-accordeon .galery-item{
    height: 400px;
    width: 50% !important;
    float: left;
}

.galery-accordeon-item-mask{
    display: none;
}

.gs-galery-accordeon .galery-item .galery-item-informations,
.gs-galery-accordeon.vertical .galery-item .galery-item-informations{
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    opacity: 1;
}

.gs-galery-accordeon.top .galery-item .galery-item-informations,
.gs-galery-accordeon.vertical.top .galery-item .galery-item-informations{
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.gs-galery-accordeon.middle .galery-item .galery-item-informations,
.gs-galery-accordeon.vertical.middle .galery-item .galery-item-informations{
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.gs-galery-accordeon.vertical .galery-item .galery-item-description{
    opacity: 1;
}

/* COMPOSANT COLUMNS
********************************/

.gs-component-with-column-container{
    flex-direction: column;
}

.gs-component-with-column-container .column-title{
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 25px;
}

.gs-component-with-column-container.title-right .column-title{
    margin-bottom: 0;
    margin-top: 25px;
}

.gs-component-with-column-container .column-content{
    width: 100% !important;
}

/* COMPOSANT TEXT
********************************/

.gs-component-text-content{
    column-gap: 0 !important;
    column-count: 1 !important;
}

/* COMPOSANT LIST
********************************/

.component-list-container{
    flex-direction: column;
}

.component-list-item{
    width: 100% !important;
}

.component-list-item + .component-list-item{
    margin-top: 40px;
}   

.gs-component[data-type=table]{
    padding-bottom: 50px;
    position: relative;
}

.gs-component[data-type=table]>.gs-component-container{
    overflow-x: auto;
}

.gs-table{
    width: 960px;
}

.gs-component[data-type=table]:after{
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    pointer-events: none;
    content: '';
    background: url(../../resources/images/swipe.svg);
    background-size: 30px auto;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mode horizontal */

.component-list-container.horizontal-mode .component-list-item-container{
    flex-direction: column;
}

.component-list-container.horizontal-mode .component-list-item-image{
    width: auto !important;
}

.component-list-container.horizontal-mode .component-list-item-text,
.component-list-container.horizontal-mode.vertical-align .component-list-item-text{
    margin: 20px 0 0 !important;
}

.component-list-container.horizontal-mode.text-first .component-list-item-text,
.component-list-container.horizontal-mode.vertical-align.text-first .component-list-item-text{
    margin: 0 0 20px !important;
}

/* COMPOSANT VIDEO
********************************/

.gs-component[data-type="video_full_page"] .video-container,
.gs-component[data-type="video_full_width"] .video-container{
    width: 100vw !important;
    margin-left: calc((100vw - 100%) / -2) !important;
    margin-right: calc((100vw - 100%) / -2) !important;
}

/* COMPOSANT IMAGE
********************************/

.gs-component[data-type="image_full_width"] .gs-component-image-container,
.gs-component[data-type="image_full_page"] .gs-component-image-container{
    width: 100vw !important;
    margin-left: calc((100vw - 100%) / -2) !important;
    margin-right: calc((100vw - 100%) / -2) !important;
}