.gallery {
    width: 75%;
    text-align: center;
    font-size: 0vw;
    margin: 0 auto;
    padding: 1vw 0vw 1vw 0vw;
    overflow-y: scroll;
}
.gallery::-webkit-scrollbar {
    background: transparent;
    width: 0.4vw;
}
.gallery::-webkit-scrollbar-thumb {
    background: #a6a6a6;
    border-radius: 50vw;
}
.gallery::-webkit-scrollbar-track {
    background: #444444;
    border-radius: 50vw;
    margin-top: 0vw;
    margin-bottom: 1vw;
}

.gallery-project-title {
    width: 100%;
    font-size: 1.25vw;
    margin: 1vw 0vw 0.5vw 0vw;
}

.gallery-img {
    aspect-ratio: 3 / 4;
    width: 15%;
    height: auto;
    display: inline-block;
    border-radius: 0.8vw;
    margin: 0.65vw;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 0 0.4vw white;
}
.gallery-img:hover {
    transform: scale(1.1);
}

.gallery-img-wide {
    aspect-ratio: 5 / 4;
    width: 25%;
}

.lightbox {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    inset: 0vw;
    display: none;
    animation: fadeIn 0.5s ease;
    z-index: 3;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 1dvh;
    margin: 0 auto;
    align-self: center;
    object-fit: contain;
    box-shadow: 0 0 1vw white;
}

.lightbox-close {
    width: 3vw;
    height: 3vw;
    position: absolute;
    top: 1vw;
    right: 1vw;
    font-size: 3vw;
    line-height: 3vw;
    text-align: center;
    color: white;
    user-select: none;
    cursor: pointer;
    z-index: 1;
}

.lightbox-arrow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    align-content: center;
    font-size: 0vw;
}

.lightbox-arrow {
    width: 3vw;
    height: 3vw;
    position: absolute;
    color: white;
    box-sizing: border-box;
    border: 0.1vw solid #999999;
    border-radius: 15%;
    transition: transform 0.2s ease;
    font-family: monospace;
    font-size: 3vw;
    line-height: 2.5vw;
    z-index: 1;
	cursor: pointer;
}
.lightbox-arrow:hover {
    transform: scale(1.3);
}

#lightbox-arrow-left {left: 2vw;}
#lightbox-arrow-right {right: 2vw;}

/* Landscape Orientation */
@media screen and (orientation: landscape) {
    .stretch {
        width: 35% !important;
    }
}

/* Portrait Orientation */
@media screen and (orientation: portrait) {
    .gallery-project-title {
        font-size: 4vw;
    }
    .gallery {
        width: 90%;
        padding: 2vw 0vw 2vw 0vw;
    }
    .gallery img {
        width: 45%;
        margin: 1vw;
        border-radius: 1.5vw;
    }
    .gallery::-webkit-scrollbar {
        background: transparent;
        width: 2vw;
    }
    .lightbox-close {
        width: 12vw;
        height: 12vw;
        font-size: 12vw;
        line-height: 11vw;
        top: 5vw;
        right: 5vw;
    }
    .lightbox-arrow-wrapper {
        height: 20dvh;
        bottom: 0vw;
    }
    .lightbox-arrow {
        width: 12vw;
        height: 12vw;
        font-size: 12vw;
        line-height: 10vw;
        bottom: 8vw;
    }
    #lightbox-arrow-left {left: 12vw;}
    #lightbox-arrow-right { right: 12vw;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}