/* Image Modal/Lightbox CSS */

/* Modal Overlay */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

/* Modal Content Container */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* The Image */
.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.modal-close:hover {
    background: #ddd;
}

/* Make portfolio items clickable */
.portfolio-item {
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
