.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 5001
}

.overlay:target {
    visibility: visible;
    opacity: 1
}
.popup {
	width: 60%;
	position: relative;
	transition: all 5s ease-in-out;
	z-index: 5004;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 18px;
	border-radius: 3px;
	border: 8px solid #000000;
	box-shadow: 0px 0px 30px 0px rgba( 2, 2, 2, 1.00 );
	background-color: rgba( 255, 255, 255, 1.00 );
	max-width: 800px;
}
.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif
}
.popup .close {
	transition: all 200ms;
	position: absolute;
	height: 26px;
	width: 26px;
	left: auto;
	right: -13px;
	bottom: auto;
	top: -13px;
	padding: 0px;
	color: #ffffff;
	font-family: Arial;
	font-weight: 100;
	font-size: 24px;
	line-height: 24px;
	border: 2px solid #ffffff;
	border-radius: 26px;
	box-shadow: 0px 0px 15px 1px rgba( 2, 2, 2, 0.75 );
	text-shadow: 0px 0px 0px rgba( 0, 0, 0, 0.23 );
	text-decoration: none;
	text-align: center;
	line-height: 1;
	cursor: pointer;
	min-width: 1em;
	z-index: 9;
	background-color: rgba( 0, 0, 0, 1.00 );
}
.popup .content {
	max-height: 40%;
	overflow: auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -8px;
	margin-left: -8px;
}
.popup .content .popup_inner {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 100%;
	flex: 0 0 100%;
	max-width: 100%;
	padding-right: 8px;
    padding-left: 8px;
	text-align: center;
}
/* .popup .content .popup_inner:first-child {
	border-right: 1px solid #b5afaf;
} */
.popup .content .popup_inner img {
	width: auto;
	height: 100%;
	max-width: 100%;
	margin: 0 auto;
}
@media screen and (max-width:768px) {
    .popup {
        width: 95%;
		max-height: 80dvh;
    }
    .popup .content .popup_inner img {
        aspect-ratio: unset;
    }
    .popup .content .popup_inner {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 2.5px;
    }
    .popup .content {
        margin-right: -2.5px;
        margin-left: -2.5px;
    }
    .popup .content .popup_inner:first-child {
        border-right: unset;
    }
}