/* ==========================================================================
   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; }

/* Photo rights note (also reused on the Events & projects page) */
.photo-rights-note {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 64px;
    font-size: 14px;
    line-height: 22px;
    color: #667085;
    text-align: center;
}
.photo-rights-note a { color: #2D738C; }

/* ---------- 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; }

/* Story link (title/date/meta) — opens the article */
.album-story-link { display: block; text-decoration: none; color: inherit; }
.album-story-link .read-link::after { content: "\00a0\2192"; }

/* Hidden per-album photo set that feeds the lightbox */
.eg-hidden-gallery { display: none; }

/* The collage: 1 large tile (left) + 2 stacked tiles (right).
   It is a <button> that opens the photo lightbox. */
.album-cover {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: 220px;
    background: #EEF2F4;
    position: relative;
    width: 100%; padding: 0; margin: 0; border: 0;
    font: inherit; color: inherit; text-align: inherit;
    cursor: pointer; appearance: none; -webkit-appearance: none;
}

/* "View photos" pill that fades up on hover/focus to signal the cover opens photos */
.album-cover-hint {
    position: absolute; z-index: 3; left: 50%; bottom: 12px;
    transform: translateX(-50%) translateY(6px);
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(9, 18, 26, 0.62); color: #FFFFFF;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.album-card:hover .album-cover-hint,
.album-cover:focus-visible .album-cover-hint {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
.album-cover:focus-visible { outline: 2px solid #2D738C; outline-offset: 2px; }

.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-date { font-size: 12.5px; color: #98A2B3; margin: 0 0 7px; display: flex; align-items: center; gap: 6px; }
.album-date i { font-size: 12px; 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; }
}
