body.popup-open {
    overflow: hidden;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    gap: 10px;
}

.projects a,
.projects a:visited {
    color: white;
}

.projects .projected {
    background-color: rgb(26, 2, 26);
    height: 200px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.projects .projected .projectedtext {
    position: absolute;
    z-index: 15;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(45, 13, 48, 0.5);
}

.projects .projected .projectedtext p {
    margin-top: -6px;
    opacity: 0.6;
}

.projects .projected .projectedtext div {
    padding: 0px 20px;
    line-height: 35px;
}

.projects .projected .projectedbg {
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
}

.projects .projected:hover .projectedbg img {
    opacity: 1;
}

.projects .projected .projectedbg img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: blur(5px);
    opacity: 0.6;
}

@media (max-width: 769px) {
    .projects {
        grid-template-columns: repeat(1, 1fr);
    }
}

.popup-project {
    position: fixed;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-project.open {
    display: flex;
}

.popup-bg {
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    position: relative;
}

.popup-project .popup-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 30px;
    z-index: 10000;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    color: rgb(224, 17, 17);
    text-shadow: 0px 0px 10px red;
    cursor: pointer;
    box-sizing: border-box;
}

.popup-close span {
    font-size: 60px;
}

.popup-content {
    box-sizing: border-box;
    height: max-content;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    background-color: rgb(34, 34, 34);
}

.popup-content .popup-body {
    display: flex;
}

.popup-content .popup-body h3,
.popup-content .popup-body ul,
.popup-content .popup-body p {
    margin: 0;
}

.popup-content .popup-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.popup-content .popup-body ul li {
    display: flex;
    gap: 6px;
}

.popup-content .popup-body ul span {
    font-size: 18px;
    line-height: 1.4;
}

.popup-content .popup-body .popup-titlecard {
    text-align: center;
}

.popup-content .popup-body .popup-titlecard .popup-logo {
    width: 30px;
}

.popup-content .popup-body .popup-projectdeets {
    padding: 40px 0px;
    flex: 1;
}

.popup-content .popup-body .popup-titlecard h1 {
    margin: 0;
    line-height: 40px;
    font-size: 40px;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.popup-content .popup-body .popup-titlecard p {
    margin: 0;
    font-weight: 100;
}

.popup-content .popup-subtitle {
    display: flex;
}

.popup-content .popup-subtitle>div {
    display: flex;
    align-items: center;
}

.popup-content .popup-subtitle>div:first-child {
    flex: 1;
}

.popup-content .popup-subtitle>div:last-child span {
    font-size: 20px;
}

.popup-content .popup-body>div:first-child {
    padding: 25px 25px;
    width: 270px;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.popup-content .popup-body>div:last-child {
    padding: 0px;
    flex: 1;
    background-image: url('assets/bgx.webp');
    background-size: 10px;
    background-position: center;
    background-repeat: repeat;
    background-color: black;
}

.popup-content .popup-body>div:last-child img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    display: block;
}

.popup-content .popup-body .popup-linkbutton {
    text-align: center;
    height: max-content;
    padding: 10px 0px;
}

.popup-content .popup-body .popup-gothere {
    background-color: rgb(51, 51, 51);
    border-radius: 4px;
    outline: 2px solid rgba(255, 255, 255, 0.034);
    outline-offset: -4px;
    padding: 5px 25px;
    text-decoration: none;
    color: white;
    transition: all 0.4s;
    min-width: max-content;
}


.popup-content .popup-body .popup-gothere.disabled:hover {
    outline: 2px solid rgba(255, 255, 255, 0.034);
    box-shadow: none;
    cursor: default;
}

.popup-content .popup-body .popup-gothere:hover {
    outline-color: cyan;
    box-shadow:
        0px 0px 25px rgba(0, 255, 221, 0.5) inset,
        0px 0px 2px rgba(0, 255, 221, 0.5),
        0px 0px 40px rgba(0, 255, 221, 0.5);
}

.popup-content .popup-body .popup-gothere:active {
    outline-color: lime;
    box-shadow:
        0px 0px 25px rgba(21, 255, 0, 0.5) inset,
        0px 0px 2px rgba(21, 255, 0, 0.5),
        0px 0px 40px rgba(21, 255, 0, 0.5);
}

.slideshow-container {
    position: relative;
    margin: auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.popupimgopts {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
}

.popupimgopts .popupimgbox {
    display: grid;
    grid-template-columns: repeat(7, auto);
}

.popupimgopts .popupimgbox>div {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popupimgopts .popupimgbox a {
    color: #ffffff;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popupimgopts .popupimgbox a span{
    font-size: 20px;
}

.popupimgopts>div {
    background-color: rgb(10, 10, 10);
    width: max-content;
    padding: 3px;
    border-radius: 100px;
    box-shadow: 0px 5px 10px black;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    background-color: #292929;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: blueviolet;
}

@media (max-width: 700px) {
    .popup-project {
        display: none;
        align-items: normal;
        justify-content: normal;
        overflow: hidden;
        box-sizing: border-box;
    }

    .popup-bg {
        margin: 30px;
    }

    .popup-project .popup-close {
        margin: 0px;
    }

    .popup-content {
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .popup-content .popup-body>div:first-child {
        width: 100%;
        max-width: 100%;
    }

    .popup-content .popup-body>div:last-child {
        padding: 20px;
    }

    .popup-body {
        flex-direction: column;
    }
}