/* ============================================
   AYLF — GALLERY PAGE
   Theme: Navy blue + gold
   ============================================ */
body[data-theme="gallery"] { background: #f7f4ec; }
body[data-theme="gallery"] .hero-image {
  background-image: url("../images/random/1.jpg");
  background-position: center 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

body[data-theme="gallery"] .filter-section {
  padding: 50px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(11, 11, 11, .08);
}
body[data-theme="gallery"] .filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; max-width: 1000px; margin: 0 auto;
}
body[data-theme="gallery"] .filter-btn {
  padding: 11px 20px; background: transparent;
  border: 1px solid rgba(11, 11, 11, .08); border-radius: 3px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #0a1a33; cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
body[data-theme="gallery"] .filter-btn:hover {
  border-color: #2b5ea7; color: #2b5ea7; transform: translateY(-2px);
}
body[data-theme="gallery"] .filter-btn.active {
  background: #0a1a33; color: #d4af37;
  border-color: #0a1a33; box-shadow: 0 8px 20px rgba(10, 26, 51, .25);
}

body[data-theme="gallery"] .gallery-section { padding: 60px 0 100px; background: #f7f4ec; min-height: 60vh; }
body[data-theme="gallery"] .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
body[data-theme="gallery"] .gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e6eb;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(10, 26, 51, .08);
  transition: transform .35s ease, box-shadow .35s ease;
}
body[data-theme="gallery"] .gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(10, 26, 51, .2);
}
body[data-theme="gallery"] .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s ease;
}
body[data-theme="gallery"] .gallery-item:hover img { transform: scale(1.07); }
body[data-theme="gallery"] .gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 26, 51, .75) 100%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
body[data-theme="gallery"] .gallery-item:hover::after { opacity: 1; }
body[data-theme="gallery"] .gallery-item-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #d4af37; color: #0a1a33;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 3px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
body[data-theme="gallery"] .gallery-item:hover .gallery-item-tag {
  opacity: 1; transform: translateY(0);
}
body[data-theme="gallery"] .gallery-item-zoom {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: #d4af37; color: #0a1a33;
  display: grid; place-items: center; font-size: 17px;
  opacity: 0; transform: scale(.7);
  transition: opacity .3s ease, transform .3s ease, background .25s;
}
body[data-theme="gallery"] .gallery-item:hover .gallery-item-zoom {
  opacity: 1; transform: scale(1);
}
body[data-theme="gallery"] .gallery-item-zoom:hover { background: #e8c968; }
body[data-theme="gallery"] .gallery-item.hidden { display: none; }

body[data-theme="gallery"] .gallery-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; color: #5a6472;
  font-size: 14px; display: none;
}
body[data-theme="gallery"] .gallery-empty.show { display: block; }
body[data-theme="gallery"] .gallery-count {
  text-align: center; margin-top: 40px;
  font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: #5a6472;
}
body[data-theme="gallery"] .gallery-count strong { color: #0a1a33; }

body[data-theme="gallery"] .aylf-lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 26, 51, .97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s; padding: 40px;
}
body[data-theme="gallery"] .aylf-lightbox.active { opacity: 1; visibility: visible; }
body[data-theme="gallery"] .aylf-lightbox-image-wrap {
  position: relative; max-width: 1200px; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  transform: scale(.95);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
body[data-theme="gallery"] .aylf-lightbox.active .aylf-lightbox-image-wrap { transform: scale(1); }
body[data-theme="gallery"] .aylf-lightbox img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: 8px;
  border: 3px solid #d4af37;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  object-fit: contain;
}
body[data-theme="gallery"] .aylf-lightbox-caption {
  margin-top: 20px; color: #fff;
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: .04em; text-align: center;
}
body[data-theme="gallery"] .aylf-lightbox-caption span {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #d4af37; margin-bottom: 6px;
}
body[data-theme="gallery"] .aylf-lightbox-counter {
  position: absolute; top: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; color: rgba(255, 255, 255, .7); z-index: 2;
}
body[data-theme="gallery"] .aylf-lightbox-counter strong { color: #d4af37; }
body[data-theme="gallery"] .aylf-lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: #d4af37; color: #0a1a33;
  font-size: 28px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
  z-index: 3;
}
body[data-theme="gallery"] .aylf-lightbox-close:hover { background: #e8c968; transform: rotate(90deg); }
body[data-theme="gallery"] .aylf-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 22px; cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
  z-index: 3;
}
body[data-theme="gallery"] .aylf-lightbox-nav:hover {
  background: #d4af37; color: #0a1a33; border-color: #d4af37;
}
body[data-theme="gallery"] .aylf-lightbox-prev { left: 24px; }
body[data-theme="gallery"] .aylf-lightbox-next { right: 24px; }
body.aylf-lightbox-open { overflow: hidden; }

body[data-theme="gallery"] .cta-section {
  background: linear-gradient(135deg, #d4af37 0%, #a8871f 100%);
  color: #0a1a33;
}
body[data-theme="gallery"] .cta-section h2 { color: #0a1a33; }
body[data-theme="gallery"] .cta-section h2 em { color: #142d54; opacity: .75; }
body[data-theme="gallery"] .cta-section .cta-right p { color: rgba(10, 26, 51, .78); }
body[data-theme="gallery"] .cta-section .eyebrow.light { color: #0a1a33; }
body[data-theme="gallery"] .cta-section .eyebrow.light > span { background: #0a1a33; }
body[data-theme="gallery"] .cta-section .btn-lime { background: #0a1a33; color: #d4af37; }

@media (max-width: 820px) {
  body[data-theme="gallery"] .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  body[data-theme="gallery"] .filter-btn { padding: 9px 15px; font-size: 12.5px; }
  body[data-theme="gallery"] .aylf-lightbox { padding: 16px; }
  body[data-theme="gallery"] .aylf-lightbox-close { width: 40px; height: 40px; font-size: 22px; top: 12px; right: 12px; }
  body[data-theme="gallery"] .aylf-lightbox-nav { width: 44px; height: 44px; font-size: 18px; }
  body[data-theme="gallery"] .aylf-lightbox-prev { left: 8px; }
  body[data-theme="gallery"] .aylf-lightbox-next { right: 8px; }
}
@media (max-width: 480px) {
  body[data-theme="gallery"] .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}