/* Educate Punjab — gallery and photos | scoped page styles */
.ep-gallery{--g-blue:#1E3A8A;--g-navy:#0F2C6E;--g-red:#C62828;--g-gold:#F59E0B;--g-muted:#64748B;--g-line:#DFE8F5;font-family:'DM Sans',Arial,sans-serif;background:#fff;color:#1F2937}
.ep-gallery *{box-sizing:border-box}
.ep-gallery .container{max-width:1220px}
.ep-gallery-hero{min-height:285px;display:flex;align-items:center;justify-content:center;text-align:center;padding:72px 0;background-position:center;background-size:cover;isolation:isolate}
.ep-gallery-hero-inner{max-width:930px}
.ep-gallery-eyebrow{display:block;margin-bottom:13px;color:#FFDC9A;font-size:12px;font-weight:800;letter-spacing:.14em}
.ep-gallery-hero h1{font:800 clamp(34px,4.1vw,55px)/1.16 'Nunito',Arial,sans-serif;color:#fff!important;margin:0 0 16px;overflow-wrap:anywhere}
.ep-gallery-hero p{max-width:750px;margin:0 auto 18px;color:#F1F5FF!important;font-size:16px;line-height:1.75}
.ep-gallery-breadcrumb{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;color:white;font-size:14px;font-weight:700}
.ep-gallery-breadcrumb a{color:#fff!important;text-decoration:none}
.ep-gallery-breadcrumb a:hover{color:#FFD38A!important}
.ep-gallery-breadcrumb span[aria-hidden]{color:var(--g-gold)}
.ep-gallery-listing{padding:76px 0 86px;background:linear-gradient(180deg,#fff 0%,#F8FAFC 100%)}
.ep-gallery-section-head{max-width:790px;text-align:center;margin:0 auto 38px}
.ep-gallery-kicker{display:inline-block;color:var(--g-red);font-size:12px;font-weight:800;letter-spacing:.14em;margin-bottom:12px}
.ep-gallery-section-head h2{font:800 clamp(29px,3.2vw,43px)/1.2 'Nunito',Arial,sans-serif;color:var(--g-navy)!important;margin:0 0 14px}
.ep-gallery-section-head h2 span{color:var(--g-red)!important}
.ep-gallery-section-head p{font-size:16px;line-height:1.8;color:var(--g-muted)!important;margin:0}
.ep-gallery-grid,.ep-gallery-photo-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;align-items:stretch}
.ep-gallery-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--g-line);border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 10px 29px rgba(15,44,110,.075);transition:transform .25s,box-shadow .25s}
.ep-gallery-card:hover{transform:translateY(-4px);box-shadow:0 17px 36px rgba(15,44,110,.13)}
.ep-gallery-card-image{position:relative;display:block;height:280px;overflow:hidden;background:#EEF4FF}
.ep-gallery-card-image img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;transition:transform .3s}
.ep-gallery-card:hover .ep-gallery-card-image img{transform:scale(1.035)}
.ep-gallery-image-tag{position:absolute;left:16px;bottom:16px;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:9px;background:rgba(255,255,255,.95);color:var(--g-blue);font-size:12px;font-weight:800}
.ep-gallery-card-body{padding:23px;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:16px}
.ep-gallery-card-body h3{font:800 20px/1.35 'Nunito',Arial,sans-serif;color:var(--g-navy)!important;margin:0;overflow-wrap:anywhere}
.ep-gallery-card-body h3 a{color:inherit!important;text-decoration:none}
.ep-gallery-card-body h3 a:hover{color:var(--g-red)!important}
.ep-gallery-card-link{margin-top:auto;display:inline-flex;align-items:center;gap:11px;color:var(--g-blue)!important;font-size:14px;font-weight:800;text-decoration:none}
.ep-gallery-card-link:hover{color:var(--g-red)!important}
.ep-gallery-photo-widget{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.ep-gallery-photo-grid{margin:0!important;padding:0!important}
.ep-gallery .ep-gallery-photo-grid>a.ep-gallery-photo-card{position:relative;display:block;width:100%;height:265px;margin:0!important;float:none!important;overflow:hidden;border:1px solid var(--g-line);border-radius:16px;background:#EEF4FF;box-shadow:0 9px 26px rgba(15,44,110,.07)}
.ep-gallery .ep-gallery-photo-grid>a.ep-gallery-photo-card img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;transition:transform .3s}
.ep-gallery-photo-card:hover img{transform:scale(1.04)}
.ep-gallery-photo-caption{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:23px 16px 15px;background:linear-gradient(0deg,rgba(11,34,73,.82),transparent);color:#fff;font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.ep-gallery-photo-caption i{flex:none}
.ep-gallery-back{text-align:center;margin-top:35px}
.ep-gallery-back a{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border:1px solid #C9D9EE;border-radius:10px;background:#fff;color:var(--g-blue)!important;font-weight:800;text-decoration:none}
.ep-gallery-back a:hover{background:#EDF4FF}
.ep-gallery-empty{text-align:center;max-width:580px;margin:0 auto;padding:48px 25px;border:1px dashed #CBD9EB;border-radius:18px;background:#fff;color:var(--g-muted)}
.ep-gallery-empty>i{font-size:42px;color:var(--g-blue);margin-bottom:20px}
.ep-gallery-empty h3{font-size:24px;color:var(--g-navy)!important;margin-bottom:12px}
.ep-gallery-empty p{font-size:15px;color:var(--g-muted)!important;margin:0}
.ep-gallery-cta{padding:55px 0;background:linear-gradient(115deg,#0F2C6E,#1E3A8A)}
.ep-gallery-cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}
.ep-gallery-cta-kicker{display:block;font-size:12px;font-weight:800;letter-spacing:.13em;color:#FFDA99;margin-bottom:10px}
.ep-gallery-cta h2{font:800 clamp(25px,2.8vw,36px)/1.25 'Nunito',Arial,sans-serif;color:#fff!important;margin:0 0 10px}
.ep-gallery-cta p{color:#E3EDFF!important;line-height:1.7;font-size:15px;margin:0}
.ep-gallery-cta-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 24px;min-height:48px;white-space:nowrap;border-radius:10px;background:var(--g-gold);color:#182941!important;font-weight:800;font-size:14px;text-decoration:none!important}
.ep-gallery-cta-button:hover{background:#D97706;color:#fff!important}
.ep-gallery a:focus-visible{outline:3px solid var(--g-gold);outline-offset:3px}
@media(max-width:991px){.ep-gallery-grid,.ep-gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-gallery-card-image{height:255px}.ep-gallery .ep-gallery-photo-grid>a.ep-gallery-photo-card{height:255px}.ep-gallery-cta-inner{align-items:flex-start;flex-direction:column}}
@media(max-width:767px){.ep-gallery-hero{min-height:220px;padding:56px 0}.ep-gallery-hero p{font-size:14px}.ep-gallery-listing{padding:48px 0 58px}.ep-gallery-grid,.ep-gallery-photo-grid{grid-template-columns:1fr;gap:20px;max-width:520px;margin-inline:auto}.ep-gallery-card-image{height:280px}.ep-gallery .ep-gallery-photo-grid>a.ep-gallery-photo-card{height:285px}.ep-gallery-section-head{margin-bottom:28px}.ep-gallery-section-head p{font-size:14px}.ep-gallery-cta{padding:43px 0}.ep-gallery-cta-button{width:100%}}
@media(prefers-reduced-motion:reduce){.ep-gallery-card,.ep-gallery-card-image img,.ep-gallery-photo-card img{transition:none!important}}
