Gallery: distinct album cards, blue tint, hover lift, whole card links to story

- Each album is now a bordered card with a resting shadow and clear separation
- Blue brand tint over the cover photos; fades on hover so images brighten
- Whole card lifts with a stronger shadow on hover (album-level, not per image)
- Clicking anywhere on a card opens the event story page (removed the lightbox)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
popovskikandClaude Opus 4.8 committed 2026-08-03 14:49:28 +02:00
1 parent d048226daf
commit 24c77e6171
5 files changed
+345 -515

No files matched your search

+45 -67
View File
@@ -1,5 +1,5 @@
/* ==========================================================================
Gallery page — Pinterest-style album collage cards + lightbox
Gallery page — album collage cards (whole card links to the event story)
========================================================================== */
.gallery-page { padding-top: 80px; background: #FFFFFF; }
@@ -19,99 +19,77 @@
}
.gallery-lead { font-size: 18px; line-height: 28px; color: #475467; margin: 0; }
/* ---------- Album grid (multiple collage cards per row) ---------- */
/* ---------- Album grid ---------- */
.gallery-albums {
max-width: 1180px; margin: 0 auto; padding: 28px 24px 88px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 28px 24px;
gap: 30px 26px;
}
.album-card { display: flex; flex-direction: column; }
/* Each album is a distinct, hoverable card */
.album-card {
border-radius: 16px;
background: #FFFFFF;
border: 1px solid #E7ECEF;
box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
overflow: hidden;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.album-card:hover {
transform: translateY(-6px);
box-shadow: 0 22px 44px rgba(16, 24, 40, 0.18);
border-color: #BCD8E0;
}
.album-link-wrap { display: block; text-decoration: none; color: inherit; }
/* The collage: 1 large tile (left, full height) + 2 stacked tiles (right).
Extra photos stay in the DOM (for the lightbox) but are hidden here. */
.album-card .gallery-grid {
/* The collage: 1 large tile (left) + 2 stacked tiles (right) */
.album-cover {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 4px;
height: 230px;
border-radius: 14px;
overflow: hidden;
gap: 3px;
height: 220px;
background: #EEF2F4;
}
.album-card .gallery-thumb {
padding: 0; border: none; background: #EEF2F4;
cursor: pointer; overflow: hidden; position: relative;
width: 100%; height: 100%;
}
.album-card .gallery-thumb img {
.album-tile { position: relative; overflow: hidden; }
.album-tile img {
width: 100%; height: 100%; object-fit: cover; display: block;
transition: transform 0.4s ease;
transition: transform 0.5s ease;
}
.album-card .gallery-thumb:hover img { transform: scale(1.05); }
.album-card .gallery-thumb:focus-visible { outline: 2px solid #2D738C; outline-offset: -2px; }
.album-card .gallery-grid > .gallery-thumb:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
.album-card .gallery-grid > .gallery-thumb:nth-child(2) { grid-column: 2; grid-row: 1; }
.album-card .gallery-grid > .gallery-thumb:nth-child(3) { grid-column: 2; grid-row: 2; }
.album-card .gallery-grid > .gallery-thumb:nth-child(n+4) { display: none; }
.album-tile--main { grid-row: 1 / 3; grid-column: 1; }
.album-card:hover .album-tile img { transform: scale(1.04); }
/* "+N more" overlay on the last visible tile */
/* Blue brand tint over every photo; fades on hover so the images brighten */
.album-tile::after {
content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
background: linear-gradient(155deg, rgba(45, 115, 140, 0.34) 0%, rgba(21, 60, 78, 0.12) 60%, rgba(21, 60, 78, 0.04) 100%);
transition: opacity 0.3s ease;
}
.album-card:hover .album-tile::after { opacity: 0.35; }
/* "+N more" overlay on the last visible tile (sits above the tint) */
.cover-more-badge {
position: absolute; inset: 0;
position: absolute; inset: 0; z-index: 2;
display: flex; align-items: center; justify-content: center;
background: rgba(9, 18, 26, 0.55);
color: #FFFFFF; font-size: 22px; font-weight: 700;
letter-spacing: 0.01em; pointer-events: none;
background: rgba(9, 18, 26, 0.5);
color: #FFFFFF; font-size: 22px; font-weight: 700; letter-spacing: 0.01em;
}
.album-info { padding: 12px 2px 0; }
.album-info h3 { font-size: 17px; line-height: 1.3; margin: 0 0 3px; font-weight: 700; }
.album-info h3 a { color: #101828; text-decoration: none; }
.album-info h3 a:hover { color: #2D738C; }
.album-info { padding: 14px 16px 16px; }
.album-info h3 { font-size: 17px; line-height: 1.3; margin: 0 0 3px; font-weight: 700; color: #101828; transition: color 0.2s ease; }
.album-card:hover .album-info h3 { color: #2D738C; }
.album-meta {
font-size: 13px; color: #667085; margin: 0;
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.album-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #D0D5DD; }
.album-meta a { color: #2D738C; text-decoration: none; font-weight: 600; }
.album-meta a:hover { text-decoration: underline; }
/* ---------- 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;
}
.album-meta .read-link { color: #2D738C; font-weight: 600; }
@media (max-width: 600px) {
.gallery-albums { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 24px 16px 72px; }
.album-card .gallery-grid { height: 150px; }
.album-cover { height: 150px; }
.album-info { padding: 12px 12px 14px; }
.album-info h3 { font-size: 15px; }
.cover-more-badge { font-size: 17px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close { top: 12px; right: 12px; }
}