.cgp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}
@media (min-width: 576px) {
    .cgp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .cgp-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.cgp-gallery-item {
    width: 100%;
    max-width: 400px;
    height: 320px;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cgp-gallery-grid .cgp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    border-radius:16px;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.cgp-gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.cgp-pagination {
    margin-top: 30px;
    text-align: center;
}

.cgp-pagination ul {
    display: inline-flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.cgp-pagination li {
    display: inline-block;
}

.cgp-pagination a {
    font-size: 16px;
    color: #111;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-width: 32px;
    text-align: center;
}

.cgp-pagination a:hover {
    background-color: #f2f2f2;
}

.cgp-pagination a.current {
    background-color: #000;
    color: #fff;
    font-weight: 600;
}

.cgp-pagination a.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}
.cgp-pagination .dots {
    display: inline-block;
    padding: 6px 8px;
    color: #999;
    font-size: 16px;
}

@media (max-width: 480px) {
    .cgp-pagination ul {
        gap: 8px;
    }
    .cgp-pagination a {
        font-size: 14px;
        padding: 5px 8px;
    }
}