/* ══════════════════════════════════════
   GALLERY PAGE CSS
══════════════════════════════════════ */

/* HERO */
.gallery-hero {
  position: relative; min-height: 280px;
  display: flex; align-items: center;
  padding: 56px 40px; overflow: hidden;
}
.gallery-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.gallery-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(15,87,164,0.82); }
.gallery-hero-content { position: relative; z-index: 1; width: 100%; }
.gallery-hero h1 { font-size: 42px; font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.15; }
.gallery-hero p  { font-size: 15px; color: rgba(255,255,255,0.88); max-width: 620px; line-height: 1.65; }

/* BREADCRUMB */
.gallery-breadcrumb { padding: 14px 0; background: #fff; border-bottom: 1px solid #eef2f7; }
.gallery-breadcrumb .container { display: flex; align-items: center; gap: 8px; }
.gallery-breadcrumb a { font-size: 12px; color: #0F57A4; font-weight: 500; }
.gallery-breadcrumb-sep { color: #aaa; font-size: 12px; }
.gallery-breadcrumb-current { font-size: 12px; color: #888; }

/* BODY */
.gallery-body { background: #F7F7F7; padding: 48px 0 80px; }

/* FILTER TABS */
.filter-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid #dde4ed;
  background: #fff; color: #0F57A4;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.filter-btn:hover { border-color: #0F57A4; background: #f0f6ff; }
.filter-btn.active { background: #0F57A4; color: #fff; border-color: #0F57A4; }

/* MASONRY GRID */
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: 10px; overflow: hidden;
  position: relative; cursor: pointer; display: block;
}
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,37,69,0.75) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: #fff; background: #0F57A4;
  border-radius: 4px; padding: 3px 8px; margin-bottom: 6px;
}
.gallery-item-label { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(2,10,18,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative; max-width: 1100px; width: 95%;
  max-height: 90vh; display: flex; flex-direction: column;
}
.lightbox-img-wrap {
  border-radius: 10px; overflow: hidden;
  max-height: 80vh; display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; display: block; }
.lightbox-caption { color: rgba(255,255,255,0.8); font-size: 14px; text-align: center; padding: 14px 0 0; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: #fff;
  cursor: pointer; font-size: 28px; line-height: 1;
  opacity: 0.7; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; transition: background .2s; backdrop-filter: blur(4px);
}
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter { position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 13px; }

/* MOBILE */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
}
@media (max-width: 768px) {
  .gallery-hero { padding: 36px 20px; min-height: 200px; }
  .gallery-hero h1 { font-size: 28px; }
  .gallery-hero p { font-size: 14px; }
  .gallery-body { padding: 28px 0 48px; }
  .gallery-grid { columns: 1; }
  .lightbox-prev { left: -16px; }
  .lightbox-next { right: -16px; }
  .filter-btn { font-size: 12px; padding: 7px 14px; }
}
