/* ==========================================================================
   POWERSTAR LIGHTBOX SYSTEM
   Pure Vanilla CSS/JS implementation
   ========================================================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-content-wrapper {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    outline: none;
}

.lightbox-close:hover {
    color: #DA291C;
    /* Powerstar Red */
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cursor pointer for triggerable images */
.slide-bg,
.promo-slide img,
.offer-image img,
.department-card img,
.team-gallery img,
.executive-card img,
.lightbox-trigger {
    cursor: zoom-in;
    transition: filter 0.2s;
}

.slide-bg:hover,
.promo-slide img:hover,
.offer-image img:hover,
.department-card img:hover,
.team-gallery img:hover,
.executive-card img:hover,
.lightbox-trigger:hover {
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        right: 0;
    }
}