/* ==========================================================
   BTW Travel Journal – Shortcodes (extra)
   We reuse styling from assets/css/frontend.css
   Keep this file: small, additive, and scoped.
   ========================================================== */

/* ----------------------------------------------------------
   Generic wrappers (spacing)
   ---------------------------------------------------------- */

/* Country shortcodes */
.btw-tj-sc-country-map { margin: 0; }
.btw-tj-sc-country-gallery { margin: 0; }

/* Trip shortcodes */
.btw-tj-sc-trip-meta,
.btw-tj-sc-trip-lead,
.btw-tj-sc-trip-highlights,
.btw-tj-sc-trip-gallery,
.btw-tj-sc-trip-polarsteps,
.btw-tj-sc-trip-flipbook{
  margin: 0;
}

/* Consistent spacing when shortcodes follow each other */
.btw-tj-sc-country-gallery + .btw-tj-sc-country-map,
.btw-tj-sc-country-map + .btw-tj-sc-country-gallery,

.btw-tj-sc-trip-meta + .btw-tj-sc-trip-lead,
.btw-tj-sc-trip-lead + .btw-tj-sc-trip-highlights,
.btw-tj-sc-trip-highlights + .btw-tj-sc-trip-gallery,
.btw-tj-sc-trip-gallery + .btw-tj-sc-trip-polarsteps,
.btw-tj-sc-trip-polarsteps + .btw-tj-sc-trip-flipbook,

/* Any country shortcode followed by any trip shortcode */
.btw-tj-sc-country-map + .btw-tj-sc-trip-meta,
.btw-tj-sc-country-gallery + .btw-tj-sc-trip-meta,
.btw-tj-sc-country-map + .btw-tj-sc-trip-lead,
.btw-tj-sc-country-gallery + .btw-tj-sc-trip-lead,
.btw-tj-sc-country-map + .btw-tj-sc-trip-highlights,
.btw-tj-sc-country-gallery + .btw-tj-sc-trip-highlights,
.btw-tj-sc-country-map + .btw-tj-sc-trip-gallery,
.btw-tj-sc-country-gallery + .btw-tj-sc-trip-gallery,
.btw-tj-sc-country-map + .btw-tj-sc-trip-polarsteps,
.btw-tj-sc-country-gallery + .btw-tj-sc-trip-polarsteps,
.btw-tj-sc-country-map + .btw-tj-sc-trip-flipbook,
.btw-tj-sc-country-gallery + .btw-tj-sc-trip-flipbook{
  margin-top: 18px;
}

/* ----------------------------------------------------------
   Sidebar behavior (when placed in a narrow column)
   ---------------------------------------------------------- */

/* If a shortcode is inside a WP Column, make media a bit more compact */
.wp-block-column .btw-tj-gallery__item img{
  height: 150px;
}

/* Flipbook inside columns: slightly tighter */
.wp-block-column .btw-tj-flipbook{
  padding: 12px;
}
.wp-block-column .btw-tj-flipbook__thumbs img{
  width: 76px;
  height: 50px;
}

/* ----------------------------------------------------------
   Make sure shortcode headings don’t fight theme styles
   ---------------------------------------------------------- */

.btw-tj-sc-country-gallery .btw-tj-h2,
.btw-tj-sc-trip-gallery .btw-tj-h2{
  margin-top: 0; /* if user puts their own H2 above it in the template */
}

/* ----------------------------------------------------------
   Trip highlights – make each highlight 100% width (1 per row)
   (This is the actual fix for your screenshot/HTML)
   ---------------------------------------------------------- */

.btw-tj-sc-trip-highlights .btw-tj-highlights-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px; /* iets compacter in sidebar */
}

/* Keep cards tidy */
.btw-tj-sc-trip-highlights .btw-tj-highlight-card{
  padding: 12px 14px;
}

.btw-tj-sc-trip-highlights .btw-tj-highlight-card__title{
  margin: 0;
  line-height: 1.25;
}
