/* Global Compact Header Logo & Single Line Navigation Menu */
.elementor-3542 img[src*="college-logo"],
.elementor-3542 .elementor-element-990cba7 img,
header img[src*="college-logo"],
#site-header img[src*="college-logo"],
.gpc-header-logo {
  max-height: 68px !important;
  max-width: 75px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

#site-navigation-wrap, 
#site-navigation, 
.elementor-widget-nav-menu,
.elementor-nav-menu--main,
ul.elementor-nav-menu,
#site-header #site-navigation-wrap,
#site-header #site-navigation,
.oceanwp-main-menu {
  white-space: nowrap !important;
}

ul.elementor-nav-menu,
.elementor-nav-menu--main ul.elementor-nav-menu,
#site-navigation ul.main-menu,
#site-header #site-navigation .main-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

ul.elementor-nav-menu > li,
.elementor-nav-menu--main ul.elementor-nav-menu > li,
#site-navigation ul.main-menu > li,
#site-header #site-navigation .main-menu > li {
  display: inline-block !important;
  float: none !important;
  flex-shrink: 0 !important;
}

ul.elementor-nav-menu > li > a,
.elementor-nav-menu--main ul.elementor-nav-menu > li > a,
#site-navigation ul.main-menu > li > a,
#site-header #site-navigation .main-menu > li > a,
.elementor-nav-menu--main .elementor-item {
  padding: 5px 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  letter-spacing: 0px !important;
}

:root {
  --pg-primary: #1e3a8a;
  --pg-primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --pg-accent: #f59e0b;
  --pg-bg: #f8fafc;
  --pg-card-bg: #ffffff;
  --pg-text-dark: #0f172a;
  --pg-text-muted: #64748b;
  --pg-radius: 16px;
  --pg-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --pg-shadow-hover: 0 20px 35px -10px rgba(30, 58, 138, 0.2), 0 10px 15px -5px rgba(30, 58, 138, 0.1);
}

.gallery-page-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--pg-text-dark);
  background-color: var(--pg-bg);
  padding: 30px 15px 60px;
  margin: 0 auto;
  max-width: 1280px;
}

/* Header Section */
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.gallery-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.gallery-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

/* Category Filter Buttons */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  outline: none;
}

.filter-btn:hover {
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--pg-primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.35);
}

.filter-btn .count-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
}

.filter-btn.active .count-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

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

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-title {
    font-size: 2rem;
  }
}

/* Photo Card */
.photo-card {
  background-color: var(--pg-card-bg);
  border-radius: var(--pg-radius);
  overflow: hidden;
  box-shadow: var(--pg-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  position: relative;
  animation: fadeIn 0.5s ease forwards;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--pg-shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

.photo-img-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background-color: #0f172a;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

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

.category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.3px;
  z-index: 2;
}

.expand-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.photo-card:hover .expand-overlay {
  opacity: 1;
}

.expand-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-card:hover .expand-icon {
  transform: scale(1);
}

/* Caption Body */
.photo-caption-body {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  min-height: 58px;
}

.photo-caption-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pg-text-dark);
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.photo-card:hover .photo-caption-title {
  color: #2563eb;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

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

.lightbox-img-wrapper {
  position: relative;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

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

.lightbox-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #f8fafc;
}

.lightbox-counter {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 12px;
  border-radius: 12px;
}

/* Lightbox Controls */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.1);
}

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

.lightbox-nav:hover {
  background: rgba(59, 130, 246, 0.8);
  transform: translateY(-50%) scale(1.1);
}

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

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

@media (max-width: 1150px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
