/* Custom CSS for Paroto documentation */

/* Ensure gallery cards are clickable on mobile devices */
.sphx-glr-thumbcontainer {
    cursor: pointer;
    touch-action: manipulation;
}

.sphx-glr-thumbcontainer a {
    display: block;
    pointer-events: auto;
    touch-action: manipulation;
}

/* Fix for gallery thumbnails on mobile */
@media (max-width: 768px) {
    .sphx-glr-thumbcontainer {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-touch-callout: none;
    }

    .sphx-glr-thumbcontainer a {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }
}

/* Ensure links are not blocked by overlays */
.sphx-glr-thumbcontainer a {
    position: relative;
    z-index: 1;
}

/* Make sure the entire card is clickable */
.sphx-glr-thumbcontainer {
    position: relative;
}

.sphx-glr-thumbcontainer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
