/* ==========================================================================
   Photo Shop Bridge – styles
   ========================================================================== */

/* Every Twofold gallery style (1–7) wraps thb_render_photo() output in a
   <figure>, so this single selector covers the "Buy" button overlay for all
   of them without depending on which layout is active. */
figure {
    position: relative;
}

/* Positioned directly below the theme's own "+" zoom icon (which sits ~20px
   from top/right, 30x30px) so both read as one vertical icon stack in the
   same corner, instead of colliding side by side. */
.psb-buy-btn {
    position: absolute;
    top: 65px;
    right: 35px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

figure:hover .psb-buy-btn,
.psb-buy-btn:focus {
    opacity: 1;
    transform: scale(1);
}

.psb-buy-btn:hover {
    background: #fff;
}

/* ── Lightbox toolbar icon ─────────────────────────────────────────────── */

.lg-toolbar .psb-lg-buy {
    display: none; /* shown via JS once we know the current slide has a match */
    font-size: 18px;
}
