*{

    padding: 0px;
    outline: none;
    border: none;

    box-sizing: border-box;
}
img {
    max-width: 100%;
}



/*gallery*/
.gallery_list {
    width: 100%;
    position: relative;
    margin:0 auto;
}
.thumbnails {
    list-style: none;
    font-size: 0;
}
.thumbnails li {
    display: inline-block;
    margin: 15px 10px 0 0;
    width: 100px;
    height: 100px;
    text-align: center;
    vertical-align: middle;
    float: left;
}
.thumbnails li:hover .item-hugger {
	background: white;
}
.thumbnails input[name="select"] {
	display: none;
}
.thumbnails .item-hugger {
    height: 100%;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -webkit-transition: all 150ms ease-in-out;
    border:solid 1px #e8e8e8;
    z-index: 999;
    padding: 4px;
}
.thumbnails label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}
.thumbnails .thumb-image,.thumbnails .content2 img {
    align-self: center;
    max-height: 100%;
}
.thumbnails .content2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 478px;
    padding: 5px;
    opacity: 0;
    transition: all 150ms linear;
    display: flex;
    background: #FFF;
    border:solid 1px #e8e8e8;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    align-self: center;
}
.thumbnails input[name="select"]:checked + .item-hugger {
    background: white;
    border: solid 1px #0062b0;
}
.thumbnails input[name="select"]:checked ~ .content2 {
	opacity: 1;
}
.white-box {
    height: 478px;
    overflow: hidden;
}