/* ==========================================================================
   Pine Research Instrumentation
   
   PRODUCT APPLICATIONS PAGE

   Author: Tim Paschkewitz
   ========================================================================== */

/* GENERAL */
.product-applications-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    gap: 3em;
    padding: 0 2em;
}

.product-applications-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
}

.product-applications-link picture {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
}

.product-applications-link picture img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
}

/* White overlay effect */
.product-applications-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.product-applications-link:hover::after {
    opacity: 1;
}

/* Icon overlay styling */
.product-applications-link .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    font-size: 3em;
    color: var(--pri-blue);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-applications-link:hover .overlay {
    opacity: 1;
}

/* Details section styling */
.product-application .details {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    row-gap: 1em;
    padding-top: 1em;
}

.product-application .details .name {
    font-size: 1.2em;
    color: var(--gray);
    font-weight: 700;
    text-align: center;
}

.product-application .details .count {
    background-color: var(--mid-blue-1);
    padding: 0.5em;
    color: var(--white);
    border-radius: 5px;
}


@media screen and (max-width:576px) {

    .et-l--body ul {
        padding: 0px;
    }

    .product-applications-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
        gap: 2em;
        padding: 0;
    }

    .product-application .details .count {
        font-size: 0.9em;
    }

    .product-application .details .name {
        font-size: 1.05em;
    }
}