/* ─── BeeAI Gallery — B-53 ─────────────────────────────────────────────────── */

.beeai-gallery-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 64px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.beeai-gallery-header {
    text-align: center;
    padding: 40px 16px 24px;
}

.beeai-gallery-header__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #EEB40D;
    margin: 0 0 10px;
}

.beeai-gallery-header__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #f5f0e8;
    margin: 0 0 10px;
}

.beeai-gallery-header__sub {
    font-size: 0.95rem;
    color: #8a837a;
    margin: 0;
}

/* ─── Status / spinner ───────────────────────────────────────────────────── */

.beeai-gallery-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 16px;
    text-align: center;
}

.beeai-gallery-status__text {
    font-size: 0.95rem;
    color: #8a837a;
    margin: 0;
}

.beeai-gallery-status--error .beeai-gallery-status__text {
    color: #e07070;
}

.beeai-gallery-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(238, 180, 13, 0.15);
    border-top-color: #EEB40D;
    border-radius: 50%;
    animation: beeai-spin 0.75s linear infinite;
}

@keyframes beeai-spin {
    to { transform: rotate(360deg); }
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */

.beeai-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 20px;
    padding: 0 16px;
}

/* ─── Photo card ─────────────────────────────────────────────────────────── */

.beeai-gallery-item {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a18;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.beeai-gallery-item__link {
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.beeai-gallery-item__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beeai-gallery-item__link:focus {
    outline: 2px solid #EEB40D;
    outline-offset: -2px;
}

/* Przycisk „Pobierz" — zawsze widoczny pod zdjęciem */
.beeai-gallery-item__download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 13px 16px;
    background: #EEB40D;
    color: #060502;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.beeai-gallery-item__download:hover,
.beeai-gallery-item__download:focus {
    background: #d4a00c;
    color: #060502;
    outline: none;
}

/* ─── Landing (brak tokenu) ──────────────────────────────────────────────── */

.beeai-gallery-landing {
    text-align: center;
}

.beeai-gallery-landing__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 56px 24px;
}

.beeai-gallery-landing__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.beeai-gallery-landing__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #ffffff;
    max-width: 320px;
    margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.beeai-gallery-footer {
    text-align: center;
    padding: 32px 16px 0;
    font-size: 13px;
    color: #4a4540;
}

.beeai-gallery-footer strong {
    color: #EEB40D;
}
