.gallery-page { background: #f7f9fc; min-height: 100vh; }
.gallery-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.gallery-hero { position: relative; overflow: hidden; padding: 150px 0 72px; color: #fff; background: linear-gradient(135deg, #142b5f 0%, #2467b1 55%, #42b8c8 100%); }
.gallery-hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -100px; top: -170px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.gallery-kicker { display: block; margin: 28px 0 10px; color: #a9eff2; font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.gallery-hero h1 { position: relative; z-index: 1; margin: 0 0 12px; font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
.gallery-hero p { position: relative; z-index: 1; max-width: 620px; margin: 0; color: rgba(255,255,255,.86); font-size: 17px; }
.gallery-back { position: relative; z-index: 1; display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 600; }
.gallery-back:hover { color: #a9eff2; }
.gallery-count { position: relative; z-index: 1; display: inline-flex; gap: 8px; align-items: center; margin-top: 26px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; background: rgba(255,255,255,.12); }
.gallery-content { padding: 34px 0 80px; }
.event-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.event-tabs a { padding: 11px 18px; border: 1px solid #dbe3ef; border-radius: 99px; color: #345; background: #fff; font-weight: 600; transition: .25s ease; }
.event-tabs a:hover, .event-tabs a.active { border-color: #2467b1; color: #fff; background: #2467b1; box-shadow: 0 8px 20px rgba(36,103,177,.2); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-card { position: relative; overflow: hidden; height: 245px; padding: 0; border: 0; border-radius: 16px; cursor: zoom-in; background: #dce5f0; box-shadow: 0 8px 24px rgba(20,43,95,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,25,55,.7)); opacity: 0; transition: opacity .35s ease; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.gallery-card:hover { transform: translateY(-9px) rotate(-.5deg); box-shadow: 0 18px 34px rgba(20,43,95,.2); }
.gallery-card:hover img { transform: scale(1.1); filter: saturate(1.15); }
.gallery-card:hover::after { opacity: 1; }
.gallery-overlay { position: absolute; z-index: 1; right: 14px; bottom: 13px; left: 14px; color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: .3s ease; }
.gallery-card:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-empty { padding: 70px 20px; border-radius: 18px; color: #68788e; text-align: center; background: #fff; }
.lightbox { position: fixed; z-index: 9999; inset: 0; display: flex; align-items: center; justify-content: center; padding: 55px; background: rgba(5,15,35,.94); animation: fade-in .2s ease; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 90vw); max-height: 90vh; margin: 0; text-align: center; }
.lightbox figure img { display: block; max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: 0 15px 60px rgba(0,0,0,.45); animation: zoom-in .25s ease; }
.lightbox figcaption { margin-top: 13px; color: #fff; font-size: 14px; }
.lightbox button { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; transition: .2s ease; }
.lightbox button:hover { background: #2467b1; transform: scale(1.08); }
.lightbox-close { top: 22px; right: 26px; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
body.lightbox-open { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-hero { padding-top: 125px; } .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gallery-card { height: 180px; border-radius: 11px; } .lightbox { padding: 55px 12px; } .lightbox button { width: 40px; height: 40px; } .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } }
