.thumb {
	display: block;
	max-width: calc(90vw /3.1);
   border: solid 6px white;
}

.thumbdesc{
	text-align: center;
    font-weight: bold;
    max-width: calc(90vw / 3.1);
	color: darkslategray;
}
.thumbborder:hover{
	border-width: 1px;
	border-color: black;
	border-style: solid;
}
.lightbox {
    position: fixed;
    z-index: 999;
    height: 0;
    width: 0;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin-top: calc((100vh - 80vh)/2);
    margin-bottom: auto;
    opacity: 0;
}
.lightbox:target {
    outline: none;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    
}
.lightbox:target img {
    border: solid 1px white;
    opacity: 1;
    webkit-transition: opacity 0.6s;
    transition: opacity 0.6s;
}
.light-btn {
    color: white;;
    background-color: darkslategray;
    border: solid 1px white;
    border-radius: 10px;
    padding: 5px 15px;
    border-radius: 1px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    position: absolute;
    top: 2%;
    z-index: 99;
}
.light-btn:hover {
    background-color: #111;
}
.btn-prev {
    left: 2%;
    border-radius: 10px;
}
.btn-next {
    right: 2%;
    border-radius: 10px;
}
.btn-close {
    position: absolute;
    right: calc(100vw/2);
    top: 2%;
    color: #fafafa;
    background-color: darkslategray;
    border: solid 1px white;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
}
.btn-close:hover {
    background-color: #740404;
}

@media screen and (max-width: 1246px){
	.thumb{
		max-width: calc(90vw/2.1);	
	}
    .thumbdesc{
        max-width: calc(90vw/2.1);
    }
}	
@media screen and (max-width: 560px){
	.thumb{
		max-width: calc(90vw/1.1);	
	}
    .thumbdesc{
        max-width: calc(90vw/1.1);
    }
}