.button {
    display: inline-block;
    padding: .85rem 1.5rem;
    border-radius: var(--radius);
    transition: .2s;
    margin-right: 1rem;
    margin-bottom: 5px;
}

.button.primary {
    background: var(--accent);
    color: white;
}

.button.primary:hover, .button.secondary:hover {

    opacity: .9;
    cursor: pointer;

}

.button.secondary {

    background: var(--surface-light);
    color: white;

}

.project-card {

    background: var(--surface);

    border-radius: var(--radius);

    padding: 1.5rem;

    box-shadow: var(--shadow);

}

.thumbnail {

    height: 220px;

    border-radius: var(--radius);

    background: #3a4351;

    margin-bottom: 1rem;

}

.project-card h3 {

    margin-bottom: .5rem;

}

.project-card p {

    color: var(--text-muted);

    margin-bottom: 1.5rem;

}

footer {

    padding: 3rem 0;

    text-align: center;

    color: var(--text-muted);

}



.lightbox {

    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.85);

    opacity: 0;
    visibility: hidden;

    transition: opacity .25s;

    z-index: 9999;

}

.lightbox.open {

    opacity: 1;
    visibility: visible;

}

.lightbox-image {

    max-width: 90vw;
    max-height: 90vh;

    border-radius: 8px;

    box-shadow: 0 0 40px rgba(0,0,0,.5);

}

.lightbox-close {

    position: absolute;
    top: 20px;
    right: 35px;

    color: white;

    font-size: 3rem;

    cursor: pointer;

    user-select: none;

}

.lightbox-content {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    max-width: 90vw;

}

.lightbox-caption {

    max-width: 800px;

    color: white;
    text-align: center;

    font-size: 1rem;
    line-height: 1.5;

}

.lightbox-trigger {

    cursor: zoom-in;

}

.lightbox-video {

    display: none;

    max-width: 90vw;
    max-height: 90vh;

    border-radius: 8px;

}


.gallery-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;

}

.gallery-item {

    margin: 0;

}

.gallery-image,
.video-placeholder img {

    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

    transition: transform .2s;

}

.gallery-image:hover,
.video-placeholder:hover img {

    transform: scale(1.02);

}

.video-placeholder {

    position: relative;

    cursor: pointer;

}

.play-button {

    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 3rem;

    color: white;

    background: rgba(0,0,0,.25);

}




/* Responsive table */
/* Container that handles the horizontal overflow */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth inertial scrolling on iOS */
    margin-bottom: 1rem;
}

/* Force the scrollbar to be visible and styled on WebKit browsers (Chrome, Safari, iOS) */
.table-responsive::-webkit-scrollbar {
    height: 6px; /* Height of the horizontal scrollbar */
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); /* Subtle track background */
    border-radius: var(--radius, 4px);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3); /* Darker thumb so it's clearly visible */
    border-radius: var(--radius, 4px);
}

/* Standard properties for Firefox */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.05);
}