/* ============================================
   PROJECT LIGHTBOX GALLERY — styles
   Append this block to the end of styles.css
   ============================================ */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.94);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
    text-align: center;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    margin-top: 6px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover {
    color: #B71C1C;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #B71C1C;
    transform: translateY(-50%) scale(1.08);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Small hint on cards that have a gallery, so users know they can click */
.project-card[data-images] .project-card-img {
    position: relative;
}
.project-card[data-images] .project-card-img::after {
    content: ' view full projcect';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
    white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .lightbox-content img { max-height: 65vh; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 16px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 16px; right: 16px; font-size: 32px; }
    .lightbox-caption { font-size: 14px; padding: 0 40px; }
}
