.bg-layer { opacity: 0; transition: opacity 0.9s ease-in-out; animation: bgScroll 40s linear infinite; }
.bg-layer.visible { opacity: 1; }
.bg-layer.full-photo { animation: none; }

.ui-btn {
    background: rgba(18, 18, 30, 0.85);
    color: #b8c4ff;
    border: 1px solid #00f3ff;
    transition: all 0.3s ease;
}

.ui-btn:hover { box-shadow: 0 0 12px rgba(0, 243, 255, 0.6); color: #ffffff; }
.ui-btn.active { background: #00f3ff; color: #090910; box-shadow: 0 0 15px rgba(0, 243, 255, 0.8); }

.card {
    background: rgba(18, 18, 30, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid #00f3ff;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4), 0 0 50px rgba(255, 0, 234, 0.25);
    animation: neonPulse 4s ease-in-out infinite alternate;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }
@media (max-width: 600px) { .card.photo-caption.hidden { transform: translateX(-50%) scale(0.95); } }

h1 {
    background: linear-gradient(90deg, #ff0055, #ffaa00, #00ff88, #00f3ff, #cc00ff, #ff0055);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowFlow 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.35));
}

p { color: #b8c4ff; text-shadow: 0 0 8px rgba(184, 196, 255, 0.4); }

.bg-thumbs { background: rgba(18, 18, 30, 0.75); backdrop-filter: blur(6px); border: 1px solid rgba(0, 243, 255, 0.3); }
.thumb { border: 2px solid transparent; opacity: 0.7; transition: all 0.25s ease; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.active { opacity: 1; border-color: #00f3ff; box-shadow: 0 0 12px rgba(0, 243, 255, 0.8); }

@keyframes bgScroll { 0% { background-position: 0 0; } 100% { background-position: 1000px 1000px; } }
@keyframes rainbowFlow { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes neonPulse {
    0% { border-color: #00f3ff; box-shadow: 0 0 20px rgba(0, 243, 255, 0.45), 0 0 40px rgba(0, 243, 255, 0.2); }
    100% { border-color: #ff00ea; box-shadow: 0 0 25px rgba(255, 0, 234, 0.5), 0 0 50px rgba(255, 0, 234, 0.25); }
}
