@charset "utf-8";
/* CSS Document */
      /* =============================================
           TEAM GRID  –  max 3 kolommen
           ============================================= */
        .mx_team_grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);   /* max 3 naast elkaar */
            gap: 28px;
          
            padding: 20px 0;
        }

        /* =============================================
           DE KAART
           ============================================= */
        .mx_team_card {
            background: #ffffff;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            text-decoration: none;   /* voor het geval de kaart een <a> is */
            color: inherit;
        }

        .mx_team_card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        }

        /* =============================================
           FOTO WRAPPER
           ============================================= */
        .mx_team_image_wrapper {
            position: relative;
            width: 100%;
            height: 240px;
            overflow: hidden;
        }

        .mx_team_image_wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.6s ease;
        }

        .mx_team_card:hover .mx_team_image_wrapper img {
            transform: scale(1.08);
        }

        /* Dimming overlay op hover */
        .mx_team_image_wrapper::after {
            content: '';
            position: absolute;
            inset: 0;
            background-color: rgba(0, 0, 0, 0);
            transition: background-color 0.3s ease;
            z-index: 2;
        }

        .mx_team_card:hover .mx_team_image_wrapper::after {
            background-color: rgba(0, 0, 0, 0.15);
        }

        /* =============================================
           ONDERSCHRIFT BLOK  –  naam / functie / klas
           ============================================= */
        .mx_team_caption {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 16px 24px;
            text-align: center;
            background: #fff;
            flex-grow: 1;
            justify-content: center;
        }

        /* NAAM  –  als knop (wie overeenkomt met photo-album stijl) */
        .mx_team_name {
            display: inline-block;
            background-color: var(--blauw);
            color: #fff;
            padding: 8px 24px;
            border-radius: 25px;
            font-family: 'Quicksand', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            box-shadow: 0 4px 10px rgba(18, 117, 187, 0.2);
            transition: all 0.3s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 90%;
        }

        .mx_team_card:hover .mx_team_name {
            background-color: var(--primary-yellow);
            box-shadow: 0 6px 15px rgba(253, 185, 19, 0.25);
            transform: translateY(-2px);
        }

        /* FUNCTIE */
        .mx_team_function {
            display: block;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--blauw);
            margin-top: 12px;
        }

        /* KLAS */
        .mx_team_class {
            display: block;
            font-size: 0.80rem;
            color: #999;
            margin-top: 4px;
            font-style: normal;
        }

        /* =============================================
           TABLET  –  2 kolommen
           ============================================= */
        @media (max-width: 860px) {
            .mx_team_grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        /* =============================================
           MOBIEL  –  1 kolom  (of 2 indien gewenst)
           ============================================= */
        @media (max-width: 520px) {
            .mx_team_grid {
                grid-template-columns: 1fr 1fr;   /* 2 smalle kaarten */
                gap: 14px;
            }

            .mx_team_image_wrapper {
                height: 160px;
            }

            .mx_team_caption {
                padding: 14px 10px 18px;
            }

            .mx_team_name {
                font-size: 0.82rem;
                padding: 6px 16px;
            }

            .mx_team_function {
                font-size: 0.78rem;
                margin-top: 8px;
            }

            .mx_team_class {
                font-size: 0.72rem;
            }
        }

        /* =============================================
           DEMO PLACEHOLDER (verwijder in productie)
           ============================================= */
        .mx_team_image_wrapper .placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: rgba(255,255,255,0.7);
        }

