/* Release Download Button - styles v2.3.9 */

/* Grid with responsive breakpoints */
.rdb-grid { display: grid; gap: 1.2rem; }
/* Phone */
@media (max-width: 767px) {
  .rdb-grid { grid-template-columns: 1fr; }
}
/* Tablet */
@media (min-width: 768px) and (max-width: 980px) {
  .rdb-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Desktop */
@media (min-width: 981px) {
  .rdb-grid { grid-template-columns: repeat(var(--rdb-cols-desktop, 4), 1fr); }
}

/* Card */
.rdb-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 0;
  overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.rdb-image-wrap { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f5f5f7; }
.rdb-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdb-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #666; font-size: .95rem; }

.rdb-content { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.rdb-title { margin: 0; font-size: 1.05rem; line-height: 1.3; text-align: center; }
.rdb-title a { display: inline-block; text-align: center; }
.rdb-title-first, .rdb-title-second { display: block; line-height: 1.25; }
.rdb-title-second { margin-top: 2px; }
.rdb-title-first{font-weight:700;}

.rdb-buttons { margin-top: auto; display: flex; gap: 8px; align-items: stretch; }
.rdb-button { flex: 1 1 0; text-align: center; }
.rdb-card .et_pb_button.rdb-button,
.rdb-download-inline .et_pb_button.rdb-button {
  padding: 10px 14px; font-size: 14px; line-height: 1.2; border-radius: 0; box-sizing: border-box;
}
.rdb-buttons--single { justify-content: center !important; text-align: center; }
.rdb-buttons--single .rdb-button { flex: 0 0 auto !important; min-width: 160px; }

/* Standalone download */
.rdb-download-inline { margin: 1rem 0; display:flex; justify-content:center; }
.rdb-download-inline .rdb-button { display:inline-flex; align-items:center; justify-content:center; min-width: 200px; padding: 10px 16px; border-radius:0; }

/* Pagination */
.rdb-pagination-ajax { text-align: center; margin-top: 1.25rem; }
.rdb-pagination-ajax .rdb-page-btn {
  display: inline-block; margin: 0 4px 8px; padding: 6px 12px; line-height: 1.2;
  border-radius: 0; font-size: 14px;
}
.rdb-pagination-ajax .rdb-page-btn.current,
.rdb-pagination-ajax .rdb-page-btn.disabled { pointer-events: none; opacity: .65; }
.rdb-ellipsis { display: inline-block; margin: 0 6px; }
.rdb-pagination-ajax.rdb-loading { opacity: .7; pointer-events: none; }

.rdb-load-more { margin-top: 1.25rem; text-align: center; }
.rdb-load-more .rdb-load-more-btn { display: inline-block; min-width: 220px; border-radius: 0; }

/* Misc */
.rdb-wrap { position: relative; }
.rdb-anchor{ display:block; height:0; margin:0; padding:0; }

/* Image-only block */
.rdb-image-only{margin:0;padding:0;border:0;background:transparent;}


/* Responsive YouTube embed wrapper for [rdb_youtube] */
.rdb-youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.rdb-youtube-wrap iframe,
.rdb-youtube-wrap object,
.rdb-youtube-wrap embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Uniform button sizing for Download, Boeken, Website */
.rdb-buttons .rdb-button {
    width: 100%;
    display: block;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 18px;
}

/* Unified styling for release buttons only */
.rdb-release-button {
    width: 100%;
    display: block;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 18px;
}
