/* Private v3: one screen, native photo peek, caption and brand counter. */
@media (max-width:1023px) {
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) max-content!important;
    height:100vh!important;
    height:100svh!important;
    min-height:0!important;
    max-height:none!important;
    box-sizing:border-box!important;
    gap:0!important;
    padding-block:12px max(12px,env(safe-area-inset-bottom))!important;
    position:relative;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .story-g__slides {
    grid-row:1!important;
    height:100%!important;
    min-height:0!important;
    align-items:stretch!important;
    gap:12px!important;
    padding-inline:16px;
    box-sizing:border-box!important;
    scroll-padding-inline-start:16px;
    overflow-anchor:none;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .story-g__slide {
    position:relative;
    display:flex!important;
    flex:0 0 var(--gallery-card-width,calc(100% - 28px))!important;
    width:var(--gallery-card-width,calc(100% - 28px))!important;
    max-width:none!important;
    align-items:center!important;
    justify-content:center!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .story-g__slide > :is(img,svg),
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .story-g__slide > :is(div,a,picture):not([data-gallery-window]) > img,
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-preview > img,
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-preview > :is(div,a,picture):not([data-gallery-window]) > img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    border-radius:var(--article-photo-radius,24px)!important;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .story-g__slide > :is(div,a,picture):not([data-gallery-window]),
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-preview > :is(div,a,picture):not([data-gallery-window]) {
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-preview {
    position:absolute!important;
    inset:0;
    width:100%!important;
    height:100%!important;
    display:grid!important;
    place-items:center!important;
    pointer-events:none;
  }
  /* Existing editorial crop windows retain their accepted coordinates. */
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] [data-gallery-window] {
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    flex:none!important;
    border-radius:var(--article-photo-radius,24px)!important;
    overflow:hidden!important;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-footer {
    grid-row:2!important;
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-width:0;
    padding:16px 16px 0;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-native-captions {
    grid-row:1!important;
    grid-column:2!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:center;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-native-captions figcaption,
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-native-captions figcaption[hidden] {
    display:block!important;
    grid-area:1/1!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    font-size:14px;
    line-height:1.45;
    text-align:left!important;
  }
  /* Reserve the longest caption's space without exposing inactive copies. */
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-native-captions figcaption[hidden] {
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-count {
    grid-row:1;
    grid-column:1;
    position:relative;
    display:grid;
    place-items:center;
    width:64px;
    height:46px;
    color:var(--g-blue,#493791);
    font:700 18px/1 var(--g-body,'PT Sans',sans-serif);
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
    isolation:isolate;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-count > strong {
    font:inherit;
    position:relative;
    padding-bottom:1px;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-count > svg {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    overflow:visible;
    pointer-events:none;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-count path {
    fill:none;
    stroke:currentColor;
    stroke-width:1.4px;
    vector-effect:non-scaling-stroke;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .guide-mobile-approved [data-gallery-native][data-gallery-screen] .story-g__gallery-dots {
    display:none!important;
  }
  /* Larger accessible text can grow instead of clipping content to a screen. */
  .g-readable .guide-mobile-approved [data-gallery-native][data-gallery-screen] {
    height:auto!important;
    min-height:100svh!important;
    grid-template-rows:minmax(240px,65svh) max-content!important;
  }
  .g-readable .guide-mobile-approved [data-gallery-native][data-gallery-screen] .gallery-screen-count {
    font-size:20px;
  }
}
