body {
    position: relative;
    background: #17181A;
    width: 100%;
    margin: 0px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.wrapper {
    font-family: 'Montserrat', sans-serif !important;
    color: white;
    width: 100vw;
    margin: 0 !important;
    padding-top: min(200px, 20vh) !important;
    max-height: 100vh;
    
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(1 , calc(95vh - min(200px, 20vh)));
}


@media screen and (max-width: 768px){
    #image-overlay {
        padding: 0 !important;
    }

    #overlay-img {
        max-height: calc(100vh - 10vh) !important;
        margin-top: 50vh !important;
        transform: translateY(-50%);
    }
    .accent-button {
        padding: 20px 30px !important;
    }
}

#morebutton-right {
    width: max(3vw, 50px);
    height: max(3vw, 50px);
    background-color: white;
    border-radius: 100%;
    position: fixed;
    right: 1vw;
    transform: translate(0%, -50%);
    bottom: 40vh;
    transition: opacity 0.3s, bottom 0.5s, right 0.2s;
    display: flex;
    justify-content: center;
    text-align: center;
    z-index: 998;
}

#morebutton-left {
    width: max(3vw, 50px);
    height: max(3vw, 50px);
    background-color: white;
    border-radius: 100%;
    position: fixed;
    left: 1vw;
    transform: translate(0%, -50%);
    bottom: 40vh;
    transition: opacity 0.3s, bottom 0.5s, left 0.2s;
    display: flex;
    justify-content: center;
    text-align: center;
    z-index: 998;
}

#morebutton-left img, #morebutton-right img {
    display: block;
    width: 30%;
}

#morebutton-left.max:hover, #morebutton-right.max:hover {
    opacity: 0.2;
}

#morebutton-left:not(.max):hover {
    left: 1.5vw;
}
#morebutton-right:not(.max):hover {
    right: 1.5vw;
}


.accent-button {
    font-family: 'Montserrat', sans-serif !important;
    background-color: var(--g2);
    color: #18132e;
    padding: 0.7vw 1vw;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50vw;
    border: 0;
    margin-top: 20px;
}

.accent-button:hover {
    background-color: var(--g2a);
}

.item {
    width: 100vw;
    height: 80vh;
    display: flex;
    align-items:center;
    justify-content: center; /* Optional: Centers horizontally as well */
    flex-direction: column; /* Stack elements vertically */
    text-align: center; /* Align text in center */

    transform: translateX(calc(-100vw * calc(var(--proj-offset) - 1)));
}

.img {
    height: 60%;
    max-width: 60vw;
    z-index: 9;
    position: relative;
    filter: drop-shadow(2px 2px 5px rgba(0, 0,0, 0.75)) !important;
}

.project-title {
    box-sizing:border-box;
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2rem;
    transition: opacity 1200ms ease, height 0.5s ease;
    max-width: 40vw;
    transition: all 0.5s ease;
    font-size: 3rem;
    z-index: 7;
    pointer-events: none;
    cursor: default;
    font-weight: 500;
    opacity: 1;
}

.project-description {
    box-sizing:border-box;
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: opacity 1200ms ease, height 0.5s ease;
    max-width: 40vw;
    margin-top: 0.5rem;
    transition: all 0.5s ease;
    font-size: 0.9rem;
    z-index: 7;
    pointer-events: none;
    cursor: default;
    font-weight: 500;
    opacity: 1;
}

#image-overlay {
    z-index: 999;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
    align-items: center;
    padding: 10vh;
    object-fit: contain; 
    z-index: 10;
}

#image-overlay.frosted {
    background-color: rgba(0, 0, 0, 0.61);
    backdrop-filter: blur(5px);
}

#overlay-img {
    max-height: calc(100vh - 20vh);
    max-width: 100vw;
    width: auto;
    display: none;
    margin: auto;
    object-fit: contain; 
}

.visible {
    display: block !important;
}

#overlay-esc {
    font-size: 1rem;
    display: none;
    z-index: 1000;
    position: fixed;
    top: 10px;
    left: 50vw;
    transform: translateX(-50%);
}

#overlay {
    z-index: 0 !important;
}

img.rotate-left {
    transform: rotate(90deg);
}

img.rotate-right {
    transform: rotate(-90deg);
}

.project-bar {
    height: 3.1vw;
    margin-top: 10px;
    margin-bottom: 10px;
}