* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: "Fredoka", Arial, sans-serif;
}

body {
  font-family: "Fredoka", Arial, sans-serif;
  color: #ffffff
}

.gallery {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none
}

.gallery.dragging {
  cursor: grabbing
}

#gpu,
#fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block
}

#fallback {
  pointer-events: none;
  display: none
}

.fallback-card {
  position: absolute;
  overflow: hidden;
  background: transparent;
  will-change: transform, width, height
}

.fallback-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  will-change: transform
}

.topline,
.bottomline {
  position: absolute;
  left: clamp(18px, 3vw, 48px);
  right: clamp(18px, 3vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
  font-size: 1rem;
  /* letter-spacing: .16em; */
  font-weight: 600
}

.topline {
  top: 28px
}

.bottomline {
  bottom: 28px
}

@media(max-width:600px) {

  /* .topline,
  .bottomline {
    font-size: 8px;
    letter-spacing: .08em
  }

  .topline {
    top: 18px
  }

  .bottomline {
    bottom: 18px
  } */
}
/* Progressive preview and minimal loader */
#gpu { transition: none; }
#fallback { display:block; transition: none; }
#loader { position:absolute; z-index:20; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; transition:opacity .55s ease; }
#loader.is-done { opacity:0; }
.loader-inner { width:min(260px,65vw); color:#ffffff; padding:18px 20px; background:transparent; }
.loader-title { display:block; font-size:clamp(22px,3vw,32px); letter-spacing:.025em; margin-bottom:15px; }
.loader-track { height:2px; width:100%; background:rgba(255,255,255,.35); overflow:hidden; }
#loader-fill { width:0%; height:100%; background:#ffffff; transition:width .25s ease; }
.loader-meta { display:flex; justify-content:space-between; margin-top:9px; font-size:13px; letter-spacing:.06em; }
