/* --- Gallery Thumbnail System --- */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.thumb-card {
    position: relative;
    border-radius: 6px;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover Overlay Effect */
.thumb-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 9, 9, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 10px;
}

.thumb-overlay i {
    font-size: 2rem;
    color: var(--primary-color);
}

.thumb-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 10px;
}

.thumb-card:hover .thumb-img {
    transform: scale(1.08);
}

.thumb-card:hover .thumb-overlay {
    opacity: 1;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-content-box {
    display: flex;
    max-width: 950px;
    width: 90%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-content-box img {
    width: 60%;
    max-height: 80vh;
    object-fit: cover;
    background-color: #000;
}

.lightbox-details {
    width: 40%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.lightbox-details h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.lightbox-details p {
    font-size: 1rem;
    color: var(--text-muted);
}
.lightbox-details p span {
    color: #fff;
    font-weight: 600;
}
.lightbox-details i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Responsive fixes for Lightbox */
@media (max-width: 850px) {
    .thumbnail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .lightbox-content-box {
        flex-direction: column;
    }
    .lightbox-content-box img, .lightbox-details {
        width: 100%;
    }
    .lightbox-details {
        padding: 1.5rem;
    }
}
@media (max-width: 550px) {
    .thumbnail-grid {
        grid-template-columns: 1fr;
    }
}