.ancre{
    display: none;
}

.gallerie {
    width: 850px;
    margin: 0px auto;
    position: relative;
    top: 70px;
    list-style:none;
}
 
.images img {
    /* Chaque image hérite ses dimensions de son parent */
    width: inherit;
    height: inherit;
}
 
.gallerie li {
    width: 250px;
    height: 166px;
    float: left;
    margin: 0 20px 0 0;
}
 
.images {
	margin:auto;
    height: 166px;
    padding: 10px;
    /* Ombrage des blocs */
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    background: #C0C0C0;
    border-radius: 5px;
    /* Position absolue pour permettre de zoomer ultérieurement */
    position: absolute;
    top: 0;
    font-family: Arial, sans-serif;
    /* Transitions pour rendre l'ensemble visuellement abouti */
    -webkit-transition: all ease-in 0.5s;
    -moz-transition: all ease-in 0.5s;
    -ms-transition: all ease-in 0.5s;
    -o-transition: all ease-in 0.5s;
    z-index: 300;
}
 
.images span {
    display: none;
}
 
.images .expand {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 400;
    background: rgba(0,0,0,0); /* Fixe un bogue d'IE */
}
 
.images .close {
    position: absolute;
    width: 20px; height: 20px;
    right: 20px; top: 20px;
}
 
.images .close a {
    height: auto; width: auto;
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    background: #22272c;
    box-shadow: inset 0px 24px 20px -15px rgba(255, 255, 255, 0.1), 
        inset 0px 0px 10px rgba(0,0,0,0.4), 
        0px 0px 30px rgba(255,255,255,0.4);
    border-radius: 5px;
    font-weight: bold;
    float: right;
}
 
.close a:hover {
    box-shadow: inset 0px -24px 20px -15px rgba(255, 255, 255, 0.01), 
        inset 0px 0px 10px rgba(0,0,0,0.4), 
        0px 0px 20px rgba(255,255,255,0.4);
}
 
a[id^=img]:target ~ .images{
    height: 400px;
    z-index: 500;
    top: 50px;
    left: 200px;
}
a[id^=img]:target ~ .images .close {
    display: block;
}
 
a[id^=img]:target ~ .images .expand {
    display: none;
}
 
a#img1:target ~ .images,
a#img3:target ~ .images { left: 150px; }
a#img2:target ~ .images { left: 250px; }
a#img4:target ~ .images,
a#img5:target ~ .images,
a#img6:target ~ .images { left: 250px; top:100px;}
a#img7:target ~ .images,
a#img8:target ~ .images,
a#img9:target ~ .images { left: 250px; top:300px;}
a#img10:target ~ .images,
a#img11:target ~ .images,
a#img12:target ~ .images { left: 250px; top:500px;}
a#img13:target ~ .images,
a#img14:target ~ .images,
a#img15:target ~ .images { left: 250px; top:700px;}
a#img16:target ~ .images,
a#img17:target ~ .images,
a#img18:target ~ .images { left: 250px; top:800px;}

div#image-1 { left: 5px; top:0;}
div#image-2 { left: 343px; top:0;}
div#image-3 { left: 585px; top:0;}
div#image-4 { left: 53px; top:200px;}
div#image-5 { left: 350px; top:200px;}
div#image-6 { left: 633px; top:200px;}
div#image-7 { left: 53px; top:400px;}
div#image-8 { left: 343px; top:400px;}
div#image-9 { left: 633px; top:400px;}
div#image-10 { left: 53px; top:600px;}
div#image-11 { left: 343px; top:600px;}
div#image-12 { left: 633px; top:600px;}
div#image-13 { left: 53px; top:800px;}
div#image-14 { left: 343px; top:800px;}
div#image-15 { left: 633px; top:800px;}
div#image-16 { left: 53px; top:1000px;}
div#image-17 { left: 343px; top:1000px;}
div#image-18 { left: 633px; top:1000px;}
