/* Holographic Sphere Gallery 63 */

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

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

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

/* Gyroscope toggle button */
.hsg63-gyro-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: rgba(0, 229, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    padding: 8px;
    box-sizing: border-box;
}

.hsg63-gyro-btn:hover,
.hsg63-gyro-btn.active {
    background: rgba(0, 229, 255, 0.28);
    color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.hsg63-gyro-btn svg {
    width: 100%;
    height: 100%;
}

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

.hsg63-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 24, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: hsg63-fade-in 0.35s ease forwards;
}

.hsg63-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: hsg63-zoom-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hsg63-lightbox-img {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.25), 0 0 0 2px rgba(0, 229, 255, 0.35);
    display: block;
}

.hsg63-lightbox-info {
    text-align: center;
    color: #e0f7ff;
    font-family: sans-serif;
    max-width: 600px;
    padding: 0 16px;
}

.hsg63-lightbox-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.hsg63-lightbox-desc {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.5;
}

.hsg63-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    transition: background 0.2s;
    z-index: 2;
}

.hsg63-lightbox-close:hover {
    background: rgba(0, 229, 255, 0.28);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.hsg63-lightbox-close svg {
    width: 100%;
    height: 100%;
}

/* Lightbox closing animation */
.hsg63-lightbox.closing .hsg63-lightbox-content {
    animation: hsg63-zoom-out 0.3s cubic-bezier(0.55, 0, 0.85, 0.06) forwards;
}

.hsg63-lightbox.closing .hsg63-lightbox-backdrop {
    animation: hsg63-fade-out 0.3s ease forwards;
}

@keyframes hsg63-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hsg63-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes hsg63-zoom-in {
    from { opacity: 0; transform: scale(0.7) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes hsg63-zoom-out {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to   { opacity: 0; transform: scale(0.6) translateY(40px); }
}
