#all-photos,
#all-photos * {
    box-sizing: border-box;
}

#all-photos {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 25px auto;
}

#photo-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.photo-item {
    display: block;
    width: calc(100% / 5 - 10px);
    position: relative;
    height: 225px;
    max-height: 225px;
    border-radius: 12px;
    overflow: hidden;
}

.mobile #photo-list {
    padding: 0 20px;
}


.mobile .photo-item {
    width: calc(100% / 2 - 10px);
    height: 140px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item img.image-open {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 999999;
    cursor: default;
}

.mobile .photo-item img.image-open {
    width: 95%;
    height: auto;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999998;
    max-width: unset;
    max-height: unset;
}

.overlay .close {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 40px;
    font-weight: 600;
    color: white;
}

#uploadphoto-form {
    ;
    width: 100%;
    height: 100%;
}

#uploadphoto-form #uploadphoto-submit {
    width: 100%;
    height: 100%;
    border: 0;
    background: #CFCFCF;
    color: #A1A1A1;
    font-size: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

#uploadphoto-form #uploadphoto-submit span {
    font-size: 93px;
    font-weight: 300;
    line-height: 40px;
}

.photo-item #deletephoto-form {
    position: absolute;
    top: 5px;
    right: 5px;
}

.photo-item #deletephoto-form .deletephoto-submit {
    background: white;
    border: 0;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 100;
    padding: 0px 0px 3px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    color: gray;
    cursor: pointer;
}


.mobile .photo-item #deletephoto-form .deletephoto-submit {
    font-size: 18px;
}

.success {
    color: green;
    margin: 0;
    background: #0095002b;
    padding: 11px;
    margin-bottom: 15px;
}

.error {
    color: red;
    margin: 0;
    background: #ff000045;
    padding: 11px;
    margin-bottom: 15px;
}


#all-photos .photo-item.to-be-approved:after {
    content: "Αναμονή για επιβεβαίωση";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    z-index: 98;
}

#all-photos .photo-item.to-be-deleted:after {
    content: "Αναμονή για διαγραφή";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    z-index: 98;
}