
/* V28: squarish cards and a centered image stage. The 3D book is just slightly to the left
   to account for the visible spine, matching the supplied reference image. */
#editor .cover-template-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
#editor .cover-template-choice,
#editor .cover-template-choice.active{
  aspect-ratio:1 / 1.26;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:5px;
  padding:8px 7px 10px;
  border-radius:8px;
  box-shadow:none!important;
}
#editor .cover-template-choice.active{padding:7px 6px 9px}
#editor .cover-template-choice .cover-thumb::before{content:none!important;display:none!important}
#editor .cover-template-choice .cover-thumb{
  width:100%;
  height:auto;
  aspect-ratio:auto!important;
  position:relative;
  display:block;
  flex:1 1 0;
  min-height:0!important;
  border:none!important;
  background:white!important;
  overflow:hidden;
}
#editor .cover-template-choice .mockbook{
  left:50%;
  top:50%;
  width:62%;
  transform:translate(-54%,-50%) perspective(400px) rotateY(-17deg) rotateZ(-2deg);
  box-shadow:none!important;
}
#editor .cover-template-choice .mockbook::before{box-shadow:none!important}
#editor .cover-template-choice .template-name{
  display:block;
  flex:0 0 auto;
  margin:0;
  padding:1px 2px 0;
  font:400 16px/1.12 "Londrina Solid",Impact,"Arial Narrow",sans-serif!important;
  text-align:center!important;
  text-transform:none;
  letter-spacing:0;
  color:#303843;
}
@media(max-width:730px){
 #editor .cover-template-choice,
 #editor .cover-template-choice.active{aspect-ratio:1 / 1.26;gap:4px;padding:7px 6px 9px}
 #editor .cover-template-choice.active{padding:6px 5px 8px}
 #editor .cover-template-choice .mockbook{width:61%}
 #editor .cover-template-choice .template-name{font-size:15px!important}
}
