/* ============================================================
   TextMorph73 – Front-End Styles
   ============================================================ */

.tm73-canvas-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.tm73-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
}

/* ── Lightbox ── */
.tm73-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm73-lightbox.tm73-lb-open { display: flex !important; }

.tm73-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
    animation: tm73FadeIn 0.25s ease;
}
.tm73-lb-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: tm73ScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tm73-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.tm73-lb-title {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.tm73-lb-close {
    position: absolute;
    top: -44px;
    right: -4px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.tm73-lb-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg) scale(1.1);
}

@keyframes tm73FadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes tm73ScaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tm73-canvas-wrap { height: 400px; }
}
@media (max-width: 768px) {
    .tm73-canvas-wrap { height: 320px; }
}
