/* ============================================================
   SplashArt Showcase 79 — Frontend Styles
   ============================================================ */

.splashart79-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.splashart79-wrapper:active {
    cursor: grabbing;
}

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

/* ── Lightbox ── */
.splashart79-lightbox {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.splashart79-lightbox.is-visible {
    opacity: 1;
}

.splashart79-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s, transform 0.2s;
}

.splashart79-lb-close:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.1) rotate(90deg);
}

/* Burst canvas behind the image */
.splashart79-lb-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10000;
}

.splashart79-lb-burst canvas {
    width: 100%;
    height: 100%;
}

.splashart79-lb-content {
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 88vw;
    max-height: 88vh;
    animation: splashart79-zoom-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splashart79-zoom-in {
    from { transform: scale(0.4) rotate(-6deg); opacity: 0; }
    to   { transform: scale(1)   rotate(0deg);  opacity: 1; }
}

.splashart79-lb-img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 8px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.7),
                0 0 0 3px rgba(255,255,255,0.15);
    display: block;
    object-fit: contain;
}

.splashart79-lb-caption {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── Tooltip hint ── */
.splashart79-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    pointer-events: none;
    letter-spacing: 0.04em;
    animation: splashart79-fade-hint 4s ease 1.5s forwards;
}

@keyframes splashart79-fade-hint {
    0%   { opacity: 1; }
    80%  { opacity: 0.45; }
    100% { opacity: 0; }
}

/* ── Focus ring on splash hover ── */
.splashart79-wrapper:focus-visible {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .splashart79-lb-img {
        max-height: 65vh;
    }
}
