@import "style-dynamic.css";

.module-project .container {
    left: 0 !important;
    opacity: 1 !important;
}

.grid-project {
  display: grid;
}

.grid-project .item-art img {
	width: 100%;
}

.grid-project .box {
	margin: auto;
}

.grid-project .box {
	text-align: center;
	max-width: 340px;
}


.project-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0,0,0,0.8);*/
    background: #2f3332;
    z-index: 999;
}

.project-lightbox:target {
    display: block;
}

.project-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    text-decoration: none;
}


.project-lightbox-wrapper {
    position: absolute;
    overflow: auto;
    background: #f1f1f1;
    padding:  1em;
    top: 10px;
    left:  10px;
    right:  10px;
    bottom:  10px;
}

/*.project-lightbox-inner {
    height: 100%;
}*/


@media (min-width: 768px) {
.project-lightbox-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
        max-width: 90%;
    max-height: 90%;
    overflow: auto;
    background: #f1f1f1;
    padding:  1em;
    height: fit-content;
}
}





.project-lightbox-wrapper img {
    max-width: 90%;
    max-height: 90%;
}


/*.project-lightbox:target ~ #project-lightbox-close-wrapper {
    top: 0;
}*/

#project-lightbox-close-wrapper {
    position: fixed;
    top: 0px;
    right: 0;
    height: 70px;
    width: 70px;
    /* z-index: 502; */
    z-index: 999992;
    background: rgba(0, 0, 0, 0.5);
}

#project-lightbox-close {
    display: block;
    position: absolute;
    overflow: hidden;
    height: 50px;
    width: 50px;
    right: 10px;
    top: 10px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}


/*.project-lightbox:target ~ #project-lightbox-close:before {
        height: 50px;
}*/

#project-lightbox-close:before {
    height: 50px;
    width: 3px;
    left: 24px;
    top: 0;
    -webkit-transition: 0.5s 1s ease-in-out;
    transition: 0.5s 1s ease-in-out;

    content: "";
    display: block;
    position: absolute;
    background: #dfecee;
    border-radius: 2px;
}

/*.project-lightbox:target ~ #project-lightbox-close:after{
        width: 50px;
}*/

#project-lightbox-close:after {
    width: 50px;
    height: 3px;
    top: 24px;
    left: 0;
    -webkit-transition: 0.5s 1.5s ease-in-out;
    transition: 0.5s 1.5s ease-in-out;

    content: "";
    display: block;
    position: absolute;
    background: #dfecee;
    border-radius: 2px;
}


.project-lightbox-close-animate {
    -webkit-transition: 0.5s 0.5s ease-in-out;
    transition: 0.5s 0.5s ease-in-out;
}