/* --- Cloudinary Event Gallery --- */

.ceg-gallery-container {
    width: 100%;
    margin: 30px 0;
}

/* --- Cím --- */
.ceg-gallery-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 24px 0;
    text-align: center;
}

/* --- Nap szűrő gombok --- */
.ceg-day-filter {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ceg-day-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 9px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #555;
}

.ceg-day-btn:hover,
.ceg-day-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* --- Status / betöltés --- */
.ceg-status {
    min-height: 24px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #777;
    margin-bottom: 18px;
}

.ceg-gallery-container.ceg-loading .ceg-post-grid {
    opacity: 0.45;
    pointer-events: none;
}

/* --- Grid rendszer, a C P T S design alapján --- */
.ceg-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* --- Kártya design --- */
.ceg-gallery-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ceg-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* --- Kép --- */
.ceg-card-image {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: #f4f4f4;
    overflow: hidden;
}

.ceg-card-image a {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
}

.ceg-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ceg-gallery-card:hover .ceg-card-image img {
    transform: scale(1.05);
}

/* --- Nap badge a képen --- */
.ceg-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #222;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

/* --- Kártya tartalom --- */
.ceg-card-content {
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ceg-meta-top {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 550;
    margin-bottom: 0;
}

/* --- Load more --- */
.ceg-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.ceg-load-more-btn {
    background: #222;
    color: #fff;
    border: 1px solid #222;
    padding: 11px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ceg-load-more-btn:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-2px);
}

.ceg-load-more-btn[hidden] {
    display: none;
}

/* --- Hiba / üres állapot --- */
.ceg-empty,
.ceg-error {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #777;
    padding: 30px 10px;
}

.ceg-error {
    color: #a40000;
}

/* --- Mobil finomhangolás --- */
@media (max-width: 768px) {
    .ceg-post-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }

    .ceg-card-content {
        padding: 12px 14px 14px;
    }

    .ceg-day-btn {
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .ceg-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ceg-card-image {
        padding-top: 78%;
    }

    .ceg-card-cat {
        top: 10px;
        left: 10px;
        font-size: 9px;
        padding: 3px 8px;
    }

    .ceg-card-content {
        display: none;
    }
}