.lddt-beeldbank-wrapper {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* Zoekbalk */
.bb-search-container {
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
}

#bb-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.3s;
}

#bb-search-input:focus {
    border-color: #00a859; /* LDDT Groen */
    outline: none;
}

/* Grid */
.bb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.bb-item-card {
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
	position: relative; 
}

.bb-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.bb-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.bb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00a859;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    font-weight: bold;
}

.bb-card-meta {
    padding: 15px;
}

.bb-card-meta h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
}

.bb-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.bb-identifier {
    color: #00a859;
    font-weight: 600;
}

/* Modal */
.bb-modal {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.bb-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    position: relative;
    overflow-y: auto;
	display: flex;
    flex-direction: row;
    padding: 0 !important; /* Ruimte voor zijbalk */
    overflow: hidden !important;	
}

.bb-close-modal {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 40px;
    color: #00a859;
    cursor: pointer;
    line-height: 1;
}

#pdf-scroll-container canvas {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

body.bb-modal-open {
    overflow: hidden;
}

/* Zorg dat de image container de basis is voor de overlay */
.bb-card-image {
    position: relative;
    overflow: hidden;
}

/* De Overlay zelf: standaard onzichtbaar */
.bb-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 89, 0.9); /* LDDT Groen met transparantie */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
}

/* Toon overlay bij hover over de kaart */
.bb-item-card:hover .bb-card-overlay {
    opacity: 1;
}

/* Styling van de tekst in de overlay */
.bb-overlay-content {
    transform: translateY(10px);
    transition: transform 0.3s ease-in-out;
}

.bb-item-card:hover .bb-overlay-content {
    transform: translateY(0);
}

.bb-overlay-year {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.bb-overlay-desc {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

/* Verberg de PDF badge als de overlay actief is voor een strakker beeld */
.bb-item-card:hover .bb-type-badge {
    opacity: 0;
}

/* Modal Layout aanpassing */
.bb-modal-content {
    display: flex;
    flex-direction: row;
    padding: 0 !important; /* Ruimte voor zijbalk */
    overflow: hidden !important;
}

/* De Zijbalk */
.bb-metadata-sidebar {
    width: 300px;
    flex-shrink: 0; /* Voorkomt dat de balk wordt samengedrukt */
    background: #fff;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.bb-sidebar-collapsed .bb-metadata-sidebar {
    margin-right: -350px;
}

.bb-sidebar-header {
    padding: 5px;
    background: #00a859;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-sidebar-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
}

.bb-meta-row { margin-bottom: 15px; border-bottom: 1px solid #f9f9f9; padding-bottom: 5px; }
.bb-meta-label { font-weight: 700; display: block; color: #00a859; text-transform: uppercase; font-size: 11px; }

/* Inklapknop */
.bb-toggle-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: #00a859;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
}


/* De balk bovenin de modal */
.bb-modal-top-bar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.bb-modal-nav-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* De Navigatie en Sluitknoppen */
.bb-nav-btn, .bb-close-btn {
    background: #f4f4f4;
    border: none;
    color: #333;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-weight: bold;
}

.bb-nav-btn:hover, .bb-close-btn:hover {
    background: #00a859; /* LDDT Groen */
    color: #fff;
}

.bb-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #eee;
}

/* Aanpassing Modal Content voor Top Bar */
.bb-modal-content {
    display: flex;
    flex-direction: column !important; /* Stapel top-bar en main-content */
}

.bb-modal-main-area {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(90vh - 60px); /* Modal hoogte minus top-bar */
    overflow: hidden;
    background: #f0f0f0;
}

/* De Viewer (Image/PDF): Schaalt automatisch naar resterende ruimte */
#bb-viewer-inner {
    position: relative; /* Cruciaal voor de zwevende toolbar */
    flex: 1;
    overflow: auto;
    background: #444; /* Iets lichter grijs voor contrast */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Zorgt dat lange PDF's bovenaan beginnen */
    padding: 40px 20px;
}

/* Zorg dat de afbeelding altijd binnen de beschikbare ruimte schaalt */
.bb-full-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Behoudt verhoudingen zonder af te snijden */
    transition: transform 0.3s ease;
}

/* Zoom status voor afbeeldingen */
.bb-full-img.zoomed {
    max-width: none !important;
    max-height: none !important;
    transform: scale(2.0);
    cursor: zoom-out;
}

/* Verberg de oude zwevende knoppen */
.bb-toggle-info, .bb-close-modal { display: none !important; }

.bb-sidebar-collapsed .bb-metadata-sidebar {
    display: none !important; /* Of gebruik margin-right: -350px voor een schuifeffect */
}

/* Kleur de knop groen als de zijbalk zichtbaar is */
.bb-modal-main-area:not(.bb-sidebar-collapsed) ~ .bb-modal-top-bar .bb-toggle-sidebar {
    background: #00a859;
    color: #fff;
}

/* Zorg dat de viewer de volledige beschikbare ruimte vult */
#bb-viewer-inner {
    flex: 1;
    height: 100%;
    position: relative;
    background: #333; /* Donkere achtergrond voor betere focus op foto */
}

/* Viewer.js container aanpassingen */
.viewer-container {
    background-color: transparent !important;
}

/* De knoppenbalk van de viewer onderin */
.viewer-toolbar > ul > li {
    background-color: rgba(0, 168, 89, 0.8) !important; /* LDDT Groen */
}

/* Voorkom dat de viewer buiten de modal steekt */
.viewer-canvas img {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Container voor de PDF controls */
/* De zwevende toolbar bovenop de PDF */
.bb-pdf-controls {
    position: absolute;
    bottom: 30px; /* Iets hoger van de rand */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 168, 89, 0.85); /* LDDT Groen met blur effect */
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Subtiele animatie: toolbar wordt transparanter als je niet beweegt */
.bb-pdf-controls:hover {
    background: rgba(0, 168, 89, 1);
    transform: translateX(-50%) scale(1.05);
}

.bb-pdf-controls button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-pdf-controls button:hover {
    background: rgba(255,255,255,0.2);
}

.bb-pdf-page-info {
    font-size: 13px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* De canvas waar de PDF op getekend wordt */
#pdf-single-page-canvas {
    margin: 0 auto;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    background: #fff;
    /* max-width: 100%;  <-- VERWIJDER DEZE REGEL OF ZET OP NONE */
    max-width: none !important; 
    cursor: grab; /* Geeft aan dat je kunt slepen */
}

#pdf-single-page-canvas:active {
    cursor: grabbing;
}

.lddt-upload-wrapper { font-family: 'Montserrat', sans-serif; max-width: 800px; margin: 20px auto; }
.lddt-dropzone { border: 3px dashed #ddd; padding: 50px; text-align: center; cursor: pointer; background: #fafafa; border-radius: 10px; }
.lddt-dropzone.hover { border-color: #00a859; background: #f0fdf4; }
.lddt-dropzone span { font-size: 50px; color: #00a859; display: block; margin-bottom: 10px; }
.lddt-grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background: #fff; padding: 25px; border: 1px solid #eee; border-radius: 0 0 10px 10px; }
.field.full { grid-column: span 2; }
.field label { display: block; font-weight: bold; margin-bottom: 5px; color: #333; }
.field input, .field textarea, .field select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.lddt-btn-save { grid-column: span 2; background: #00a859; color: #fff; border: none; padding: 15px; font-weight: bold; cursor: pointer; border-radius: 4px; margin-top: 10px; }
.lddt-preview-header { background: #333; color: #fff; padding: 12px 20px; font-size: 14px; border-radius: 10px 10px 0 0; }
.lddt-dropzone #lddt-browse-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.lddt-dropzone #lddt-browse-btn:hover {
    background-color: #005177;
}

/* Gebruik je bestaande CSS en voeg dit toe voor het ID-veld */
#f_id {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #555;
    cursor: not-allowed;
}
#lddt-map {
    width: 100%;
    border: 1px solid #ccc;
    z-index: 1; /* Voorkom dat Leaflet over menu's heen valt */
}

.lddt-grid-form .field.full {
    grid-column: span 2;
}

/* Styling voor de nieuwe download-knop in de zijbalk */
.bb-download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #00a859; /* LDDT Groen */
    color: #fff !important;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s ease;
}

.bb-download-link:hover {
    background: #008f4b;
    color: #fff !important;
}

.bb-download-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Container voor de info button en de tooltip */
.bb-info-container {
    position: relative;
    display: inline-block;
}

/* De Info Button styling */
.bb-info-btn {
    background: #f4f4f4;
    border: 1px solid #ddd;
    color: #333;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bb-info-btn:hover {
    background: #00a859;
    color: #fff;
    border-color: #00a859;
}

/* Het zwevende schermpje (Tooltip) */
.bb-info-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1001;
    bottom: 125%; /* Toont boven de knop */
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Pijltje aan de onderkant van de tooltip */
.bb-info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 15px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Toon de tooltip bij hover of klik (focus) */
.bb-info-container:hover .bb-info-tooltip,
.bb-info-btn:focus + .bb-info-tooltip {
    visibility: visible;
    opacity: 1;
}

.bb-info-btn.copyright-alert-btn {
    background: #0000ff; /* Fel rood */
    color: #fff;         /* Wit uitroepteken */
    border: 2px solid #0000cc;
    font-weight: 900;
    font-size: 24px;     /* Groot uitroepteken */
    width: 44px;
    height: 44px;
    border-radius: 50%;  /* Maak de knop rond voor extra attentiewaarde */
    box-shadow: 0 0 10px rgba(0,0,255,0.3);
}

.bb-info-btn.copyright-alert-btn:hover {
    background: #0000cc;
    transform: scale(1.1);
    border-color: #000099;
}

/* Zorg dat de downloadlink en knop goed naast elkaar staan */
.bb-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bb-download-link {
    text-decoration: none;
    background: #00a859;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-grid {
    /* Je bestaande grid styles */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px; /* Ruimte voor de loader onderaan */
}

#bb-results-wrapper {
    position: relative;
    width: 100%;
}

#bb-load-more-trigger {
    width: 100%;
    clear: both;
    pointer-events: none;
}

#bb-loader {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.bb-edit-card-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #2271b1; /* WordPress blauw */
    color: #fff !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.bb-edit-card-btn:hover {
    background: #135e96;
    transform: scale(1.1);
    color: #fff !important;
}

.bb-edit-card-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Ruimte tussen zoekbalk en collectie-filter */
.bb-filter-row {
    margin-bottom: 20px;
}

/* Ruimte tussen zoekbalk en collectie-filter */
.bb-filteraud-row {
    margin-bottom: 20px;
}

/* Select2 styling aanpassen naar LDDT Groen */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #eee;
    border-radius: 0;
    padding: 5px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #00a859;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #00a859;
    border: none;
    color: #fff;
    padding: 2px 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
}

/* Styling voor de nieuwe labels in het zoekscherm */
.bb-filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}

/* Geef de hele rij wat meer ademruimte */
.bb-filter-row {
    margin-top: 25px;
}

/* Geef de hele rij wat meer ademruimte */
.bb-filteraud-row {
    margin-top: 25px;
}

/* Zorg dat het zoekveld en de selectbox goed aansluiten */
#bb-search-input, 
.select2-container--default .select2-selection--multiple {
    margin-bottom: 5px;
}