タブ形式のPhoto Gallery

<css>

/* タブナビゲーション */

div#screen div, div#screen h1, div#screen p,
div#screen a, div#screen img, div#screen dl,
div#screen dt, div#screen dd {
     margin: 0;
     padding: 0;
     border: 0;
     outline: 0;
     font-size: 100%;
     font-style: normal;
     font-weight: normal;
     vertical-align: baseline;
     background: transparent;
}

div#screen {
    width:700px;
    height:650px; 
    background-image: url(http://www.geocities.jp/sample/irongrip.png);  
} 
div#screen h1 {
    color: #fff;
    font-size: 24px;
    width: 640px;
    position: absolute;
/*    top: 10px; */
    left: 40px;
    text-align: right;
}

div#screen .content img + p {
    padding-top: 1em;
}

/* タブブロック */
div#screen .page {
    position: absolute;
    padding-top: 60px;
    left: 15px;
}
div#screen .page .tab {
    position: absolute;
    width: 100px;
    height: 40px;
    background-color: #666666;
    box-shadow: 2px 0 2px rgba(0, 0, 0, 0.75);
    border-radius: 10px 10px 0 0;
    -webkit-transition-duration: 400ms;
    -moz-transition-duration: 400ms;
}
div#screen .page .tab a {
    display: block;
    padding: 14px 20px 10px;
    text-decoration: none;
    color: #ccc; 
}
div#screen .page .tab:hover {
    background-color: #e6e6e6;
    box-shadow: none;
}
div#screen .page .tab:hover a {
    color: #333;
}
div#screen .page .content {
    position: absolute;
    top: 100px;
    padding: 20px;
    width: 620px;
    background-color: white;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-transition-duration: 400ms;
    -moz-transition-duration: 400ms;
    opacity: 0;
    border-radius: 0 10px 10px;
}
div#screen .page:target .tab {
    background-color: white;
    box-shadow: 2px 0 4px rgba(51, 51, 51, 0.75);
    z-index: 1;
}
div#screen .page:target .tab a {
    color: #000;
}
div#screen .page:target .content {
    z-index: 1;
    opacity: 1;
}

/* ページごとの設定 */
div#screen #page-1 .tab {
    left: 0;
    z-index: 3;
}
div#screen #page-1 .content {
    z-index: 13;
}

div#screen #page-2 .tab {
    left: 95px;
    z-index: 2;
}
div#screen #page-2 .content {
    z-index: 12;
}

div#screen #page-3 .tab {
    left: 195px;
    z-index: 1;
}
div#screen #page-3 .content {
    z-index: 11;
}