/* MemryX Marquee Gallery */
.mxg{ position:relative; overflow:hidden; }

/* strip: optionally full-bleed, with a soft fade at both ends */
.mxg-rail{ position:relative; overflow:hidden; cursor:grab; }
.mxg--full .mxg-rail{ width:100vw; margin-left:calc(50% - 50vw); }
.mxg--fade .mxg-rail{
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 var(--mxg-fade,5%), #000 calc(100% - var(--mxg-fade,5%)), transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 var(--mxg-fade,5%), #000 calc(100% - var(--mxg-fade,5%)), transparent 100%); }

.mxg-track{ display:flex; width:max-content; animation:mxg-slide 88s linear infinite; }
@keyframes mxg-slide{ from{ transform:translate3d(0,0,0); } to{ transform:translate3d(var(--mxg-shift,-50%),0,0); } }

/* the strip keeps moving under the cursor; press and hold to hold it still */
.mxg--press .mxg-rail.is-pressed .mxg-track{ animation-play-state:paused; }
.mxg--press .mxg-rail.is-pressed{ cursor:grabbing; }
.mxg--pause-hover .mxg-rail:hover .mxg-track{ animation-play-state:paused; }

/* one image */
.mxg-fig{ position:relative; flex:0 0 auto; height:460px; aspect-ratio:4/3; width:auto; margin:0 0 0 0; overflow:hidden; background:#0b0b0d; }
.mxg-fig a{ display:block; width:100%; height:100%; color:inherit; text-decoration:none; }
.mxg-fig img{ display:block; width:100%; height:100%; max-width:none; object-fit:cover; filter:contrast(1.02);
  transition:transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease; -webkit-user-drag:none; user-select:none; }

/* hover zoom (turned on by the "Zoom on hover" control; scale set in the widget) */
.mxg--zoom .mxg-fig:hover img{ transform:scale(1.04); }

/* caption */
.mxg-cap{ position:absolute; left:0; right:0; bottom:0; z-index:1; padding:44px 20px 16px; text-align:left;
  font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#fff; line-height:1.4;
  background:linear-gradient(to top, rgba(0,0,0,.82), transparent);
  transition:opacity .35s ease, transform .35s ease; pointer-events:none; }
.mxg--cap-hover .mxg-cap{ opacity:0; transform:translateY(6px); }
.mxg--cap-hover .mxg-fig:hover .mxg-cap,
.mxg--cap-hover .mxg-fig:focus-within .mxg-cap{ opacity:1; transform:none; }
.mxg--cap-always .mxg-cap{ opacity:1; transform:none; }
.mxg--cap-hidden .mxg-cap{ display:none; }
/* touch screens have no hover, so show captions there */
@media (hover:none){ .mxg--cap-hover .mxg-cap{ opacity:1; transform:none; } }

@media (max-width:720px){ .mxg-fig{ height:300px; } }

@media (prefers-reduced-motion:reduce){
  .mxg-track{ animation:none; }
  .mxg-rail{ overflow-x:auto; }
}
