.buttonContainer {
    position: fixed;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-direction: column;
}

.buttonContainer>button:nth-child(-n + 2) {
    border-bottom: 1px solid darkgray;
    padding-bottom: 5px;
    margin-bottom: 0;
}

.buttonContainer button {
    margin: 5px;
    padding: 0px 10px;
    cursor: pointer;
    background: #ffffff;
    border: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.imageModal {
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.imageModal img {
    width: 100%;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}

.imageModal a {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #fff;
    background-color: #007bff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
}

.modal {
    position: fixed;
    left: 15%;
    top: 5%;
    max-width: 70%;
    max-height: 90%;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: scroll;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal img {
    max-width: 100%;
    max-height: 100%;
}

.modal .caption {
    text-align: center;

}

.caption * {
    text-align: center;
}

.overlayModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
}

.caption a {
    margin: 10px;
}

@media screen and (max-width: 767px) {
    .modal {
        left: 4%;
        transform: translate(-2%, -50%);
        max-width: 100%;
        padding: 2%;
    }

    .caption {
        display: flex;
        flex-direction: column;
    }

}