msos/css/pages/_gallery.css

103 lines
3.9 KiB
CSS

/* ==========================================================================
Gallery page — album collage cards (whole card links to the event story)
========================================================================== */
.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; }
/* ---------- 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: 30px 26px;
}
/* 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) + 2 stacked tiles (right) */
.album-cover {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 3px;
height: 220px;
background: #EEF2F4;
}
.album-tile { position: relative; overflow: hidden; }
.album-tile img {
width: 100%; height: 100%; object-fit: cover; display: block;
transition: transform 0.5s ease;
}
.album-tile--main { grid-row: 1 / 3; grid-column: 1; }
.album-card:hover .album-tile img { transform: scale(1.04); }
/* 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; z-index: 2;
display: flex; align-items: center; justify-content: center;
background: rgba(9, 18, 26, 0.5);
color: #FFFFFF; font-size: 22px; font-weight: 700; letter-spacing: 0.01em;
}
.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 .read-link { color: #2D738C; font-weight: 600; }
/* Tablets / large phones: two clear columns */
@media (max-width: 768px) and (min-width: 561px) {
.gallery-albums { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.album-cover { height: 185px; }
}
/* Phones: one full-width column so each album reads clearly */
@media (max-width: 560px) {
.gallery-hero { padding: 44px 20px 32px; }
.gallery-albums { grid-template-columns: 1fr; gap: 22px; padding: 22px 16px 64px; }
.album-cover { height: 210px; }
.album-info { padding: 13px 14px 15px; }
.album-info h3 { font-size: 16px; }
.cover-more-badge { font-size: 20px; }
}