div.photobox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: flex-start;
    gap: 15px;
}

div.photobox > div {
    width: 350px;
    height: 200px;
}

.photobox button {
    display: block;
    position: relative;
    top: -205px;
    right: 0;
    padding: 0;
    margin: 0;
    width: 350px;
    height: 200px;
    border: 0;
    background-color: var(--transparentAvocado);
    color: var(--white);
    opacity: 0;
    transition: 0.3s;
}

.photobox button:hover, #messageBox button:hover {
    opacity: 1;
    cursor: pointer;
}

.photobox img, #pageContainer img {
    width: 350px;
    height: 200px;
    overflow: hidden;
    object-fit: cover;
}

div#photoboxDetail, div#messageBox {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 500;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--transparentBlack);
    color: var(--white);
}

div#photoboxDetail > img {
    max-height: 80vh;
    max-width: 90vw;
}

div#photoboxDetail > button, div#messageBox > button {
    background: none;
    border: none;
    color: var(--white);
    transition: 0.3s;
}

div#photoboxDetail > button:hover, div#messageBox > button:hover {
    color: var(--poppy);
    cursor: pointer;
}

div#photoboxDetail > button#prevBtn {
    position: absolute;
    left: 5vw;
    top: 50vh;
}

div#photoboxDetail > button#nextBtn {
    position: absolute;
    right: 5vw;
    top: 50vh;
}

div#photoboxDetail > button#closeBtn, div#messageBox > button {
    position: absolute;
    right: 5vw;
    top: 5vh;
}
