﻿/* Lightbox Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.3s;
    border: 2px solid #ffcc00;
    border-radius: 8px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffcc00;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffcc00;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-modal:hover,
    .close-modal:focus {
        color: #ff9900;
        background: rgba(0,0,0,0.9);
        transform: scale(1.1);
    }

/* Animation */
@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Make main image clickable */
.main-project-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

    .main-project-image:hover {
        transform: scale(1.02);
    }

/* Make thumbnails clickable */
.thumbnail-img {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .thumbnail-img:hover {
        border-color: #ffcc00 !important;
        transform: scale(1.05);
    }
