/* FanWall 5.9 Tweaks v1.0.8 (uniform tiles + prior fixes) */

/* Grid: 5 per row desktop, 2 per row mobile; no gutters */
.fanwall-grid{display:grid;gap:0}
.fanwall-grid.fanwall-divi{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:980px){.fanwall-grid.fanwall-divi{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Uniform square tiles so every card matches height */
.fanwall-grid .fanwall-card{box-shadow:none!important;background:transparent!important;position:relative}
.fanwall-grid .fanwall-card:hover{box-shadow:none!important}
.fanwall-grid .fanwall-img{
  display:block;width:100%;
  /* Force square window and crop inside */
  aspect-ratio:1/1;height:auto;object-fit:cover;
  transition:transform .25s ease, box-shadow .2s ease
}
.fanwall-grid .fanwall-card:hover .fanwall-img{transform:scale(1.15)!important;box-shadow:0 12px 26px rgba(0,0,0,.20)!important}

/* Caption bar: centered text, white, 1px black border, no radius (single line) */
.fanwall-grid .fanwall-caption{
  background:#fff;border:1px solid #000;border-radius:0;
  margin:6px 0 2px;padding:6px 8px;
  font:400 14px/1.2 Arial, Helvetica, sans-serif;
  white-space:nowrap;overflow:hidden;text-align:center
}

/* Heart row (pulled up) + extra spacing between rows */
.fanwall-grid .fanwall-actions{
  display:flex;justify-content:center;align-items:center;gap:6px;
  margin-top:-30px;padding-bottom:30px
}

/* Heart-only like UI */
.fanwall-grid .fanwall-like,
.fanwall-grid .fanwall-like.et_pb_button{
  background:transparent!important;border:none!important;padding:0!important;
  box-shadow:none!important;background-image:none!important;
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:16px
}
.fanwall-grid .fanwall-like .fanwall-heart{font-size:1.35em;line-height:1;color:#f472b6}
.fanwall-grid .fanwall-like.liked .fanwall-heart{color:#ef4444}
.fanwall-grid .fanwall-like .fanwall-like-count{font-size:1em;font-weight:700;color:#6b7280}
.fanwall-grid .fanwall-like:before,.fanwall-grid .fanwall-like:after{display:none!important;content:none!important}

/* Divi: stack request-code form fields (button not inline) */
.fanwall-form.fanwall-divi{display:grid;grid-template-columns:1fr;gap:10px;max-width:420px}
.fanwall-form.fanwall-divi input[type="email"],
.fanwall-form.fanwall-divi .et_pb_button{width:100%;display:block}
/* Stable dark-grey buttons */
.fanwall-form.fanwall-divi .et_pb_button{
  background:#2f2f2f!important;color:#fff!important;border:1px solid #3a3a3a!important;border-radius:8px!important;
  padding:12px 16px!important;min-height:44px;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;
  box-shadow:none!important;transition:background-color .15s ease,color .15s ease!important;margin:0!important
}
.fanwall-form.fanwall-divi .et_pb_button:hover{background:#5a5a5a!important;color:#fff!important;border-color:#3a3a3a!important}
.fanwall-form.fanwall-divi .et_pb_button:after,.fanwall-form.fanwall-divi .et_pb_button:before{display:none!important;content:none!important}

/* Upload caption input */
.fanwall-form textarea[name*="caption"]{
  font-family:Arial, Helvetica, sans-serif!important;
  height:44px;min-height:44px;max-height:44px;resize:none
}
.fanwall-cap-counter{font:400 12px/1 Arial,Helvetica,sans-serif;margin-top:4px;text-align:right;color:#6b7280;max-width:360px}
.fanwall-cap-counter ~ .fanwall-cap-counter{display:none!important}
