/* Portable studio galleries: applies only to galleries inserted by Outils BE. */
.ben-article-tool.ben-at-gallery{display:flex!important;flex-direction:column;gap:6px;max-width:100%;width:100%;clear:both;box-sizing:border-box;margin:1.2em 0;min-width:0;}
.ben-at-gallery .ben-at-gallery-wrap{position:relative;min-width:0;width:100%;}
.ben-at-gallery .ben-at-gallery-track{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;}
.ben-at-gallery.ben-at-gallery-cover .ben-at-gallery-track,.ben-at-gallery.ben-at-visible-1 .ben-at-gallery-track,.ben-at-gallery .ben-at-gallery-track:has(>figure:only-child){grid-template-columns:minmax(0,1fr);}
.ben-at-gallery.ben-at-gallery-strip .ben-at-gallery-track{display:flex!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x pan-y;}
.ben-at-gallery .ben-at-gallery-track>figure.ben-photo-unit{display:block;width:100%!important;max-width:100%!important;float:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;}
.ben-at-gallery.ben-at-gallery-strip .ben-at-gallery-track>figure{flex:0 0 42%;scroll-snap-align:start;}
.ben-at-gallery .ben-at-gallery-track>figure.ben-at-gallery-extra{display:none!important;}
.ben-at-gallery .ben-at-gallery-track>figure a{display:block!important;position:relative;overflow:hidden;width:100%!important;margin:0!important;padding:0!important;border:0!important;aspect-ratio:4/3;border-radius:4px;box-shadow:none!important;}
.ben-at-gallery.ben-at-gallery-cover .ben-at-gallery-track>figure a{aspect-ratio:16/9;}
.ben-at-gallery .ben-at-gallery-track>figure a>img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:cover!important;aspect-ratio:auto!important;margin:0!important;float:none!important;border-radius:0!important;}
.ben-at-gallery .ben-at-gallery-track>figure figcaption{display:none!important;}
.ben-at-gallery.ben-at-captions .ben-at-gallery-track>figure figcaption{display:block!important;font:400 12px/1.35 system-ui,sans-serif!important;color:inherit!important;text-align:center!important;white-space:pre-line;overflow-wrap:anywhere;}
.ben-at-gallery .ben-at-gallery-more{position:absolute;inset:0;display:grid;place-items:center;background:#0008;color:#fff!important;font:700 clamp(20px,4vw,36px)/1 system-ui,sans-serif!important;pointer-events:none;}
.ben-at-gallery .ben-at-gallery-launch{display:inline-flex!important;align-self:flex-end;align-items:center;justify-content:center;max-width:100%;width:auto!important;min-height:32px;margin:0!important;padding:4px 8px!important;border:1px solid currentColor!important;border-radius:4px;color:inherit!important;text-decoration:none!important;background:transparent!important;font:600 12px/1.25 system-ui,sans-serif!important;}
.ben-at-gallery.ben-at-galign-left .ben-at-gallery-launch{align-self:flex-start;}.ben-at-gallery.ben-at-galign-center .ben-at-gallery-launch{align-self:center;}
.ben-at-gallery.ben-at-gsize-medium .ben-at-gallery-launch{font-size:14px!important;}.ben-at-gallery.ben-at-gsize-large .ben-at-gallery-launch{font-size:16px!important;}
.ben-at-gallery .ben-at-gallery-step{position:absolute;top:50%;transform:translateY(-50%);z-index:1;display:grid!important;place-items:center;width:36px!important;height:40px!important;margin:0!important;padding:0!important;background:#102322de!important;color:#fff!important;border:1px solid #fff9!important;border-radius:5px;text-decoration:none!important;font:600 27px/1 system-ui,sans-serif!important;}
.ben-at-gallery .ben-at-gallery-step[data-ben-at-step="-1"]{left:2px;}.ben-at-gallery .ben-at-gallery-step[data-ben-at-step="1"]{right:2px;}
/* Reader palette has more specific image sizing rules; override only new galleries. */
.ben-reader[data-ben-reader][data-ben-reader][data-ben-reader]:is([data-ben-reader],#ben-palette-specificity) .ben-page.ben-paper .ben-wp-content .ben-at-gallery .ben-at-gallery-track>figure a>img{height:100%!important;object-fit:cover!important;aspect-ratio:auto!important;border-radius:0!important;}
.ben-reader[data-ben-reader][data-ben-reader][data-ben-reader]:is([data-ben-reader],#ben-palette-specificity) .ben-page.ben-paper .ben-wp-content .ben-at-gallery .ben-at-gallery-track>figure{margin:0!important;}
.ben-reader[data-ben-reader][data-ben-reader][data-ben-reader]:is([data-ben-reader],#ben-palette-specificity) .ben-page.ben-paper .ben-wp-content .ben-at-gallery .ben-at-gallery-track>figure figcaption{display:none!important;}
.ben-reader[data-ben-reader][data-ben-reader][data-ben-reader]:is([data-ben-reader],#ben-palette-specificity) .ben-page.ben-paper .ben-wp-content .ben-at-gallery.ben-at-captions .ben-at-gallery-track>figure figcaption{display:block!important;font-size:12px!important;text-align:center!important;}

/* A wrapper paragraph may be added by WordPress formatting. */
.ben-at-gallery .ben-at-gallery-track>figure>p,.ben-at-gallery .ben-at-gallery-wrap>p,.ben-at-gallery>p{margin:0!important;padding:0!important;}
.ben-at-gallery.ben-at-galign-left>p{text-align:left!important;align-self:flex-start;}.ben-at-gallery.ben-at-galign-center>p{text-align:center!important;align-self:center;}.ben-at-gallery.ben-at-galign-right>p{text-align:right!important;align-self:flex-end;}
.ben-reader[data-ben-reader][data-ben-reader][data-ben-reader]:is([data-ben-reader],#ben-palette-specificity) .ben-page.ben-paper .ben-wp-content .ben-at-gallery .ben-at-gallery-track>figure.ben-at-gallery-extra{display:none!important;}
.ben-reader[data-ben-reader][data-ben-reader][data-ben-reader]:is([data-ben-reader],#ben-palette-specificity) .ben-page.ben-paper .ben-wp-content .ben-at-gallery .ben-at-gallery-track>figure a{width:100%!important;border:0!important;box-shadow:none!important;}

/* Same icon as the magazine studio, without introducing another gallery layout. */
.ben-at-gallery .ben-at-gallery-launch{gap:5px;white-space:normal;text-align:center;}
.ben-at-gallery .ben-at-gallery-launch-icon{display:inline-block;width:1em;height:1em;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='15' height='14' rx='2'/%3E%3Cpath d='M7 6V3h14v14h-3M4 17l5-5 4 4 2-2 3 3'/%3E%3C/svg%3E") center/contain no-repeat;}
