/* ========================================= */
/* WEENSWORLD RECENT ART — FIXED BOX VIEWPORT */
/* Box stays still; art slides inside         */
/* No crop (contain)                          */
/* Artist + arrows overlay, semi-transparent  */
/* ========================================= */

.ww-recent-wrap{
width:100%;
max-width:720px; /* pick your visual size */
margin:0 auto;
padding:0;
}

/* sizing knobs */
.ww-recent-wrap{
  --ww-box-w: 100%;
  --ww-box-h: clamp(260px, 52vw, 520px);
  --ww-radius: 16px;
}

/* The FIXED box container (does not scroll offscreen) */
.ww-recent-carousel{
  position:relative;
  width:var(--ww-box-w);
  height:var(--ww-box-h);
  margin:0 auto;

  border-radius:var(--ww-radius);
  overflow:hidden;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Strip is the sliding track INSIDE the box */
.ww-recent-strip{
  width:100%;
  height:100%;

  display:flex;
  overflow:hidden;              /* clip anything outside the box */
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;

  scrollbar-width:none;
}
.ww-recent-strip::-webkit-scrollbar{ display:none; }

/* Each item is EXACTLY one box wide/tall */
.ww-recent-item{
  flex: 0 0 100%;
  width:100%;
  height:100%;
  scroll-snap-align:start;

  position:relative;            /* overlay anchor */
  display:block;
  padding:0;                    /* no external padding that shifts box */
  margin:0;
}

/* Make the link fill the box */
.ww-recent-thumb{
  display:block;
  width:100%;
  height:100%;
}

/* NO CROP: fit whole image in box */
.ww-recent-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;           /* key: never crop */
  object-position:center;
}

/* Placeholder */
.ww-recent-img--placeholder{
  width:100%;
  height:100%;
  background: rgba(255,255,255,0.06);
}

/* Hide title (only show artist overlay) */
.ww-recent-arttitle{ display:none; }

/* Overlay container: sits on top of the art */
.ww-recent-meta{
  position:absolute;
  inset:0;
  pointer-events:none;          /* clicks go to the image link */
  z-index:5;
}

/* Artist pill (bottom-left) */
.ww-recent-artist{
  display: flex;
  justify-content:center;

  padding:8px 10px;
  border-radius:999px;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);

  /* hide "by" text without touching PHP */
  font-size:0;
  line-height:0;

  opacity:0.9;
  pointer-events:auto;          /* allow clicking the artist link */
}

.ww-recent-artist a{
  font-size:14px;
  line-height:1;
  font-weight:600;
  color:inherit;
  text-decoration:none;
  opacity:0.95;
}

.ww-recent-artist a:hover{
  text-decoration:underline;
  opacity:1;
}

/* Arrows: overlay ON TOP of the art, inside the same fixed box */
.ww-recent-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);

  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(4px);

  color:inherit;
  font-size:26px;
  line-height:1;
  cursor:pointer;

  z-index:10;
  opacity:0.85;
}

.ww-recent-nav:hover{
  opacity:1;
  background: rgba(0,0,0,0.42);
}

.ww-prev{ left:12px; }
.ww-next{ right:12px; }

/* Optional: only show controls stronger on hover */
.ww-recent-carousel:hover .ww-recent-nav,
.ww-recent-carousel:hover .ww-recent-artist{
  opacity:1;
}

