#lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    pointer-events: none;
    z-index: 100000000;
    cursor: var(--cursor-close) !important;
    transition: backdrop-filter 0.3s, background-color 0.3s;
}

#lightbox.active {
    background-color: RGBA(242, 242, 247, 0.8);
    backdrop-filter: blur(40px);
    pointer-events: all;
}

@media (max-width: 600px) {
    #lightbox.active {
        background-color: RGBA(242, 242, 247, 1);
    }
}

#lightboxPhotoContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 20pt;
    display: inline-block;
    filter: blur(30px);
    opacity: 0;
    scale: 0.9;
    transition: scale 0.3s, filter 0.3s, opacity 0.3s;
    user-select: none;
    -webkit-user-select: none;
}

#lightboxImage.visible {
    filter: blur(0px);
    opacity: 1;
    scale: 1;
}

#lightboxButtons {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 8pt;
    filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    z-index: 10000000;
    transition: scale 0.4s, opacity 0.4s, filter 0.4s, transform 0.05s linear;
    width: calc(100% - 48px);
    justify-content: space-between;
}

#lightboxButtons.visible {
    opacity: 1;
    pointer-events: all;
    filter: blur(0px);
}

#lightboxClose {
    background-image: url(../img/closeBtn.svg);
    cursor: var(--cursor-close) !important;
}

#lightboxInfo,
#lightboxInfo.hidden {
    cursor: var(--cursor-info) !important;
    background-image: url(../img/infoBtn.svg);
}

#lightboxInfo.visible {
    background-image: url(../img/infoBtnDark.svg);
}

.lightboxBtn {
    width: 55px;
    aspect-ratio: 1/1;
    background-size: cover;
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 1);
    border-radius: 100%;
    transition: scale 0.4s, opacity 0.4s, filter 0.4s, transform 0.05s linear;
}

.lightboxBtn:hover {
    scale: 1.2;
}

.lightboxBtn:active {
    scale: 0.8;
}

#lightboxInfoContainer {
    height: 100%;
    padding-right: 24pt;
    margin-top: 144pt;
    width: 0;
    transform: translateX(40px);
    transition: opacity 0.4s, filter 0.4s, width 0.4s, transform 0.4s;
    transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
}

#lightboxInfoContainer.visible {
    transform: translateX(0);
    width: 400px;
}

#lightboxInfoContainer.hidden {
    transform: translateX(40px);
    width: 0;
}

#lightboxInfoList {
    min-width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lightboxInfoBox {
    display: flex;
    padding: 8px 24px;
    border-radius: 16px;
    mask-border: url("../img/squircleMask.svg") 49% fill / 32px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(15px);
    transition: opacity 0.4s, filter 0.4s, width 0.4s, transform 0.4s;
    transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
}

.lightboxInfoBox.visible {
    opacity: 1;
    filter: blur(0px);
}

.lightboxInfoBox.hidden {
    opacity: 0;
    filter: blur(45px);
}

.lightboxInfoText {
    font-family: GeistMono, monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.allCaps {
    text-transform: uppercase;
}

#cameraInfoBox {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#cameraNameAll {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

#cameraStats {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: space-between;
}

.cameraDivider {
    width: calc(100% - 12pt);
    height: 2px;
    background-color: black;
    margin-right: 6pt;
    margin-left: 6pt;
    border-radius: 1px;
    opacity: 0.12;
}

@media (max-width: 1490px) and (min-width: 500px) {
    #lightboxInfoContainer {
        height: fit-content;
        position: absolute;
        right: 0;
        top: 0;
        bottom: auto;
        margin-top: 72pt;
    }
}

@media (max-width: 600px) {
    #lightboxInfoContainer {
        height: 0;
        position: absolute;
        bottom: 24pt;
        padding-right: 12pt;
        padding-left: 12pt;
        margin: 0;
        width: 100%;
        top: auto;
        transform: translateX(0px) translateY(120px);
        transition: opacity 0.3s, filter 0.3s, transform 0.3s, height 0.3s;
    }

    #lightboxInfoContainer.visible {
        height: fit-content;
        width: calc(100% - 24pt);
        margin-right: 12pt;
        margin-left: 12pt;
        transform: translateX(0px) translateY(0px);
    }

    #lightboxInfoContainer.hidden {
        height: 0;
        width: calc(100% - 24pt);
        margin-right: 12pt;
        margin-left: 12pt;
        transform: translateX(0px) translateY(120px);
    }

    #lightbox {
        flex-direction: column;
    }

    #lightboxInfoList {
        min-width: 300px;
        max-width: 100%;
    }
}