Add Gallery page (per-event albums + lightbox); remove video-thumbnail blur
- New multilingual Gallery page (en/mk/si) with 9 event albums and a keyboard-accessible lightbox (prev/next scoped per album) - Reuses existing event photos; links each album to its event post - New css/pages/_gallery.css + setupGallery() lightbox in main.js - "Gallery" link added to the "What We Do" nav (desktop + mobile) site-wide - Gallery URLs added to sitemap.xml with hreflang - Landing "Every Student Has a Story": removed backdrop blur on the video thumbnail, kept the bluish gradient tint Note: images/original/ (458 MB of raw source photos, gitignored + unused by the site) moved out of the working tree to reclaim disk. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f5dfd8830e
commit
d085e3376a
218 files changed
+1837
-2
No files matched your search
@@ -0,0 +1,88 @@
|
||||
/* ==========================================================================
|
||||
Gallery page (albums per event + lightbox)
|
||||
========================================================================== */
|
||||
.gallery-page { padding-top: 80px; background: #FFFFFF; }
|
||||
|
||||
.gallery-hero {
|
||||
background: linear-gradient(180deg, #F1F7F9 0%, #FFFFFF 100%);
|
||||
padding: 56px 24px 40px;
|
||||
text-align: center;
|
||||
}
|
||||
.gallery-hero-inner { max-width: 760px; margin: 0 auto; }
|
||||
.gallery-eyebrow {
|
||||
font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
|
||||
text-transform: uppercase; color: #2D738C; margin: 0 0 10px;
|
||||
}
|
||||
.gallery-hero h1 {
|
||||
font-size: clamp(32px, 5vw, 48px); line-height: 1.12;
|
||||
color: #101828; margin: 0 0 14px; font-weight: 700;
|
||||
}
|
||||
.gallery-lead { font-size: 18px; line-height: 28px; color: #475467; margin: 0; }
|
||||
|
||||
.gallery-albums { max-width: 1120px; margin: 0 auto; padding: 24px 24px 80px; }
|
||||
.album { margin-top: 52px; }
|
||||
.album:first-child { margin-top: 24px; }
|
||||
.album-head {
|
||||
display: flex; align-items: baseline; justify-content: space-between;
|
||||
gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
|
||||
border-bottom: 1px solid #EAECF0; padding-bottom: 12px;
|
||||
}
|
||||
.album-head h2 { font-size: 22px; color: #101828; margin: 0; font-weight: 700; }
|
||||
.album-link {
|
||||
color: #2D738C; font-weight: 600; font-size: 15px;
|
||||
text-decoration: none; white-space: nowrap;
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.album-link:hover { text-decoration: underline; }
|
||||
.album-link i { font-size: 12px; }
|
||||
|
||||
.gallery-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.gallery-thumb {
|
||||
padding: 0; border: none; background: #EEF2F4;
|
||||
border-radius: 10px; overflow: hidden; cursor: pointer;
|
||||
aspect-ratio: 4 / 3; display: block;
|
||||
}
|
||||
.gallery-thumb img {
|
||||
width: 100%; height: 100%; object-fit: cover; display: block;
|
||||
transition: transform 0.4s ease;
|
||||
}
|
||||
.gallery-thumb:hover img { transform: scale(1.05); }
|
||||
.gallery-thumb:focus-visible { outline: 2px solid #2D738C; outline-offset: 2px; }
|
||||
|
||||
/* ---------- Lightbox ---------- */
|
||||
.lightbox {
|
||||
position: fixed; inset: 0; z-index: 2000;
|
||||
display: none; align-items: center; justify-content: center;
|
||||
background: rgba(9, 18, 26, 0.92); padding: 24px;
|
||||
}
|
||||
.lightbox.is-open { display: flex; }
|
||||
.lightbox-img {
|
||||
max-width: 92vw; max-height: 82vh; object-fit: contain;
|
||||
border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.lightbox-close, .lightbox-prev, .lightbox-next {
|
||||
position: absolute; background: rgba(255, 255, 255, 0.12);
|
||||
color: #FFFFFF; border: none; cursor: pointer; border-radius: 50%;
|
||||
width: 48px; height: 48px; font-size: 24px; line-height: 1;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
|
||||
.lightbox-close { top: 20px; right: 20px; font-size: 28px; }
|
||||
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
|
||||
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
|
||||
.lightbox-caption {
|
||||
position: absolute; bottom: 18px; left: 0; right: 0;
|
||||
text-align: center; color: rgba(255, 255, 255, 0.85);
|
||||
font-size: 14px; padding: 0 24px;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
|
||||
.lightbox-prev { left: 8px; }
|
||||
.lightbox-next { right: 8px; }
|
||||
.lightbox-close { top: 12px; right: 12px; }
|
||||
}
|
||||
@@ -178,7 +178,6 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(127.76deg, rgba(19, 49, 60, 0.92) -13.16%, rgba(39, 77, 90, 0.08) 98.5%);
|
||||
backdrop-filter: blur(6px);
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user