/*
 * GR11 Viajes — adaptations of the real post content to the approved reading column (blog-post.css).
 * Loaded after adaptations.css on posts and reading pages; inc/setup.php gives the same rules to the block editor
 * (.entry-content → .is-root-container), so the post looks the same while it is being edited.
 */

/* Photo pairs. The approved post shows them as a two-image core/gallery (.wp-block-gallery: 16px gap, 3:2 crop,
   alternating 44/14 px corners). The old posts made them with core/columns, one image per column: those columns take
   the same look. Only columns whose columns hold nothing but an image are touched; text columns keep core's layout. */
.entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))){gap:var(--space-md);margin:var(--space-xl) 0 var(--space-md)}
.entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))) > .wp-block-column > .wp-block-image{margin:0;aspect-ratio:3/2;overflow:hidden;border-radius:var(--radius-gallery-a);background:var(--color-sand)}
.entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))) > .wp-block-column:nth-child(2n) > .wp-block-image{border-radius:var(--radius-gallery-b)}
.entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))) > .wp-block-column > .wp-block-image img{width:100%;height:100%;object-fit:cover}
/* Core stacks columns below 782px; the approved gallery keeps two columns down to 481px. */
@media (min-width:481px) and (max-width:781px){
  .entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))){flex-wrap:nowrap!important}
  .entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))) > .wp-block-column{flex-basis:0!important;flex-grow:1}
}
@media (max-width:767px){
  .entry-content .wp-block-columns:not(:has(> .wp-block-column > :not(figure.wp-block-image))){gap:var(--space-xs);margin:var(--space-lg) 0 var(--space-sm)}
}

/* Final trip button. GeneratePress (main.min.css) sets .wp-block-button .wp-block-button__link{padding:10px 20px;
   font-size:inherit;line-height:inherit} (0,2,0), which beats the approved .wp-block-button__link (0,1,0) and shrank
   the button from 23px to the 18px of the text. The approved values come back with GP's specificity. */
.entry-content .wp-block-button .wp-block-button__link{padding:var(--space-sm) 36px;font-size:23px;line-height:1.05}
@media (max-width:767px){
  .entry-content .wp-block-button .wp-block-button__link{padding:var(--space-sm) var(--space-lg);font-size:21px}
}
