diff --git a/themes/one-pager/assets/css/style.css b/themes/one-pager/assets/css/style.css
index 8129a16..ee733e8 100644
--- a/themes/one-pager/assets/css/style.css
+++ b/themes/one-pager/assets/css/style.css
@@ -1571,5 +1571,366 @@ button {
letter-spacing: 2px;
}
}
+/* ============================================
+ * MUSIC LIGHTBOX
+ * ============================================ */
+
+.music-lightbox {
+ display: none;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 10000;
+ background: rgba(0, 0, 0, 0.92);
+ backdrop-filter: blur(20px);
+ -webkit-backdrop-filter: blur(20px);
+ align-items: center;
+ justify-content: center;
+ animation: musicFadeIn 0.4s ease; /* Changed from fadeIn to musicFadeIn */
+}
+
+.music-lightbox.active {
+ display: flex;
+}
+
+.music-lightbox-background {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-size: cover;
+ background-position: center;
+ opacity: 0.15;
+ filter: blur(40px);
+ z-index: 0;
+}
+
+.music-lightbox-content {
+ position: relative;
+ z-index: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2rem;
+ max-width: 600px;
+ width: 90%;
+ padding: 2rem;
+}
+
+/* Album art image container */
+.music-lightbox-album-art {
+ position: relative;
+ width: 280px;
+ height: 280px;
+ border-radius: 12px;
+ overflow: hidden;
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
+ border: 2px solid var(--accent-yellow);
+ background: rgba(0, 0, 0, 0.3);
+}
+
+.music-lightbox-album-art img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+}
+
+/* Album name text in info section */
+.music-lightbox-album-name {
+ font-family: 'Poppins', sans-serif;
+ font-weight: 300;
+ font-size: 0.9rem;
+ color: rgba(255, 255, 255, 0.6);
+ letter-spacing: 1px;
+ margin-bottom: 1rem;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 100%;
+ text-align: center;
+}
+
+
+
+.music-lightbox-info {
+ text-align: center;
+ width: 100%;
+ color: white;
+}
+
+.music-lightbox-info h2 {
+ font-family: 'Poppins', sans-serif;
+ font-weight: 700;
+ font-size: 1.8rem;
+ letter-spacing: -1px;
+ margin-bottom: 0.3rem;
+ text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
+}
+
+.music-lightbox-artist {
+ font-family: 'Poppins', sans-serif;
+ font-weight: 400;
+ font-size: 1.1rem;
+ color: var(--accent-yellow);
+ letter-spacing: 2px;
+ margin-bottom: 0.2rem;
+}
+
+.music-lightbox-album {
+ font-family: 'Poppins', sans-serif;
+ font-weight: 300;
+ font-size: 0.9rem;
+ color: rgba(255, 255, 255, 0.6);
+ letter-spacing: 1px;
+ margin-bottom: 1rem;
+}
+
+.music-lightbox-progress {
+ display: flex;
+ align-items: center;
+ gap: 1rem;
+ width: 100%;
+ max-width: 400px;
+ margin: 0 auto 1rem;
+}
+
+.music-lightbox-time {
+ font-family: 'Poppins', sans-serif;
+ font-weight: 300;
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.6);
+ letter-spacing: 1px;
+ min-width: 40px;
+}
+
+.music-lightbox-progress-bar {
+ flex: 1;
+ height: 4px;
+ background: rgba(255, 255, 255, 0.2);
+ border-radius: 2px;
+ cursor: pointer;
+ position: relative;
+ transition: height 0.2s ease;
+}
+
+.music-lightbox-progress-bar:hover {
+ height: 6px;
+}
+
+.music-lightbox-progress-fill {
+ height: 100%;
+ background: var(--accent-yellow);
+ border-radius: 2px;
+ width: 0%;
+ transition: width 0.1s linear;
+ box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
+}
+
+.music-lightbox-controls {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 2rem;
+}
+
+.music-lightbox-control-btn {
+ background: none;
+ border: none;
+ color: white;
+ font-size: 1.8rem;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ padding: 0.5rem;
+ border-radius: 50%;
+ width: 60px;
+ height: 60px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ opacity: 0.7;
+}
+
+.music-lightbox-control-btn:hover {
+ opacity: 1;
+ transform: scale(1.1);
+ background: rgba(255, 255, 255, 0.1);
+}
+
+.music-lightbox-control-btn.play-btn {
+ background: var(--accent-yellow);
+ color: var(--accent-black);
+ font-size: 1.8rem;
+ width: 70px;
+ height: 70px;
+ opacity: 1;
+ box-shadow: 0 4px 30px rgba(255, 215, 0, 0.3);
+}
+
+.music-lightbox-control-btn.play-btn:hover {
+ transform: scale(1.1);
+ box-shadow: 0 8px 40px rgba(255, 215, 0, 0.5);
+}
+
+.music-lightbox-close {
+ position: fixed;
+ top: 20px;
+ right: 30px;
+ z-index: 10001;
+ background: none;
+ border: none;
+ color: white;
+ font-size: 2.5rem;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ opacity: 0.6;
+}
+
+.music-lightbox-close:hover {
+ opacity: 1;
+ transform: rotate(90deg);
+}
+
+/* Responsive music lightbox */
+@media (max-width: 768px) {
+ .music-lightbox-album {
+ width: 200px;
+ height: 200px;
+ }
+
+ .music-lightbox-info h2 {
+ font-size: 1.4rem;
+ }
+
+ .music-lightbox-control-btn {
+ width: 50px;
+ height: 50px;
+ font-size: 1.4rem;
+ }
+
+ .music-lightbox-control-btn.play-btn {
+ width: 60px;
+ height: 60px;
+ font-size: 1.6rem;
+ }
+
+ .music-lightbox-play-btn {
+ width: 60px;
+ height: 60px;
+ font-size: 2rem;
+ }
+
+ .music-lightbox-close {
+ font-size: 2rem;
+ top: 15px;
+ right: 20px;
+ }
+}
+
+@media (max-width: 480px) {
+ .music-lightbox-album {
+ width: 160px;
+ height: 160px;
+ }
+
+ .music-lightbox-info h2 {
+ font-size: 1.2rem;
+ }
+
+ .music-lightbox-controls {
+ gap: 1rem;
+ }
+
+ .music-lightbox-control-btn {
+ width: 40px;
+ height: 40px;
+ font-size: 1.2rem;
+ }
+
+ .music-lightbox-control-btn.play-btn {
+ width: 50px;
+ height: 50px;
+ font-size: 1.4rem;
+ }
+}
+
+@keyframes musicFadeIn {
+ from { opacity: 0; transform: scale(0.95); }
+ to { opacity: 1; transform: scale(1); }
+}
+
+/* Music card play overlay */
+.music-image-wrapper {
+ position: relative;
+ overflow: hidden;
+ border-radius: 8px;
+}
+
+.music-image {
+ width: 100%;
+ height: 200px;
+ object-fit: cover;
+ display: block;
+ transition: transform 0.3s ease;
+}
+
+.music-card:hover .music-image {
+ transform: scale(1.03);
+}
+
+.music-play-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.4);
+ opacity: 0;
+ transition: opacity 0.3s ease;
+ cursor: pointer;
+}
+
+.music-card:hover .music-play-overlay {
+ opacity: 1;
+}
+
+.music-play-circle {
+ width: 60px;
+ height: 60px;
+ border-radius: 50%;
+ background: var(--accent-yellow);
+ color: var(--accent-black);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 1.8rem;
+ border: 3px solid rgba(255, 255, 255, 0.3);
+ box-shadow: 0 4px 30px rgba(255, 215, 0, 0.3);
+ transition: all 0.3s ease;
+}
+
+.music-play-circle:hover {
+ transform: scale(1.1);
+ box-shadow: 0 8px 40px rgba(255, 215, 0, 0.5);
+}
+
+.music-card.clickable {
+ cursor: pointer;
+}
+
+.music-card.clickable .music-image {
+ cursor: pointer;
+}
+
+/* Hide default audio controls on card */
+.music-card audio {
+ display: none;
+}
/* ============ END CYBERPUNK FOOTER ============ */
diff --git a/themes/one-pager/assets/js/scripts.js b/themes/one-pager/assets/js/scripts.js
index 37cbdcf..ec69201 100644
--- a/themes/one-pager/assets/js/scripts.js
+++ b/themes/one-pager/assets/js/scripts.js
@@ -31,37 +31,13 @@ function isAllowedArtist(artist) {
}
// ============================================
-// 2. CUSTOM LIGHTBOX (UPDATED)
+// 2. PHOTO LIGHTBOX
// ============================================
let allPicturesArray = [];
let currentPhotoIndex = 0;
-// Helper function to create a picture element
-function createPictureElement(picture) {
- const item = document.createElement('div');
- item.className = 'photo-item';
- item.dataset.image = picture.url;
- item.dataset.alt = picture.alt;
- item.dataset.created = picture.created_at;
- item.dataset.pubkey = picture.pubkey || '';
-
- const date = new Date(picture.created_at * 1000);
- const dateStr = date.toLocaleDateString('en-US', {
- year: 'numeric', month: 'short', day: 'numeric'
- });
- item.dataset.date = dateStr;
-
- item.innerHTML = `
- ${picture.url ? `` : ''}
-
${artist}
` : ''} - ${album ? `${album}
` : ''} +${track.artist}
` : ''} + ${track.album ? `${track.album}
` : ''}Artist
+Album
+ +