.cpt-grid-widget-wrapper-f68e4d50 {
    position: relative;
    width: 100%;
}

/* Controls bar system default */
.cpt-grid-controls-bar-f68e4d50 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    background-color: #fcfcfc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.cpt-grid-ctrl-group-f68e4d50 {
    flex: 1;
    min-width: 180px;
}

.cpt-grid-ctrl-element-f68e4d50 {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.cpt-grid-ctrl-element-f68e4d50:focus {
    border-color: #000;
}

/* Grid / List switcher button design */
.cpt-grid-layout-toggles-f68e4d50 {
    display: flex;
    gap: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    background-color: #fff;
}

.cpt-grid-layout-btn-f68e4d50 {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 3px;
    color: #666;
    transition: all 0.2s ease;
}

.cpt-grid-layout-btn-f68e4d50.active,
.cpt-grid-layout-btn-f68e4d50:hover {
    background-color: #000;
    color: #fff !important;
}

.cpt-grid-date-group-f68e4d50 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpt-grid-custom-dates-wrapper-f68e4d50 {
    display: flex;
    gap: 8px;
}

/* None Position Styles (hides wrapper entirely) */
.cpt-grid-no-controls-f68e4d50 .cpt-grid-controls-bar-f68e4d50,
.cpt-grid-pos-none .cpt-grid-controls-bar-f68e4d50,
.elementor-widget-cpt_dynamic_grid_pro_f68e4d50.cpt-grid-pos-none .cpt-grid-controls-bar-f68e4d50 {
    display: none !important;
}

/* Positioning Sidebar Layouts */
.cpt-grid-pos-sidebar_left .cpt-grid-widget-wrapper-f68e4d50 {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.cpt-grid-pos-sidebar_right .cpt-grid-widget-wrapper-f68e4d50 {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.cpt-grid-pos-sidebar_left .cpt-grid-controls-bar-f68e4d50,
.cpt-grid-pos-sidebar_right .cpt-grid-controls-bar-f68e4d50 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: fit-content;
    margin-bottom: 0;
}

.cpt-grid-pos-sidebar_left .cpt-grid-controls-bar-f68e4d50 {
    grid-column: 1;
    grid-row: 1;
}

.cpt-grid-pos-sidebar_left .cpt-grid-main-layout-f68e4d50 {
    grid-column: 2;
    grid-row: 1;
}

.cpt-grid-pos-sidebar_right .cpt-grid-controls-bar-f68e4d50 {
    grid-column: 2;
    grid-row: 1;
}

.cpt-grid-pos-sidebar_right .cpt-grid-main-layout-f68e4d50 {
    grid-column: 1;
    grid-row: 1;
}

@media (max-width: 991px) {
    .cpt-grid-pos-sidebar_left .cpt-grid-widget-wrapper-f68e4d50,
    .cpt-grid-pos-sidebar_right .cpt-grid-widget-wrapper-f68e4d50 {
        grid-template-columns: 1fr;
    }
    .cpt-grid-pos-sidebar_left .cpt-grid-controls-bar-f68e4d50,
    .cpt-grid-pos-sidebar_right .cpt-grid-controls-bar-f68e4d50 {
        grid-column: 1;
        grid-row: auto;
    }
    .cpt-grid-pos-sidebar_left .cpt-grid-main-layout-f68e4d50,
    .cpt-grid-pos-sidebar_right .cpt-grid-main-layout-f68e4d50 {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Grid Layout */
.cpt-grid-container-f68e4d50 {
    display: grid;
    transition: opacity 0.3s ease;
}

.cpt-grid-card-f68e4d50 {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* List Layout (Toggle Feature) */
.cpt-grid-container-f68e4d50.cpt-layout-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.cpt-grid-container-f68e4d50.cpt-layout-list .cpt-grid-card-f68e4d50 {
    flex-direction: row;
}

.cpt-grid-container-f68e4d50.cpt-layout-list .cpt-grid-thumbnail-wrapper-f68e4d50 {
    width: 300px;
    max-width: 40%;
}

@media (max-width: 640px) {
    .cpt-grid-container-f68e4d50.cpt-layout-list .cpt-grid-card-f68e4d50 {
        flex-direction: column;
    }
    .cpt-grid-container-f68e4d50.cpt-layout-list .cpt-grid-thumbnail-wrapper-f68e4d50 {
        width: 100%;
        max-width: 100%;
    }
}

.cpt-grid-thumbnail-wrapper-f68e4d50 {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #eaeaea;
}

.cpt-grid-thumbnail-wrapper-f68e4d50.aspect-16-9 {
    aspect-ratio: 16/9;
}

.cpt-grid-thumbnail-wrapper-f68e4d50.aspect-4-3 {
    aspect-ratio: 4/3;
}

.cpt-grid-thumbnail-wrapper-f68e4d50.aspect-square {
    aspect-ratio: 1/1;
}

.cpt-grid-img-placeholder-f68e4d50 {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    aspect-ratio: 16/9;
}

.cpt-grid-img-f68e4d50 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cpt-grid-zoom-yes .cpt-grid-card-f68e4d50:hover .cpt-grid-img-f68e4d50 {
    transform: scale(1.08);
}

.cpt-grid-badge-f68e4d50 {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.cpt-grid-card-content-f68e4d50 {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cpt-grid-meta-f68e4d50 {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* ACF Fields display styles */
.cpt-grid-custom-field-f68e4d50 {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 6px 12px;
    margin: 8px 0;
    font-size: 12px;
    display: inline-flex;
    gap: 4px;
    width: fit-content;
}

.cpt-grid-cf-label {
    font-weight: 600;
    color: #444;
}

.cpt-grid-cf-value {
    color: #000;
}

/* Advanced metadata bar styles */
.cpt-grid-adv-meta-f68e4d50 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.cpt-grid-share-f68e4d50 {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.cpt-share-btn-f68e4d50 {
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.cpt-share-btn-f68e4d50:hover {
    opacity: 0.7;
}

.cpt-grid-title-f68e4d50 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.cpt-grid-title-f68e4d50 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cpt-grid-card-excerpt-f68e4d50 {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cpt-grid-card-excerpt-f68e4d50 p {
    margin: 0;
}

.cpt-grid-card-footer-f68e4d50 {
    margin-top: auto;
}

.cpt-grid-readmore-f68e4d50 {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cpt-grid-empty-f68e4d50 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

/* Load more wrapper styling */
.cpt-grid-pagination-wrapper-f68e4d50 {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.cpt-grid-load-more-btn-f68e4d50 {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cpt-grid-load-more-btn-f68e4d50:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cpt-grid-infinite-sentinel-f68e4d50 {
    height: 10px;
    width: 100%;
}

/* Loader Overlay */
.cpt-grid-loader-f68e4d50 {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.cpt-grid-loader-f68e4d50.active {
    display: block;
}

.cpt-grid-spinner-f68e4d50 {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: cptSpinner_f68e4d50 0.8s linear infinite;
}

@media (max-width: 768px) {
    .cpt-grid-container-f68e4d50:not(.cpt-layout-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .cpt-grid-container-f68e4d50:not(.cpt-layout-list) {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@keyframes cptSpinner_f68e4d50 {
    to { transform: rotate(360deg); }
}
