/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: translateY(-50%) scale(0.7);}
    to {transform: translateY(-50%) scale(1);}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 18px;
    text-align: center;
    z-index: 10001;
}

/* Thumbnail link styles */
.image-fit {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.image-fit:hover {
    transform: scale(1.05);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    .lightbox-caption {
        font-size: 14px;
        bottom: 15px;
    }
/* Responsive */
@media screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    .lightbox-caption {
        font-size: 14px;
        bottom: 15px;
    }
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Success message styling */
#form-success {
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
}

#form-success p {
    color: #155724;
    margin: 0;
    font-size: 16px;
}

/* AI Lab button wrapper */
.button-wrapper {
    margin: 20px 0;
}

.button-wrapper .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-wrapper .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button-wrapper .button .icon {
    font-size: 24px;
}
