.dc-ag {
    --dc-ag-image-hover-scale: 1.04;
    --dc-ag-columns-desktop: 3;
    --dc-ag-columns-tablet: 2;
    --dc-ag-columns-mobile: 1;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.dc-ag *,
.dc-ag *::before,
.dc-ag *::after {
    box-sizing: border-box;
}

.dc-ag a {
    text-decoration: none;
}

.dc-ag__grid {
    display: grid;
    grid-template-columns: repeat(var(--dc-ag-columns-desktop, 3), minmax(0, 1fr));
    align-items: stretch;
    column-gap: 24px;
    row-gap: 40px;
}

.dc-ag__card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.dc-ag__media {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #111;
}

.dc-ag__image,
.dc-ag__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.dc-ag__image {
    object-fit: cover;
    transform: scale(1);
    transition: transform 520ms cubic-bezier(.2, .7, .2, 1), filter 360ms ease;
}

.dc-ag__card:hover .dc-ag__image {
    transform: scale(var(--dc-ag-image-hover-scale));
}

.dc-ag__placeholder {
    background: linear-gradient(135deg, #242424, #0e0e0e);
}

.dc-ag__content {
    min-width: 0;
    padding-top: 14px;
}

.dc-ag__labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dc-ag__label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #635619;
    color: #fdc400;
    background: transparent;
    line-height: 1.15;
    white-space: nowrap;
}

.dc-ag__label--highlight {
    border-color: #fdc400;
    color: #111;
    background: #fdc400;
}

.dc-ag__title {
    margin: 0 0 8px;
    padding: 0;
}

.dc-ag__title-link,
.dc-ag__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.dc-ag__title-link {
    color: #fff;
    -webkit-line-clamp: 2;
    transition: color 280ms ease;
}

.dc-ag__card:hover .dc-ag__title-link,
.dc-ag__title-link:focus-visible {
    color: #fdc400;
}

.dc-ag__excerpt {
    margin: 0;
    color: #a7a7a7;
    -webkit-line-clamp: 2;
}

.dc-ag__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
}

.dc-ag__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #171717;
    border-radius: 50%;
    color: #fff;
    background: #171717;
    line-height: 1;
    text-align: center;
    user-select: none;
    white-space: nowrap;
    transition: color 260ms ease, background-color 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.dc-ag a.dc-ag__page:hover,
.dc-ag a.dc-ag__page:focus-visible,
.dc-ag__page.is-current {
    border-color: #fdc400;
    color: #111;
    background: #fdc400;
}

.dc-ag a.dc-ag__page:hover,
.dc-ag a.dc-ag__page:focus-visible {
    transform: translateY(-2px);
}

.dc-ag a.dc-ag__page:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.dc-ag__page--ellipsis {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

.dc-ag__page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-size: 15px;
    color: currentColor;
}

.dc-ag__page-icon--library svg,
.dc-ag__page-icon--library i {
    display: block;
    width: 100%;
    height: 100%;
    color: currentColor;
    fill: currentColor;
}

.dc-ag__page-icon--mask {
    background-color: currentColor;
    -webkit-mask-image: var(--dc-ag-mask-url);
    mask-image: var(--dc-ag-mask-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.dc-ag__empty {
    padding: 24px;
    border: 1px dashed rgba(128, 128, 128, .45);
    text-align: center;
}

@media (max-width: 1024px) {
    .dc-ag__grid {
        grid-template-columns: repeat(var(--dc-ag-columns-tablet, var(--dc-ag-columns-desktop, 2)), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dc-ag__grid {
        grid-template-columns: repeat(var(--dc-ag-columns-mobile, var(--dc-ag-columns-tablet, 1)), minmax(0, 1fr));
    }

    .dc-ag__pagination {
        gap: 8px;
    }

    .dc-ag__page {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dc-ag__image,
    .dc-ag__title-link,
    .dc-ag__page {
        transition-duration: .01ms !important;
    }
}

.dc-ag.is-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .dc-ag.is-loading {
        transition: none;
    }
}
