/* gallery.css — /gallery/ photo grid + viewer, /testimonials/, /notices/, /events/ */

.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption { position: absolute; inset: auto 0 0; padding: 1.75rem 0.85rem 0.65rem; background: linear-gradient(transparent, rgb(0 0 0 / 0.75)); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.gallery-item:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.lightbox { width: min(64rem, 100vw - 2rem); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--c-ink); color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: #000; }
.lightbox figcaption { padding: 0.85rem 1.25rem; font-size: var(--fs-300); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #fff; }
.lightbox__btn:hover { background: var(--c-accent); color: var(--c-ink); }
.lightbox__btn .icon { width: 1.4rem; height: 1.4rem; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 40%; }
.lightbox__next { right: 0.75rem; top: 40%; }

/* Testimonials page */
.page-testimonials .testimonial-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.testimonial__avatar { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-ink); color: var(--c-accent); font-family: var(--font-head); font-weight: 800; }

/* Notices */
.notice-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.notice-filter button { padding: 0.45rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; font-size: var(--fs-300); font-weight: 600; }
.notice-filter button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-accent); }
.notice-list { display: grid; gap: 0.75rem; }
.notice-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.notice-row__date { display: grid; justify-items: center; padding: 0.4rem; border-radius: var(--radius-sm); background: var(--c-ink); color: #fff; font-family: var(--font-head); line-height: 1.1; }
.notice-row__date strong { font-size: 1.375rem; color: var(--c-accent); }
.notice-row__date span { font-size: 0.75rem; }
.notice-row__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-orange); }
.notice-row__title { display: block; margin-top: 0.15rem; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.notice-row__title:hover { color: var(--c-navy); text-decoration: underline; }
.notice-row .status-pill { justify-self: end; }
@media (max-width: 39.99em) { .notice-row { grid-template-columns: 4.5rem 1fr; } .notice-row .status-pill { display: none; } }

/* Events */
.event-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.event-card { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.event-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event-card__body { display: grid; gap: 0.35rem; padding: 1.1rem 1.25rem 1.3rem; }
.event-card time { font-size: 0.8125rem; font-weight: 700; color: var(--c-orange); }
.event-card h3 { font-size: 1.125rem; }
.event-card p { font-size: var(--fs-300); color: var(--c-muted); }
