/*** CONTENU DE L'ARTICLE ***/
#art-main {
    flex-flow: column;
    padding: 0 15vw !important;
    margin: 15vh 0 10vh 0;
}

#art-main>div {
    display: flex;
    flex-flow: column;
    gap: 2.5vh;
}

#art-main>div>h3 {
    color: #e2001a;
}

#art-main>div>ul {
    list-style: none;
}

#art-main>div>ul>li {
    display: flex;
    flex-flow: row;
    align-items: center;
}

#art-main>div>ul>li>span {
    width: calc(100% - 24px);
}

#art-main>div>ul>li>svg {
    width: 24px;
    margin-right: 20px;
}

/*** GALERIE ***/
#art-gallery {
    display: flex;
    flex-flow: column;
    gap: 2.5vh;
    padding: 0 15vw !important;
    margin: 10vh 0 25vh 0;
}

.gallery {
    columns: 3;
    gap: 10px;
    margin: auto;
    /* margin: 0 -2.5vw 0 -2.5vw; */
}

.gallery>div {
    display: flex;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.gallery>div>img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.gallery>div>span {
    display: block;
    padding: 0 10px;
    color: white;
    font-size: 15px;
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 2;
}

.gallery>div>span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 0;
    height: 100%;
    background-color: #e2001ab4;
    transition: width 0.3s ease;
    z-index: -1;
}

.gallery>div:hover>span::after {
    width: calc(100% + 20px);
}

.gallery>div:hover>img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.lightbox-content {
    text-align: center;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 72.5vh;
    user-select: none;
    position: relative;
}

/* Span alt */
.lightbox #lightbox-span {
    display: block;
    padding: 0 10px;
    color: white;
    font-size: 15px;
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.lightbox #lightbox-span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -30px;
    width: calc(100% + 30px);
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: width 0.3s ease;
    z-index: -1;
}

/* Flèches */
.lightbox>div:nth-of-type(2) {
    position: absolute;
    top: 90%;
    display: flex;
    flex-flow: row;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 110%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    padding: 2px 0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.nav-btn:hover {
    background: rgba(22, 22, 22, 0.5);
}

.nav-btn>svg {
    fill: white;
    width: 42px;
}

#prev-btn>svg {
    margin-right: 5px;
}

#next-btn>svg {
    margin-left: 5px;
}

/* Bouton fermé */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: transparent;
    height: 42px;
    z-index: 2;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn>svg {
    fill: white;
    width: 42px;
    height: 42px;
    padding: 5px;
}

/* Bas de page */
.art>#art-footer {
    display: flex;
    justify-content: space-between;
    border-top: black 1px solid;
    padding-top: 5vh;
    margin-top: 2.5vh;
}

.art>#art-footer>p {
    font-size: 15px;
}

.art>#art-footer>div {
    display: flex;
    gap: 10px;
}

.art>#art-footer>div>a {
    display: flex;
    text-decoration: none;
    color: black;
    font-size: 15px;
    transition: all 0.3s ease-in-out;
}

.art>#art-footer>div>a:hover,
.art>#art-footer>div>a:hover>svg {
    color: #e2001a;
    fill: #e2001a;
}

.art>#art-footer>div>a:active,
.art>#art-footer>div>a:active>svg {
    color: #af0404;
    fill: #af0404;
}

.art>#art-footer>div>a>svg {
    display: flex;
    width: 20px;
    margin-right: 5px;
    fill: black;
    transition: all 0.3s ease-in-out;
}

/*** RESPONSIVE ***/

@media (max-width: 1400px) {

    /* Bas de page */
    .art>#art-footer {
        display: flex;
        justify-content: space-between;
        flex-flow: column;
    }

    .art>#art-footer>div {
        margin-top: 1vh;
    }
}

@media (max-width: 1300px) {

    /*** CONTENU DE L'ARTICLE ***/
    #art-main {
        padding: 0 7.5vw !important;
    }

    /*** GALERIE ***/
    #art-gallery {
        padding: 0 7.5vw !important;
    }
}

@media (max-width: 800px) {

    /*** CONTENU DE L'ARTICLE ***/
    #art-main {
        padding: 0 5vw !important;
        margin: 10vh 0 10vh 0;
    }

    #art-main>div>ul>li>svg {
        margin-right: 10px;
    }

    /*** GALERIE ***/
    #art-gallery {
        padding: 0 5vw !important;
    }

    .gallery {
        columns: 2;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 85%;
    }
}

@media (max-width: 500px) {
    .gallery {
        columns: 1;
    }
}

@media (max-width: 340px) {

    /* Bas de page */
    .art>#art-footer>div {
        margin-top: 1vh;
        flex-flow: column;
    }
}
