/* =========================================================
   ATIS AVIATION ACADEMY — GALLERY STYLES
   ========================================================= */

/* Hero Banner */
.gallery-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.88) 0%, rgba(0, 87, 184, 0.82) 100%),
              url('../images/pilot.jpeg') center/cover no-repeat;
  color: #ffffff;
  padding: 120px 24px 60px;
  text-align: center;
}

.gallery-hero-content {
  max-width: 840px;
  margin: 0 auto;
  z-index: 2;
}

.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #EAF5FF;
}

.gallery-hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.gallery-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #DCE7F5;
  margin: 0 0 28px;
}

.gallery-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.gallery-breadcrumb a:hover {
  color: #EAF5FF;
  text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0 100px;
  background: var(--surface, #F8FAFC);
}

/* Filter Controls */
.filter-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--border, #DCE7F5);
  background: #ffffff;
  color: var(--ink, #111827);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.filter-btn:hover {
  border-color: var(--primary, #0057B8);
  color: var(--primary, #0057B8);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary, #0057B8);
  border-color: var(--primary, #0057B8);
  color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(0, 87, 184, 0.4);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
  border: 1px solid var(--border, #DCE7F5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.12);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 72%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: #0B1F3A;
}

.gallery-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.1) 0%, rgba(11,31,58,0.85) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-tag {
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary, #0057B8);
  color: #ffffff;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.gallery-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.gallery-card-subtitle {
  font-size: 13px;
  color: #DCE7F5;
  margin: 0;
}

.gallery-zoom-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  transition: background 0.2s, transform 0.2s;
}

.gallery-card:hover .gallery-zoom-icon {
  background: var(--primary, #0057B8);
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
}

.lightbox-caption h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.lightbox-caption p {
  font-size: 14px;
  color: #DCE7F5;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: #EF4444;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: var(--primary, #0057B8);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 768px) {
  .gallery-hero h1 { font-size: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -40px; right: 10px; }
}
