.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    /* Enable scrolling if modal content exceeds viewport */
}

.modal-content {
    background-color: black;
    width: 80%;
    /* Maximum width of modal content */
    height: 80%;
    /* Maximum height of modal content */
    margin: auto;
    /* Center the modal vertically and horizontally */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Ensure relative positioning for arrow positioning */
}

.modal-content img {
    max-width: 100%;
    /* Ensure image does not exceed modal content width */
    max-height: 100%;
    /* Ensure image does not exceed modal content height */
    object-fit: contain;
    /* Maintain aspect ratio; image may not fill entire modal */
}

.modal-left-arrow {
    left: 10px;
    /* Adjust this value as needed */
    top: 50%;
    /* Position arrow vertically centered */
    transform: translateY(-50%);
    /* Center arrow vertically */
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: black;
    font-size: 36px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    /* Ensure absolute positioning */
}

.modal-right-arrow {
    right: 10px;
    /* Adjust this value as needed */
    top: 50%;
    /* Position arrow vertically centered */
    transform: translateY(-50%);
    /* Center arrow vertically */
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: black;
    font-size: 36px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    /* Ensure absolute positioning */
}

.modal.show {
    display: flex;
    /* Change to flex for visibility toggle */
    justify-content: center;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    /* Adjust this value as needed */
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: black;
    font-size: 36px;
    cursor: pointer;
    z-index: 1002;
}