<>
/* ─── 1. tunables ─────────────────────────────────────────── */
:root{
--cube-size: 160px; /* every face is square: 160 × 160 */
--half: calc(var(--cube-size) / 2);
}
/* ─── 2. advert shell ─────────────────────────────────────── */
.epaper-ad{
max-width: 100% !important; /* little gutter */
margin: 0 auto;
text-align: center;
font-family: system-uisans-serif;
background: #F0F0F0;
padding-top: 3rem !important;
padding: 1.5rem 1rem 2rem;
border-radius: 8px;
}
/* ─── 3. perfectly centred cube ───────────────────────────── */
.scene{
width: var(--cube-size);
height: 250px;
margin: 0 auto 1rem;
perspective: 900px; /* depth */
position: relative;
}
.cube{
width: 100%;
height: 100%;
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%-50%); /* ⇐ put its own centre on the pole */
transform-: preserve-3d;
transform-origin: center center; /* spin around its midpoint */
animation: spin 14s linear infinite;
}
@keyframes spin{
from{ transform: translate(-50%-50%) rotateY( 0deg); }
to { transform: translate(-50%-50%) rotateY(-360deg); }
}
/* ── cube faces ── */
.cube-face{
position: absolute;
width: 100%; height: 100%;
backface-visibility: hidden;
border-radius: 4px;
overflow: hidden;
}
.front { transform: translateZ(var(--half)); }
.back { transform: rotateY(180deg) translateZ(var(--half)); }
.right { transform: rotateY( 90deg) translateZ(var(--half)); }
.left { transform: rotateY(-90deg) translateZ(var(--half)); }
.cube-face img{
width: 100%;
height: 100%;
object-fit: cover;
}
/* ─── 4. text & button ───────────────────────────────────── */
.headline{ color:#ff0100; font-size: 1.3rem; font-weight: 800; margin-top: 6px !important ; }
.blurb { color: black; font-size: 1rem; line-height: 1.35; margin-bottom: 1rem; }
.cta{
display: inline-block;
padding: .6rem 1.5rem;
background: #ff0100;
color: #fff;
font-weight: 700;
text-decoration: none;
border-radius: 4px;
transition: background .18s ease-in-out;
}
.cta:hover{ background: #a50d26; }
>
Read PUNCH Anywhere
Unlock the full print replica on any device - every pageevery day. Subscribe now for instant e-edition access.
Subscribe