/* Collection cards, shared by the collections index and collection pages. */
@layer pages {
    /* collection cards */
    .colgrid {
        display: grid;
        gap: 16px;
    }
    .colcard {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        background: var(--graphite);
        color: #fff;
        border-radius: 4px;
        overflow: hidden;
        min-height: 400px;
        .cc-t {
            padding: clamp(28px, 4vw, 56px);
            display: flex;
            flex-direction: column;
            gap: 14px;
            align-items: flex-start;
        }
        .cc-t .note {
            color: var(--soft-d);
        }
        .cc-t .lead {
            color: #d0d3d3;
        }
        .cc-t .btn {
            margin-top: 8px;
        }
        .cc-p {
            position: relative;
            align-self: stretch;
            min-height: 360px;
            margin: 16px 0 16px 16px;
            border-radius: 3px;
            background: radial-gradient(110% 85% at 26% 16%, #fafbfb 0, var(--concrete) 55%, #cfd7d7 100%);
        }
        .cc-p img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform var(--t3) var(--ease);
        }
        &:hover .cc-p img {
            transform: scale(1.05) rotate(-3deg);
        }
        & em {
            font-style: normal;
            font-size: 0.71875rem;
            font-weight: 600;
            background: var(--orange);
            color: var(--graphite);
            padding: 1px 7px;
            border-radius: 9px;
        }
    }
    @media (max-width: 800px) {
        .colcard {
            grid-template-columns: 1fr;
            .cc-p {
                order: -1;
                margin: 16px;
            }
        }
    }
}
