/* Modal Background */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
	overflow: auto; 
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

.modal img {
    max-width: 90%; /* Limit width */
    max-height: 90vh; /* Limit height relative to viewport */
    object-fit: contain; /* Ensure image scales without cropping */
    border-radius: 10px;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Navigation Buttons */
button.prev, button.next {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%; /* Circle button */
    width: 50px; /* Adjust size */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

/* Highlight on hover */
button.prev:hover, button.next:hover {
    background: rgba(255, 255, 255, 0.8); /* Lighten the background */
    color: black; /* Change arrow color */
}

/* Position the buttons */
button.prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

button.next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
/* Rotate Button */
button.rotate {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    position: absolute;
    top: 10px; /* Adjust positioning */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
}

button.rotate:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}