/**
 * Image Link component styles for filterable components
 * Follows the JPK theme's design system
 */

.filterable-system {
    /* Image Link component styling */
    & .filterable-card[data-type="image-link"] {
        position: relative;
        overflow: hidden;
        aspect-ratio: 1/1; /* Force square aspect ratio to match image-with-cta */
        
        & .card-content {
            padding: 0;
            height: 100%;
            width: 100%;
        }
        
        & .image-link-content {
            position: relative;
            display: block;
            height: 100%;
            width: 100%;
            text-decoration: none;
            transition: transform 0.3s ease;
            
            /* Image styling */
            & .link-image {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
                z-index: 1;
                transition: transform 0.3s ease;
            }
            
            /* Hover effect */
            &:hover {
                & .link-image {
                    transform: scale(1.05);
                }
            }
        }
    }
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .filterable-system {
        & .filterable-card[data-type="image-link"] {
            /* Maintain square aspect ratio even on mobile */
            aspect-ratio: 1/1;
        }
    }
}
