/* Desktop: grille 2x2 pour les images d'inscription */
.jury-link-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    place-items: center;
    margin: 40px 0;
}

/* Images (desktop) */
.jury-link-img {
    width: 320px;
    max-width: 90vw;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    margin: 0 auto;
}

.jury-link-img:hover {
    transform: scale(1.04);
}

/* Mobile: horizontal scroller for quick swipe between images */
@media (max-width: 700px) {
    .jury-link-container {
        display: flex;
        flex-direction: row;
        gap: 14px;
        padding: 0 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        touch-action: pan-x;
    }

    /* partial next-card hint */
    .jury-link-container::after{
        content: '';
        flex: 0 0 6vw;
    }

    /* subtle scrollbar style */
    .jury-link-container::-webkit-scrollbar{ height: 8px; }
    .jury-link-container::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.12); border-radius: 8px; }

    .jury-link-container a {
        flex: 0 0 82vw;
        max-width: 82vw;
        scroll-snap-align: center;
        display: block;
        box-sizing: border-box;
        padding: 0;
    }

    .jury-link-img {
        width: 100%;
        height: 62vh;
        max-height: 62vh;
        object-fit: cover;
        display: block;
        border-radius: 12px;
        margin: 0;
        transition: none;
    }

    /* disable hover scale on touch devices to avoid overlap */
    .jury-link-img:hover { transform: none; }
}

@media (max-width: 600px) {
    .jury-link-img {
        width: 95vw;
        max-width: 98vw;
    }
}