/* ==========================================================================
   EK ASHECHE KIRAN FOUNDATION: GALLERY PAGE
   Loaded by gallery.html after css/style.css, css/home.css, css/about.css and
   css/certifications.css.
   ========================================================================== */

.ekk-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ekk-video-card {
	background: #000; border-radius: var(--ekk-radius); overflow: hidden; box-shadow: var(--ekk-shadow);
	border: 1px solid var(--ekk-line);
}
.ekk-video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Press/document shots (data-cat="press") are scans of portrait newsletters
   and newspaper clippings (real source ratios ~0.56-0.75, i.e. tall) inside
   the shared .ekk-shot 16:10 landscape thumbnail box. `cover` on a landscape
   box with a portrait source crops out most of the readable text, so this
   category uses `contain` instead -- the full document stays legible,
   letterboxed on a cream background that matches the rest of the page. */
.ekk-shot[data-cat="press"] img { object-fit: contain; background: var(--ekk-cream); padding: 12px; }
/* Same exception for the one "events"-category shot that is also a newsletter
   scan with distinct before/after sections (its alt text says so) -- a 16:10
   cover crop would lose one of the two sections entirely. */
.ekk-shot img.ekk-doc-fit { object-fit: contain; background: var(--ekk-cream); padding: 12px; }

@media (max-width: 991px) { .ekk-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ekk-video-grid { grid-template-columns: 1fr; } }

/* ---------- category filter tabs ---------- */
.ekk-gal-filter-wrap { padding: 28px 0 0; }
.ekk-gal-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ekk-gal-tab {
	border: 1px solid var(--ekk-line); background: #fff; color: var(--ekk-text);
	border-radius: 999px; padding: 9px 20px; font-size: 13px; font-weight: 700;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.ekk-gal-tab:hover { border-color: var(--ekk-orange-deep); color: var(--ekk-orange-deep); }
.ekk-gal-tab.is-active { background: var(--ekk-orange-deep); border-color: var(--ekk-orange-deep); color: #fff; }
.ekk-shot.ekk-gal-hidden, .ekk-video-card.ekk-gal-hidden, section.ekk-gal-hidden { display: none !important; }
@media (max-width: 575px) { .ekk-gal-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .ekk-gal-tab { flex: none; } }
