/* stamps.css — the guestbook window (stamps.js): everyone's stamps, and the stamp maker's frame */

.stamps {
    padding: 24px 28px 40px;
    font-family: 'Circular Std', sans-serif;
    font-size: 13px;
    line-height: 16px;
    text-transform: lowercase;
    color: #111;
}

/* The count and the make / edit button, along the top */
.stamps__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.stamps__count { color: #888; }

.stamps__btn {
    font: inherit;
    text-transform: lowercase;
    color: #111;
    background: #fff;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
}
.stamps__btn:hover { background: #111; color: #fff; }
.stamps__btn--quiet { border-color: #ddd; }
.stamps__btn--quiet:hover { background: #111; color: #fff; border-color: #111; } /* (black on hover, like the other buttons) */
.stamps__btn--solid { background: #111; color: #fff; }
.stamps__btn--solid:hover { background: #333; }
.stamps__btn:disabled { opacity: 0.5; cursor: default; }

/* Comes in as a project page's content does (projects.css → content-slide-up): a little slide up and
   a fade — once its photos are ready (stamps.js) */
.stamps { opacity: 0; }
.stamps.visible { animation: content-slide-up 0.55s ease-out both; }

.stamps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(149px, 1fr));
    gap: 28px 20px;
    justify-items: center;
}


/* only the stamps on screen are laid out and drawn (hundreds of them) */
.stamps__cell { content-visibility: auto; contain-intrinsic-size: auto 149px auto 200px; }
/* (its "yours" inside the cell — what's outside a skipped cell isn't drawn) */
.stamps__cell.is-mine { position: relative; padding-bottom: 22px; }
.stamps__cell.is-mine::after {
    content: 'yours';
    position: absolute;
    left: 50%;
    top: 206px;
    translate: -50% 0;
    color: #888;
}

.stamps__note { color: #888; }

/* A stamp: 149 × 200 — the photo square, the perforated frame over it, number and name in its corner */
.stamp {
    position: relative;
    width: 149px;
    height: 200px;
    flex: none;
    text-transform: none;
}
.stamp__photo { position: absolute; overflow: hidden; }
.stamp__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stamp__frame { position: absolute; inset: 0; pointer-events: none; }
.stamp__num {
    position: absolute;
    right: 14px;
    bottom: 25px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.stamp__name {
    position: absolute;
    right: 14px;
    bottom: 12px;
    max-width: 116px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The maker: V1's, in a frame filling the window, a way back above it */
.stamps-maker {
    position: relative;
    height: 100%;
    display: flex;
}
.stamps-maker__frame {
    flex: 1;
    width: 100%;
    border: 0;
    display: block;
}
.stamps-maker__back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    font-size: 13px;
    font-family: 'Circular Std', sans-serif;
}
