/* RL Solution Web V4.4.12 – corrections to mobile hit testing only.
   Gallery geometry/images/cinematic transitions remain those of V4.4.10.
   Desktop viewport receives zero changes. */
@media(max-width:1120px){
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__stage,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__foot,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__actions,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__dots,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__nav,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__dot,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__open,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-card.is-visible,
  body.home-mobile .track>.chapter a,
  body.home-mobile .track>.chapter button{
    pointer-events:auto!important;
  }
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__backdrop,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__backdrop *,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__grid,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-gallery__glow,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-card__image,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-card__fill,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-card__shade,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-card__meta,
  body.home-mobile .track>.chapter[data-id="galeria"] .fan-card:not(.is-visible){
    pointer-events:none!important;
  }
  .fan-gallery__actions .rl-gallery-all-projects{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:42px;padding:0 10px;border-radius:999px;
    border:1px solid rgba(244,234,215,.40);background:#282021;
    color:#f8ead9;font-weight:800;font-size:10px;cursor:pointer;
    pointer-events:auto!important;touch-action:manipulation;
  }
}
@media(min-width:1121px){.fan-gallery__actions .rl-gallery-all-projects{display:none!important}}
.rl-gallery-directory-dialog{
  border:1px solid rgba(255,255,255,.23);border-radius:18px;
  position:fixed;inset:0;margin:auto;width:min(94vw,500px);
  max-height:min(85dvh,750px);padding:16px;background:#101011;color:#f8efe6;
  box-shadow:0 24px 90px rgba(0,0,0,.75);z-index:2147483640;overflow:auto;
}
.rl-gallery-directory-dialog:not([open]){display:none!important}
.rl-gallery-directory-dialog::backdrop{background:rgba(0,0,0,.85)}
.rl-gallery-directory-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.17);padding-bottom:12px;margin-bottom:10px}
.rl-gallery-directory-dialog__head h2{font-size:19px!important;line-height:1.2;margin:0;letter-spacing:-.02em}
.rl-gallery-directory-dialog__close{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.35);color:#fff;background:#252525;cursor:pointer;font-size:20px}
.rl-gallery-directory-dialog__list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr;gap:4px}
.rl-gallery-directory-dialog__list a{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:#f8eee5;font-size:14px;font-weight:750;min-height:46px;padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
.rl-gallery-directory-dialog__list a span{color:#ed5747;font-size:17px}
.rl-gallery-directory-dialog__list a:focus-visible,.rl-gallery-directory-dialog__close:focus-visible,.rl-gallery-all-projects:focus-visible{outline:3px solid #ef5044;outline-offset:2px}
