/* JP Photo EXIF - core card layout */

.jppe-card {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
}

.jppe-photo-wrap img.jppe-photo-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Base EXIF bar */
.jppe-exif-bar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 32px;
    padding: 14px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Shared text styling */
.jppe-exif-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.jppe-exif-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 4px;
}

.jppe-exif-camera {
    font-weight: 600;
    font-size: 15px;
}

.jppe-exif-lens {
    font-size: 14px;
}

.jppe-exif-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.jppe-exif-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 80px;
}

.jppe-exif-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 2px;
}

.jppe-exif-value {
    font-size: 15px;
    font-weight: 600;
}

.jppe-exif-watermark img {
    height: 40px;
    width: auto;
    display: block;
}

/* THEME: DARK (translucent) */

.jppe-theme-dark {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(3, 7, 18, 0.92));
    color: #f9fafb;
}

.jppe-theme-dark .jppe-exif-bar {
    background: rgba(3, 7, 18, 0.78);
    color: #f9fafb;
    border-top-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
}

.jppe-theme-dark .jppe-exif-label {
    color: rgba(249, 250, 251, 0.65);
}

.jppe-theme-dark .jppe-exif-lens {
    color: #e5e5e5;
}

.jppe-theme-dark .jppe-exif-title {
    color: rgba(209, 213, 219, 0.9);
}

.jppe-theme-dark .jppe-exif-value {
    color: #f9fafb;
}

/* THEME: LIGHT (translucent) */

.jppe-theme-light {
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.88));
    color: #020617;
}

.jppe-theme-light .jppe-exif-bar {
    background: rgba(248, 250, 252, 0.86);
    color: #020617;
    border-top-color: rgba(148, 163, 184, 0.6);
    backdrop-filter: blur(16px);
}

.jppe-theme-light .jppe-exif-label {
    color: #64748b;
}

.jppe-theme-light .jppe-exif-lens {
    color: #334155;
}

.jppe-theme-light .jppe-exif-title {
    color: #64748b;
}

.jppe-theme-light .jppe-exif-value {
    color: #0f172a;
}

/* Gallery + filter UI */

.jppe-gallery-wrapper {
    max-width: 1220px;
    margin: 0 auto;
}

/* Make filters subtly translucent as well */
.jppe-filter-form {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.86);
    backdrop-filter: blur(16px);
}

.jppe-gallery-theme-dark .jppe-filter-form {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(51, 65, 85, 0.85);
}

.jppe-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.jppe-filter-field {
    flex: 1 1 180px;
}

.jppe-filter-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-bottom: 4px;
}

.jppe-gallery-theme-dark .jppe-filter-field label {
    color: #e5e7eb;
}

.jppe-filter-field input {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.jppe-gallery-theme-dark .jppe-filter-field input {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-color: rgba(71, 85, 105, 0.9);
}

.jppe-filter-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jppe-filter-inline span {
    font-size: 13px;
    color: #6b7280;
}

.jppe-gallery-theme-dark .jppe-filter-inline span {
    color: #e5e7eb;
}

.jppe-filter-actions {
    flex: 0 0 auto;
}

.jppe-filter-actions button {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #f9fafb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

.jppe-filter-actions button:hover {
    background: #020617;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.35);
    transform: translateY(-1px);
}

.jppe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.jppe-no-results {
    text-align: center;
    color: #6b7280;
    padding: 2rem 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .jppe-exif-bar {
        flex-direction: column;
        gap: 16px;
        padding: 12px 16px;
    }

    .jppe-exif-right {
        gap: 16px;
    }
}
