/* =========================================================
   SoftPhoto – Unified Photo Card Component
   Canonical photo card for Albums, Forums, Events, Galleries
   ========================================================= */
.softfoto-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.softfoto-card {
background: #fffdf6;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
padding: 10px 10px 14px;
display: flex;
flex-direction: column;
height: 100%;
}


.softfoto-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 190px;
  object-fit: contain;              /* SHOW FULL IMAGE */
  background-color: var(--photo-matte, #e6e0cf); /*photo card background */
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}

/* ======================================================
   SoftFoto Lightbox
   ====================================================== */

.softfoto-lightbox {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}

.softfoto-lightbox-backdrop {
position: absolute;
inset: 0;
background: rgba(0,0,0,.85);
}

.softfoto-lightbox-inner {
position: relative;
z-index: 2;
max-width: 90vw;
max-height: 90vh;
}

.softfoto-lightbox-inner img {
max-width: 85vw;
max-height: 85vh;
border-radius: 8px;
box-shadow: 0 20px 50px rgba(0,0,0,.6);
}

.softfoto-lightbox-close {
position: absolute;
top: -14px;
right: -14px;
width: 32px;
height: 32px;

display: flex;
align-items: center;
justify-content: center;

border: none;
border-radius: 50%;
background: white;

font-size: 20px;
font-weight: 600;
color: #333;      /* ← THIS FIXES IT */

cursor: pointer;
z-index: 10;
}
/* clickable photo cue */

.softfoto-img {
    cursor: zoom-in;
}

/* subtle hover lift like album cards */

.softfoto-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.softfoto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}