/* ========================================================================== Gallery page — Pinterest-style album collage cards + 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; } /* ---------- Album grid (multiple collage cards per row) ---------- */ .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; } .album-card { display: flex; flex-direction: column; } /* 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 { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 230px; border-radius: 14px; overflow: hidden; 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 { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s 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; } /* "+N more" overlay on the last visible tile */ .cover-more-badge { position: absolute; inset: 0; 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; } .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-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; } @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-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; } }