
.ccg-gallery {
    --ccg-blue: #16477d;
    --ccg-border: #dce3ec;
    --ccg-text: #263241;
    --ccg-muted: #617086;
    width: 100%;
    box-sizing: border-box;
}

.ccg-gallery * { box-sizing: border-box; }

.ccg-notice {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 28px 32px;
    margin-bottom: 32px;
    border: 2px solid #f1b719;
    border-radius: 24px;
    background: #fff8e7;
    color: #744e05;
}

.ccg-notice-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f8c63c;
    color: #735006;
    font-size: 28px;
    line-height: 1;
}

.ccg-notice-body { min-width: 0; flex: 1; }
.ccg-notice-title {
    margin: 2px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}
.ccg-notice-text {
    max-width: 1500px;
    font-size: 18px;
    line-height: 1.55;
}
.ccg-notice-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.ccg-reveal-button,
.ccg-hide-button,
.ccg-filter,
.ccg-lock-text {
    border: 0;
    cursor: pointer;
    font: inherit;
}
.ccg-reveal-button,
.ccg-hide-button {
    min-height: 50px;
    padding: 0 26px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.ccg-reveal-button {
    color: #fff;
    background: var(--ccg-blue);
}
.ccg-hide-button {
    color: #637086;
    background: transparent;
    border: 2px solid #dbe3ed;
}
.ccg-reveal-button:hover,
.ccg-hide-button:hover { transform: translateY(-1px); }

.ccg-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.ccg-filter {
    padding: 10px 22px;
    border-radius: 24px;
    background: #fff;
    border: 2px solid var(--ccg-border);
    color: #5d6b7f;
    font-size: 16px;
    font-weight: 600;
    transition: all .2s ease;
}
.ccg-filter:hover { border-color: var(--ccg-blue); color: var(--ccg-blue); }
.ccg-filter.is-active {
    color: #fff;
    background: var(--ccg-blue);
    border-color: var(--ccg-blue);
}

.ccg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ccg-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ccg-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(26, 52, 82, .03);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.ccg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26, 52, 82, .10);
}
.ccg-card.ccg-hidden { display: none; }

.ccg-media {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 210px;
    overflow: hidden;
}
.ccg-side {
    position: relative;
    min-width: 0;
    background: #edf1f6;
}
.ccg-side + .ccg-side {
    border-left: 3px solid #fff;
}
.ccg-side img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}
.ccg-placeholder {
    min-height: 210px;
    display: grid;
    place-items: center;
    color: #7d8998;
    font-size: 14px;
}
.ccg-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 5px;
    color: #fff;
    background: var(--ccg-blue);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}
.ccg-card-meta {
    padding: 20px 21px 21px;
    background: #f6f8fb;
}
.ccg-card-meta h3 {
    margin: 0 0 7px;
    color: var(--ccg-text);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}
.ccg-subtitle {
    color: var(--ccg-muted);
    font-size: 16px;
    line-height: 1.4;
}

.ccg-locked-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #fff;
    background: rgba(22, 71, 125, .78);
    backdrop-filter: blur(2px);
    transition: opacity .35s ease, visibility .35s ease;
}
.ccg-lock-icon { font-size: 19px; }
.ccg-lock-text {
    padding: 0;
    color: #fff;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
}
.ccg-card.ccg-revealed .ccg-locked-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .ccg-notice { padding: 22px 24px; }
    .ccg-notice-text { font-size: 16px; }
    .ccg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ccg-notice {
        gap: 14px;
        padding: 18px;
        margin-bottom: 22px;
        border-radius: 17px;
    }
    .ccg-notice-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 11px;
    }
    .ccg-notice-title { font-size: 17px; }
    .ccg-notice-text { font-size: 14px; line-height: 1.5; }
    .ccg-notice-actions { gap: 9px; }
    .ccg-reveal-button, .ccg-hide-button {
        min-height: 43px;
        padding: 0 17px;
        font-size: 13px;
    }
    .ccg-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
    .ccg-filter {
        flex: 0 0 auto;
        padding: 9px 16px;
        font-size: 13px;
    }
    .ccg-grid { grid-template-columns: 1fr; gap: 18px; }
    .ccg-media { min-height: 190px; }
    .ccg-side img, .ccg-placeholder { min-height: 190px; }
    .ccg-card-meta { padding: 16px 17px 18px; }
    .ccg-card-meta h3 { font-size: 17px; }
    .ccg-subtitle { font-size: 14px; }
}
