.gp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 768px) { .gp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gp-grid { grid-template-columns: repeat(4, 1fr); } }

.gp-card {
    position: relative;
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    overflow: hidden;
    box-shadow: var(--gp-shadow-xs);
    transition: transform 0.3s var(--gp-ease), box-shadow 0.3s var(--gp-ease);
}
.gp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gp-shadow-lg);
    z-index: 100;
    overflow: visible;
}
.gp-card-link {
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}
.gp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--gp-ease), opacity 0.35s ease;
    opacity: 0;
}
.gp-card-img.loaded { opacity: 1; }
.gp-card:hover .gp-card-img { transform: scale(1.04); }

.gp-card-footer {
    font-family: var(--gp-sans);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-top: 1px solid var(--gp-border-light);
}
.gp-card-id {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gp-ink-secondary);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.gp-card-id:hover { color: var(--gp-ink); }
.gp-card-date {
    font-size: 0.6875rem;
    color: var(--gp-ink-muted);
}

@keyframes gpCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.gp-card { animation: gpCardIn 0.35s var(--gp-ease) both; }
.gp-card:nth-child(1) { animation-delay: 0s; }
.gp-card:nth-child(2) { animation-delay: 0.03s; }
.gp-card:nth-child(3) { animation-delay: 0.06s; }
.gp-card:nth-child(4) { animation-delay: 0.09s; }
.gp-card:nth-child(5) { animation-delay: 0.12s; }
.gp-card:nth-child(6) { animation-delay: 0.15s; }
.gp-card:nth-child(7) { animation-delay: 0.18s; }
.gp-card:nth-child(8) { animation-delay: 0.21s; }
.gp-card:nth-child(n+9) { animation-delay: 0.24s; }

.gp-card:hover .mouse-hover {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.gp-card .mouse-hover {
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 999;
    width: 272px;
    overflow: hidden;
}
.gp-card .mouse-hover::after { display: none; }

.gp-card .mouse-hover::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px 2px 4px rgba(0,0,0,0.06);
    z-index: -1;
}

@media (min-width: 1200px) {
    .gp-card:nth-child(4n) .mouse-hover {
        left: auto;
        right: calc(100% + 12px);
        transform: translateX(6px);
    }
    .gp-card:nth-child(4n):hover .mouse-hover { transform: translateX(0); }
    .gp-card:nth-child(4n) .mouse-hover::before {
        left: auto;
        right: -6px;
        box-shadow: 2px -2px 4px rgba(0,0,0,0.06);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .gp-card:nth-child(3n) .mouse-hover {
        left: auto;
        right: calc(100% + 12px);
        transform: translateX(6px);
    }
    .gp-card:nth-child(3n):hover .mouse-hover { transform: translateX(0); }
    .gp-card:nth-child(3n) .mouse-hover::before {
        left: auto;
        right: -6px;
        box-shadow: 2px -2px 4px rgba(0,0,0,0.06);
    }
}

.gp-card .mouse-hover .image-holder {
    width: 100%;
    float: none;
    padding: 0;
    line-height: 0;
}
.gp-card .mouse-hover .image-holder img {
    width: 100%;
    height: 152px;
    object-fit: cover;
    display: block;
}
.gp-card .mouse-hover a { color: inherit; text-decoration: none; }

.mouse-hover-actions {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}
.mouse-hover-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #555;
    transition: background 0.15s, color 0.15s;
}
.mouse-hover-actions a:hover { background: #f3f4f6; color: #111; }
.mouse-hover-actions svg { width: 18px; height: 18px; }

.gp-card .mouse-hover .inner-text {
    width: 100%;
    float: none;
    font-size: 0.8125rem;
    padding: 0.75rem;
}

.mouse-hover-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.625rem;
}
.mouse-hover-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6d28d9;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.mouse-hover-badge-label { font-size: 0.8125rem; color: #64748b; font-weight: 500; }

.gp-card .mouse-hover .inner-text p {
    border-bottom: none;
    padding: 0;
    margin-bottom: 0.3rem;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.gp-card .mouse-hover .inner-text p.hover-title {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.gp-card .mouse-hover .inner-text p.hover-credit a { color: #6d28d9; font-weight: 500; }
.gp-card .mouse-hover .inner-text p.hover-credit a:hover { text-decoration: underline; }
.gp-card .mouse-hover .inner-text strong { color: #1e293b; }
.gp-card .mouse-hover .inner-text p.hover-id {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

@media (max-width: 767px) {
    .gp-card .mouse-hover { display: none; }
}
