/* Modal-specific styles */

.modal {
    display: none; /* Ensure modal is hidden by default */
    position: fixed;
    z-index: 3000;
    padding-top: 0%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    max-width: 100vw;
    box-sizing: border-box;
}

.modal-content {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3200; /* Higher than the arrows */
    padding: 10px; /* Larger clickable area */
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 3100; /* Ensure arrows are above other elements */
    background-color: rgba(0, 0, 0, 0.3);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(178, 0, 137, 0.8); /* Match the brand color */
}
