.gallery-index-page .featured-gallery-links{margin-top:1.25rem;margin-bottom:2rem!important}
.gallery-index-page .featured-gallery-content{padding:1.2rem;gap:1rem}.gallery-index-page .featured-gallery-content .btn{align-self:flex-start;margin-top:auto}
body.gallery-index-page .events-gallery-panel{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.gallery-index-page .events-gallery-panel-head{padding:0 0 1rem!important;margin-bottom:1.25rem;background:transparent!important;border:0!important;border-bottom:1px solid #d8e0ea!important;border-radius:0!important;box-shadow:none}
.gallery-index-page .event-album-card{display:flex;flex-direction:column;border-radius:14px}
.gallery-index-page .event-album-card .gallery-cover{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:#edf2f7}
.gallery-index-page .event-album-content{display:flex;flex-direction:column;flex:1;padding:1.15rem!important}
.gallery-index-page .event-album-content h3{line-height:1.4}.gallery-index-page .event-album-content .btn{margin-top:auto;align-self:flex-start}
.gallery-index-page .event-album-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .75rem}
.gallery-index-page .album-photo-count{display:inline-block;padding:.2rem .55rem;border-radius:99px;background:#edf2f8;color:#234f86;font-size:.75rem;white-space:nowrap}
.gallery-index-page .btn{border-radius:.5rem;padding:.5rem .85rem;font-size:.85rem}

/* Keep the photographs prominent without oversized album panels. */
body.gallery-index-page .mhv-page-hero{background:transparent!important;border:0!important;border-bottom:1px solid #d8e0ea!important;border-radius:0!important;box-shadow:none!important;padding:12px 0 18px!important}
body.gallery-index-page .event-album-card,body.gallery-index-page .featured-gallery-card{box-shadow:none!important}
.gallery-index-page .event-album-card .gallery-cover{height:190px;aspect-ratio:auto;object-fit:contain;background:#f0f3f7}
.gallery-index-page .event-album-meta{font-weight:700}.gallery-index-page .album-photo-count{font-weight:500}
.gallery-index-page .event-album-content{padding:.9rem!important}
.gallery-index-page .featured-gallery-card{grid-template-columns:120px 1fr;min-height:155px}
.gallery-index-page .featured-gallery-cover{min-height:155px}
.gallery-index-page .featured-gallery-content{padding:.85rem;gap:.65rem}
@media(max-width:575.98px){.gallery-index-page .featured-gallery-card{grid-template-columns:95px 1fr}.gallery-index-page .event-album-card .gallery-cover{height:210px}}

.gallery-index-page .gallery-page-surface{background:#fff;border:1px solid #d8e0ea;border-radius:14px;padding:24px}@media(max-width:575.98px){.gallery-index-page .gallery-page-surface{padding:16px}}

/* Compact album rows create a consistent rhythm for collections and events. */
html body.gallery-index-page main .gallery-page-surface>.featured-gallery-links{margin-top:24px!important;margin-bottom:28px!important}
.gallery-index-page .gallery-section-heading{margin-bottom:14px}
html body.gallery-index-page .gallery-section-heading h2,html body.gallery-index-page .events-gallery-panel-head h2{font-size:1.4rem!important;line-height:1.35;margin:0 0 5px!important}
.gallery-index-page .gallery-section-heading p{font-size:.9rem;margin:0;color:#526172}
html body.gallery-index-page .events-gallery-panel-head{padding:0!important;margin-bottom:14px!important;border:0!important}
html body.gallery-index-page .featured-gallery-card{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:0;border-radius:10px!important;background:#f8fafc!important;box-shadow:none!important}
html body.gallery-index-page .featured-gallery-cover{height:100%;min-height:180px;width:112px;object-fit:cover}
html body.gallery-index-page .featured-gallery-content{padding:16px;gap:10px;min-width:0}
html body.gallery-index-page .featured-gallery-content h3{font-size:1.08rem;line-height:1.4;margin-bottom:6px!important}
html body.gallery-index-page .featured-gallery-content p{font-size:.84rem;line-height:1.55}
html body.gallery-index-page .event-album-card{display:grid;grid-template-columns:150px minmax(0,1fr);border-radius:10px!important;box-shadow:none!important}
html body.gallery-index-page .event-album-card .gallery-cover{width:150px;height:100%;min-height:170px;max-height:220px;object-fit:contain;background:#f1f4f8}
html body.gallery-index-page .event-album-content{padding:16px!important;min-width:0}
html body.gallery-index-page .event-album-content h3{font-size:1.08rem}
html body.gallery-index-page .gallery-open-link{background:transparent!important;border:0!important;padding:0!important;min-height:32px;display:inline-flex;align-items:center;gap:.5rem;color:#234f86!important;font-weight:700;font-size:.85rem;box-shadow:none!important}
.gallery-index-page .gallery-open-link::after{content:'→'}
html body.gallery-index-page .gallery-open-link:hover{text-decoration:underline}
.gallery-index-page .gallery-open-link:focus-visible{outline:2px solid #234f86;outline-offset:4px}
@media(max-width:575.98px){html body.gallery-index-page .featured-gallery-card{grid-template-columns:80px minmax(0,1fr)}html body.gallery-index-page .featured-gallery-cover{width:80px;min-height:150px}html body.gallery-index-page .featured-gallery-content{padding:12px}html body.gallery-index-page .featured-gallery-content p{display:none}html body.gallery-index-page .event-album-card{grid-template-columns:100px minmax(0,1fr)}html body.gallery-index-page .event-album-card .gallery-cover{width:100px;min-height:160px}html body.gallery-index-page .event-album-content{padding:12px!important}}

html body.gallery-index-page main .gallery-page-surface .events-gallery-panel{padding-top:20px!important}

/* Fixed preview dimensions for every album, regardless of image orientation. */
html body.gallery-index-page .featured-gallery-card,
html body.gallery-index-page .event-album-card {
  grid-template-columns:150px minmax(0,1fr);
  align-items:start;
}
html body.gallery-index-page .featured-gallery-cover,
html body.gallery-index-page .event-album-card .gallery-cover {
  display:block;
  width:150px!important;
  height:180px!important;
  min-height:180px!important;
  max-height:180px!important;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:center;
}
html body.gallery-index-page .featured-gallery-content,
html body.gallery-index-page .event-album-content { min-height:180px; }
@media(max-width:575.98px){
  html body.gallery-index-page .featured-gallery-card,
  html body.gallery-index-page .event-album-card { grid-template-columns:100px minmax(0,1fr); }
  html body.gallery-index-page .featured-gallery-cover,
  html body.gallery-index-page .event-album-card .gallery-cover {
    width:100px!important;
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }
  html body.gallery-index-page .featured-gallery-content,
  html body.gallery-index-page .event-album-content { min-height:150px; }
}

.gallery-year-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.gallery-year-label{font-size:.8rem;font-weight:700;color:#526172;margin-right:6px}
html body.gallery-index-page .gallery-year-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid #ccd7e5;border-radius:999px;background:#f5f8fc;color:#234f86!important;text-decoration:none;font-weight:700}
html body.gallery-index-page .gallery-year-nav a[aria-current]{background:#234f86;color:#fff!important;border-color:#234f86}
.gallery-year-nav a:hover{text-decoration:underline!important}
.gallery-year-nav a:focus-visible{outline:2px solid #b47a2d;outline-offset:3px}
#eventGalleries{scroll-margin-top:20px}
