/* GE Custom Categories Page — category cards (v1.1.0) */

.ge-ccp {
    --ge-ccp-media-bg: #eeeeee;   /* = background of the studio renders */
    --ge-ccp-accent: #e73e24;     /* site accent */
    --ge-ccp-text: #1d1d1f;
    --ge-ccp-muted: #6e6e73;
    --ge-ccp-border: #e6e6e6;
    --ge-ccp-radius: 12px;
    --ge-ccp-gap: 24px;
    margin: 4px 0 48px;
}

.ge-ccp__group + .ge-ccp__group {
    margin-top: 40px;
}

.ge-ccp__group-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ge-ccp-text);
}

.ge-ccp .ge-ccp__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--ge-ccp-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ge-ccp__item {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.ge-ccp .ge-ccp__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ge-ccp-border);
    border-radius: var(--ge-ccp-radius);
    color: var(--ge-ccp-text);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ge-ccp .ge-ccp__card:hover,
.ge-ccp .ge-ccp__card:focus {
    color: var(--ge-ccp-text);
    text-decoration: none;
}

.ge-ccp .ge-ccp__card:focus-visible {
    outline: 2px solid var(--ge-ccp-accent);
    outline-offset: 3px;
}

/* Image area: always 3:2 on the render grey */
.ge-ccp__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ge-ccp-media-bg);
    isolation: isolate;
}

.ge-ccp .ge-ccp__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .45s ease;
}

/* Old photos on white: white becomes the card grey */
.ge-ccp__media--legacy .ge-ccp__img {
    object-fit: contain;
    mix-blend-mode: multiply;
}

.ge-ccp__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 14px 16px;
}

.ge-ccp__name {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .2px;
    color: var(--ge-ccp-text);
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    transition: color .2s ease;
}

/* Count + arrow pinned to the bottom: aligned across a row */
.ge-ccp__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.ge-ccp__count {
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: .2px;
    color: var(--ge-ccp-muted);
}

.ge-ccp__arrow {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    color: var(--ge-ccp-text);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.ge-ccp__arrow svg {
    display: block;
    width: 14px;
    height: 14px;
}

@media (hover: hover) {
    .ge-ccp .ge-ccp__card:hover {
        transform: translateY(-4px);
        border-color: #dadada;
        box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .22);
    }

    .ge-ccp .ge-ccp__card:hover .ge-ccp__img {
        transform: scale(1.04);
    }

    .ge-ccp .ge-ccp__card:hover .ge-ccp__name {
        color: var(--ge-ccp-accent);
    }

    .ge-ccp .ge-ccp__card:hover .ge-ccp__arrow {
        background: var(--ge-ccp-accent);
        color: #fff;
        transform: translateX(2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ge-ccp .ge-ccp__card,
    .ge-ccp .ge-ccp__img,
    .ge-ccp__name,
    .ge-ccp__arrow {
        transition: none;
    }

    .ge-ccp .ge-ccp__card:hover,
    .ge-ccp .ge-ccp__card:hover .ge-ccp__img,
    .ge-ccp .ge-ccp__card:hover .ge-ccp__arrow {
        transform: none;
    }
}

@media (max-width: 1199px) {
    .ge-ccp {
        --ge-ccp-gap: 20px;
    }

    .ge-ccp__name {
        font-size: 14px;
    }

    .ge-ccp .ge-ccp__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ge-ccp {
        --ge-ccp-gap: 16px;
    }

    .ge-ccp .ge-ccp__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .ge-ccp {
        --ge-ccp-gap: 12px;
        --ge-ccp-radius: 10px;
        margin-bottom: 32px;
    }

    .ge-ccp .ge-ccp__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ge-ccp__body {
        gap: 8px;
        padding: 10px 10px 10px 12px;
    }

    .ge-ccp__name {
        font-size: 14px;
        line-height: 1.28;
    }

    .ge-ccp__count {
        font-size: 12px;
    }

    .ge-ccp__arrow {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .ge-ccp__arrow svg {
        width: 12px;
        height: 12px;
    }
}
