/**
 * FIFE Core — Impact Clients widget styles.
 *
 * Copied verbatim from page-our-impact.php's own inline <style> block —
 * the "Clients Grid" section and the shared "Lightbox" section — per the
 * explicit 1:1 migration requirement.
 */

.impact-clients-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(310, 58%, 35%);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .impact-clients-header h3 {
        font-size: 2.25rem;
    }
}

.impact-clients-header h3 span {
    font-weight: 900;
}

.impact-clients-divider {
    width: 100%;
    height: 1px;
    background: rgba(147, 49, 131, 0.3);
    margin-bottom: 2rem;
}

.impact-clients-desc {
    color: hsl(0, 0%, 45.1%);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.impact-clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .impact-clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .impact-clients-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.impact-client-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(0, 0%, 89.8%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.impact-client-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
    border-color: rgba(147, 49, 131, 0.3);
}

.impact-client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Lightbox */
.impact-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}
.impact-lightbox.show {
    display: flex;
}

.impact-lightbox-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 48rem;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.impact-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: hsl(0, 0%, 96%);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.impact-lightbox-close:hover {
    background: hsl(0, 0%, 89.8%);
}

.impact-lightbox-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}
