
#alm-gallery{margin:18px 0 26px;color:#f4efff;--g:#ab92ff}
#alm-gallery *,#alm-gallery *::before{box-sizing:border-box}
#alm-gallery button{font:inherit;cursor:pointer}
#alm-gallery [hidden]{display:none!important}
#alm-gallery button:focus-visible{outline:3px solid #cbb8ff;outline-offset:3px}
#alm-gallery .g-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
#alm-gallery .g-tabs button{min-height:60px;border:1px solid #51477d;border-radius:14px;background:#1b2143;color:#e7defc;padding:12px}
#alm-gallery .g-tabs button[aria-selected=true]{background:#40316f;border-color:#b39bff}
#alm-gallery .g-display{overflow:hidden;border-radius:16px;border:1px solid #584d89;background:#12182e}
#alm-gallery .g-image{display:block;width:100%;max-height:680px;object-fit:contain;cursor:zoom-in}
#alm-gallery .g-absent{padding:80px 20px;text-align:center;color:#d9cbed}
#alm-gallery .g-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#151b34}
#alm-gallery .g-meta strong{font-size:1rem}
#alm-gallery .g-meta span{color:#aeb5d7;font-size:.83rem}
#alm-gallery .g-meta button,#alm-gallery .g-arrows button{border-radius:9px;background:#272448;border:1px solid #5c4e86;color:#f1ebff;padding:9px 12px}
#alm-gallery .g-arrows{display:flex;justify-content:center;align-items:center;gap:16px;margin:15px 0}
#alm-gallery .g-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
#alm-gallery .g-thumbs button{overflow:hidden;min-width:0;background:#191d3b;border:1px solid #514876;border-radius:10px;padding:6px;color:#d9d0ec;text-align:left}
#alm-gallery .g-thumbs button[aria-current=true]{border-color:#b49af7;background:#362d59}
#alm-gallery .g-thumbs img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}
#alm-gallery .g-thumbs span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.74rem;margin-top:5px}
#alm-gallery .g-lightbox{position:fixed;inset:0;background:#060714f5;z-index:2147483000;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px}
#alm-gallery .g-lightbox img{max-width:98vw;max-height:85vh;object-fit:contain}
#alm-gallery .g-lightbox button{position:absolute;top:22px;right:22px;background:#443465;color:white;border:1px solid #b9a2f9;border-radius:9px;padding:10px 17px}
#almVideos.g-video-only,#almVideos.g-song-only{grid-template-columns:minmax(0,1fr)}
#almVideos.g-video-only .alm-karaoke-card,#almVideos.g-song-only .alm-about-card{display:none}
@media(max-width:810px){#alm-gallery .g-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}#alm-gallery .g-tabs{gap:5px}#alm-gallery .g-tabs button{padding:9px 4px;font-size:.82rem}}
@media(max-width:450px){#alm-gallery .g-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}#alm-gallery .g-meta{flex-wrap:wrap}}

/* Hide the existing video panels when screenshots are active. */
#almVideos[hidden]{display:none!important}


/* ALM Discovery refinement: one-line subtitle on wide screens and visible 1/2/3 steps. */
#almNewLanding .alm-video-heading{max-width:min(100%,1320px)}
@media(min-width:1120px){#almNewLanding .alm-video-heading>p:last-child{white-space:nowrap}}
#alm-gallery .g-tabs button{position:relative;padding-left:52px;padding-right:20px;text-align:center}
#alm-gallery .g-tabs button::before{content:"";position:absolute;left:18px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid rgba(179,155,255,.62);border-radius:50%;background:rgba(169,142,246,.16);font-family:Georgia,serif;font-size:1.05rem;font-weight:700;line-height:1;color:#f5dbac;pointer-events:none}
#alm-gallery .g-tabs button:nth-child(1)::before{content:"1"}
#alm-gallery .g-tabs button:nth-child(2)::before{content:"2"}
#alm-gallery .g-tabs button:nth-child(3)::before{content:"3"}
#alm-gallery .g-tabs button[aria-selected=true]::before{color:#fff3d7;border-color:#c9b1ff;background:rgba(177,153,255,.24)}
@media(min-width:651px) and (max-width:920px){#alm-gallery .g-tabs button{padding-left:38px;padding-right:8px}#alm-gallery .g-tabs button::before{left:8px;width:24px;height:24px;font-size:.92rem}}
@media(max-width:650px){#alm-gallery .g-tabs{grid-template-columns:1fr;gap:8px}#alm-gallery .g-tabs button{min-height:52px;padding:12px 48px}#alm-gallery .g-tabs button::before{left:18px;width:26px;height:26px}}


/* Immersive screenshot carousel with transparent arrows and single-row thumbnails. */
#alm-gallery .g-display{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(176,154,244,.46);
  border-radius:19px;
  background:linear-gradient(145deg,#111830,#161935);
  box-shadow:0 20px 50px rgba(3,5,22,.29),0 0 0 1px rgba(125,103,183,.08);
}
#alm-gallery .g-main{position:relative;isolation:isolate;overflow:hidden;outline-offset:-4px}
#alm-gallery .g-main::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(9,12,28,.18),transparent 15%,transparent 85%,rgba(9,12,28,.18));
}
#alm-gallery .g-image{width:100%;max-height:700px;object-fit:contain}
#alm-gallery .g-overlay-nav{position:absolute;inset:0;z-index:2;pointer-events:none}
#alm-gallery .g-overlay-nav button{
  pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);
  width:56px;height:56px;border-radius:999px;display:grid;place-items:center;
  padding:0;color:#fff7ff;border:1px solid rgba(218,202,255,.55);
  background:rgba(23,24,50,.27);
  -webkit-backdrop-filter:blur(11px);backdrop-filter:blur(11px);
  box-shadow:0 8px 24px rgba(2,3,12,.19);
  opacity:.45;
  transition:opacity .2s ease,background .2s ease,transform .2s ease,border-color .2s ease;
  cursor:pointer;
}
#alm-gallery .g-overlay-nav .g-overlay-prev{left:18px}
#alm-gallery .g-overlay-nav .g-overlay-next{right:18px}
#alm-gallery .g-overlay-nav button svg{width:25px;height:25px;stroke:currentColor;pointer-events:none}
#alm-gallery .g-main:hover .g-overlay-nav button,
#alm-gallery .g-main:focus-within .g-overlay-nav button{opacity:.9}
#alm-gallery .g-overlay-nav button:hover{
  opacity:1;background:rgba(85,63,146,.67);
  border-color:rgba(226,213,255,.95);
  transform:translateY(-50%) scale(1.055);
}
#alm-gallery .g-overlay-nav button:active{transform:translateY(-50%) scale(.96)}
#alm-gallery .g-meta{
  padding:15px 18px;
  background:linear-gradient(180deg,rgba(28,29,59,.96),rgba(17,23,46,.99));
  border-top:1px solid rgba(173,155,234,.24)
}
#alm-gallery .g-meta strong{font-size:1.05rem;color:#f6edff}
#alm-gallery .g-meta span{font-variant-numeric:tabular-nums}
#alm-gallery .g-meta button{
  border-radius:10px;background:rgba(104,80,162,.22);
  border:1px solid rgba(179,154,235,.48);
  transition:background .18s ease,border-color .18s ease
}
#alm-gallery .g-meta button:hover{background:rgba(133,95,194,.42);border-color:#b49cf8}
#alm-gallery .g-thumbs{
  display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;overflow-y:hidden;
  padding:5px 3px 15px;margin-top:16px;
  scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#6b559e #12152c;
  -webkit-overflow-scrolling:touch;
}
#alm-gallery .g-thumbs button{
  flex:0 0 clamp(155px,17%,205px);width:auto;scroll-snap-align:start;
  border-radius:12px;padding:7px;
  background:linear-gradient(165deg,#1b2244,#151a34);
  border:1px solid rgba(113,99,167,.6);
  box-shadow:0 6px 15px rgba(0,0,0,.13);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
#alm-gallery .g-thumbs button:hover{transform:translateY(-3px);border-color:#a58cf3;background:#292448}
#alm-gallery .g-thumbs button[aria-current=true]{
  border-color:#c7a9ff;background:linear-gradient(150deg,#443271,#30264f);
  box-shadow:inset 0 0 0 1px rgba(204,183,255,.18),0 7px 21px rgba(45,29,104,.21)
}
#alm-gallery .g-thumbs img{border-radius:7px}
#alm-gallery .g-thumbs span{font-size:.78rem;margin-top:7px}
#alm-gallery .g-arrows{display:none}
#alm-gallery .g-lightbox .g-modal-prev,
#alm-gallery .g-lightbox .g-modal-next{
  top:50%;width:52px;height:52px;padding:12px;
  display:grid;place-items:center;transform:translateY(-50%);
  border-radius:50%;background:rgba(28,30,59,.42);
  border:1px solid rgba(222,204,255,.6);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)
}
#alm-gallery .g-lightbox .g-modal-prev{left:16px;right:auto}
#alm-gallery .g-lightbox .g-modal-next{right:16px;left:auto}
#alm-gallery .g-lightbox .g-modal-prev svg,
#alm-gallery .g-lightbox .g-modal-next svg{width:26px;height:26px;pointer-events:none}
#alm-gallery .g-lightbox .g-modal-prev:hover,
#alm-gallery .g-lightbox .g-modal-next:hover{background:rgba(101,75,175,.8)}
@media(hover:none){
  #alm-gallery .g-overlay-nav button{opacity:.88;background:rgba(27,25,58,.46)}
}
@media(max-width:810px){
  #alm-gallery .g-overlay-nav button{width:44px;height:44px}
  #alm-gallery .g-overlay-nav .g-overlay-prev{left:8px}
  #alm-gallery .g-overlay-nav .g-overlay-next{right:8px}
  #alm-gallery .g-overlay-nav button svg{width:21px;height:21px}
  #alm-gallery .g-thumbs button{flex-basis:175px}
}
@media(max-width:450px){
  #alm-gallery .g-overlay-nav button{width:39px;height:39px}
  #alm-gallery .g-thumbs button{flex-basis:156px}
  #alm-gallery .g-lightbox .g-modal-prev{left:5px}
  #alm-gallery .g-lightbox .g-modal-next{right:5px}
}
@media(prefers-reduced-motion:reduce){
  #alm-gallery .g-overlay-nav button,
  #alm-gallery .g-thumbs button{transition:none}
}


/* ALM discovery selector — three luminous illustrated cards. */
#alm-gallery .g-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;margin:8px 0 21px;align-items:stretch;
}
#alm-gallery .g-tabs button{
  --tab-glow:183,151,255;
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-start;
  gap:11px;min-width:0;min-height:100px;padding:17px 16px;text-align:left;
  border-radius:18px;border:1px solid rgba(146,133,198,.47);
  background:linear-gradient(125deg,rgba(var(--tab-glow),.1),rgba(27,32,67,.96) 57%,rgba(18,22,46,.98));
  box-shadow:0 9px 28px rgba(4,5,21,.18),inset 0 1px 0 rgba(242,236,255,.055);
  color:#f3efff;
  overflow:hidden;
  transform:translateY(0);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;
}
#alm-gallery .g-tabs button:nth-child(2){--tab-glow:123,184,253}
#alm-gallery .g-tabs button:nth-child(3){--tab-glow:243,156,220}
#alm-gallery .g-tabs button::before{display:none!important;content:none!important}
#alm-gallery .g-tabs button::after{
  content:"";position:absolute;pointer-events:none;z-index:-1;inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 95% 4%,rgba(var(--tab-glow),.2),transparent 45%),
    linear-gradient(100deg,transparent 28%,rgba(255,255,255,.035) 52%,transparent 76%);
  opacity:.73;transition:opacity .22s ease;
}
#alm-gallery .g-tabs button:hover{
  border-color:rgba(var(--tab-glow),.82);
  box-shadow:0 13px 30px rgba(4,6,26,.28),0 0 20px rgba(var(--tab-glow),.13),inset 0 1px 0 rgba(255,255,255,.13);
  transform:translateY(-3px);
}
#alm-gallery .g-tabs button:hover::after{opacity:1}
#alm-gallery .g-tabs button[aria-selected="true"]{
  border-color:rgba(var(--tab-glow),.96);
  background:linear-gradient(118deg,rgba(var(--tab-glow),.29),rgba(40,36,82,.97) 58%,rgba(21,28,60,.97));
  box-shadow:0 14px 31px rgba(5,7,29,.26),0 0 0 1px rgba(var(--tab-glow),.15),
   inset 0 1px 0 rgba(251,247,255,.16),inset 0 -3px 0 rgba(var(--tab-glow),.76);
}
#alm-gallery .g-tab-number{
  flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  border:1px solid rgba(var(--tab-glow),.64);
  background:linear-gradient(145deg,rgba(var(--tab-glow),.22),rgba(var(--tab-glow),.045));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13);
  color:#f5dfae;font:700 1rem/1 Georgia,serif;letter-spacing:-.06em;
}
#alm-gallery .g-tab-icon{
  flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;
  background:linear-gradient(140deg,rgba(var(--tab-glow),.27),rgba(var(--tab-glow),.09));
  border:1px solid rgba(var(--tab-glow),.31);
  color:rgb(var(--tab-glow));box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
#alm-gallery .g-tab-icon svg{display:block;width:24px;height:24px}
#alm-gallery .g-tab-copy{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;flex:1}
#alm-gallery .g-tab-title{
  color:#fff9ff;font-size:clamp(.86rem,1vw,.98rem);font-weight:750;line-height:1.3;
  overflow-wrap:anywhere;text-wrap:balance;
}
#alm-gallery .g-tab-desc{
  color:#b5afd8;font-size:.74rem;line-height:1.4;overflow-wrap:anywhere;
}
#alm-gallery .g-tabs button[aria-selected="true"] .g-tab-desc{color:#e4d9fa}
#alm-gallery .g-tab-corner{
  flex:none;display:grid;place-items:center;width:22px;height:22px;color:rgba(209,190,255,.66);
  transition:transform .22s ease,color .22s ease
}
#alm-gallery .g-tab-corner svg{width:17px;height:17px}
#alm-gallery .g-tabs button:hover .g-tab-corner{transform:translateX(3px);color:#fff}
#alm-gallery .g-tabs button:focus-visible{outline:3px solid rgba(var(--tab-glow),.95);outline-offset:3px}
@media(min-width:651px) and (max-width:1100px){
  #alm-gallery .g-tabs{gap:9px}
  #alm-gallery .g-tabs button{gap:8px;padding:12px 10px;min-height:90px}
  #alm-gallery .g-tab-number{width:25px;height:25px;font-size:.85rem}
  #alm-gallery .g-tab-icon{width:36px;height:36px;border-radius:11px}
  #alm-gallery .g-tab-icon svg{width:19px;height:19px}
  #alm-gallery .g-tab-title{font-size:.81rem}
  #alm-gallery .g-tab-desc{font-size:.68rem}
  #alm-gallery .g-tab-corner{display:none}
}
@media(max-width:650px){
  #alm-gallery .g-tabs{display:grid;grid-template-columns:1fr;gap:10px}
  #alm-gallery .g-tabs button{min-height:75px;gap:13px;padding:12px 16px}
  #alm-gallery .g-tab-number{width:31px;height:31px}
  #alm-gallery .g-tab-icon{width:42px;height:42px}
  #alm-gallery .g-tab-title{font-size:1rem}
  #alm-gallery .g-tab-desc{font-size:.79rem}
}
@media(prefers-reduced-motion:reduce){
  #alm-gallery .g-tabs button,
  #alm-gallery .g-tabs button::after,
  #alm-gallery .g-tab-corner{transition:none}
  #alm-gallery .g-tabs button:hover{transform:none}
}
