#openGallery {
    cursor: pointer;
    color: #6fa8d1;
    font-size: 1.2em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    max-height: 80%;
    overflow: hidden;
}

.slides {
    display: none;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-size: 2em;
    font-weight: bold;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
  color: red;
}