/*
 * Portfolio page styles — Gravity Projex
 * PROPRIETARY SOFTWARE LICENSE — GRAVITY PROJEX
 * Copyright (c) 2026 Gravity Projex. All Rights Reserved.
 * Contact: admin@gravityprojex.com | https://gravityprojex.com
 *
 * @since 4.8.4
 */

@keyframes gpPortfolioFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.gp-fade-in {
    animation: gpPortfolioFadeIn 0.45s ease-out both;
}

/* Cards are <button> elements now — strip the UA chrome without
   losing the focus ring, which is handled by Tailwind's
   focus-visible:outline utilities in the template. */
.project-trigger {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

/* Equal-height cards regardless of summary length. */
#projects-grid .project-card,
#projects-grid .project-trigger {
    height: 100%;
}

/* line-clamp-2 is a Tailwind core utility, but declared here as a
   fallback in case the built stylesheet is regenerated without it. */
#projects-grid .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .gp-fade-in {
        animation: none;
    }
}