html{
    background-color: #144835;
    height: 100%;
    width: auto;
    overflow-x: hidden;
    padding: 0;
    font-family: serif;
}

h1,h2,h3,h4,h5,p,a{
    font-family: serif;
}

body{
    padding: 0;
    margin: 0;
    background-color: #144835;
}

/* Gallery Section */
.gallery-section {
  background: #f5f5dc;
  min-height: 100vh;
  padding: 0;
  position: relative;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  background: #faf1e2;
}

/* Gallery Header */
.gallery-header {
  text-align: center;
  padding: 80px 0 60px 0;
  background: #144835;
  color: white;
  margin: 0 0 40px 0;
  border-radius: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-top: 40px;
  font-family: 'Jost', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Jost', sans-serif;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.filter-section {
  background: transparent;
  padding: 1.5rem 0;
  border-radius: 0;
  margin: 0 0 40px 0;
  border: none;
  box-shadow: none;
  position: sticky;
  top: 80px;
  z-index: 2;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.filter-container h3 {
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #144835;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.filter-btn {
  background: #ffffff;
  border: 2px solid #dee2e6;
  color: #495057;
  padding: 14px 28px;
  border-radius: 35px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(162, 193, 68, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #a2c144 0%, #8ba83a 100%);
  border-color: #a2c144;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(162, 193, 68, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #a2c144 0%, #8ba83a 100%);
  border-color: #a2c144;
  color: white;
  box-shadow: 0 8px 25px rgba(162, 193, 68, 0.5);
  transform: scale(1.05);
  position: relative;
  z-index: 1;
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

/* Gallery Item and Overlay */
.gallery-item {
  position: relative;
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.school-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 25px 20px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover .school-overlay {
  transform: translateY(0);
}

/* Gallery Grid */
.gallery {
  columns: 4 320px;
  column-gap: 25px;
  padding: 30px;
  padding-bottom: 4rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Lightbox Info */
.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 30px;
  text-align: center;
  font-family: 'Jost', sans-serif;
}

.lightbox-info h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 700;
  color: #a2c144;
}

.lightbox-info .school-location {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.lightbox-info .school-address {
  margin: 0 0 15px 0;
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}

.lightbox-info .school-website {
  display: inline-block;
  background: #a2c144;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
}

.lightbox-info .school-website:hover {
  background: #8ba83a;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #143e00;
  font-family: 'Jost', sans-serif;
}

.loading-indicator.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #a2c144;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-indicator p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.lightbox img {
  width: 90%;
  height: 90vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 45px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox .close:hover {
  color: #a2c144;
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.hidden {
  display: none;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 1001;
  transform: translateY(-50%);
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #a2c144;
  transform: translateY(-50%) scale(1.1);
}

.arrow.left {
  left: 30px;
}

.arrow.right {
  right: 30px;
}

@media (max-width: 768px) {
  .lightbox img {
    width: 95%;
    height: 85vh;
    border-radius: 15px;
  }
  
  .arrow {
    font-size: 35px;
    width: 50px;
    height: 50px;
    padding: 0 10px;
  }
  
  .arrow.left {
    left: 10px;
  }
  
  .arrow.right {
    right: 10px;
  }

  .close {
    font-size: 35px;
    right: 15px;
    top: 15px;
    width: 45px;
    height: 45px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-section {
    padding: 0;
  }
  
  .gallery-container {
    padding: 0 15px;
  }
  
  .gallery-header {
    padding: 20px 0;
  }
  
  .gallery-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 12px;
    padding-top: 30px;
  }
  
  .gallery-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: 0 20px;
    margin-bottom: 20px;
  }
  
  .filter-section {
    padding: 20px 0;
    margin: 0;
    border-radius: 0;
  }
  
  .filter-container {
    padding: 0 15px;
  }
  
  .filter-container h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 18px;
    font-size: 12px;
  }
  
  .gallery {
    columns: 2 150px;
    column-gap: 15px;
    padding: 15px;
    padding-bottom: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  }
  
  .gallery-item img {
    border-radius: 15px;
    height: 220px;
  }
  
  .gallery-item:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .school-overlay {
    padding: 18px 15px 15px;
    font-size: 13px;
  }
  
  .lightbox-info {
    padding: 20px;
  }
  
  .lightbox-info h3 {
    font-size: 20px;
  }
  
  .lightbox-info .school-location {
    font-size: 14px;
  }
  
  .lightbox-info .school-address {
    font-size: 12px;
  }
  
  .lightbox-info .school-website {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .lightbox img {
    width: 98%;
    height: 80vh;
    border-radius: 12px;
  }
  
  .arrow {
    font-size: 30px;
    width: 45px;
    height: 45px;
    padding: 0 8px;
  }
  
  .arrow.left {
    left: 8px;
  }
  
  .arrow.right {
    right: 8px;
  }

  .close {
    font-size: 30px;
    right: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
  }
  
  .gallery-header {
    padding: 25px 0;
  }
  
  .gallery-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
    padding-top: 70px;
  }
  
  .gallery-subtitle {
    font-size: clamp(0.8rem, 4vw, 1rem);
    padding: 0 15px;
    margin-bottom: 15px;
  }
  
  .filter-section {
    padding: 15px 0;
    margin: 0;
    border-radius: 0;
    z-index: 1;
  }
  
  .filter-container {
    padding: 0 10px;
  }
  
  .filter-container h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .filter-buttons {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 11px;
  }
  
  .gallery {
    columns: 1;
    column-gap: 0;
    padding: 10px;
    padding-bottom: 1.5rem;
  }
  
  .gallery-item {
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item img {
    border-radius: 12px;
    height: 200px;
  }
  
  .gallery-item:hover {
    transform: translateY(-3px) scale(1.01);
  }
  
  .school-overlay {
    padding: 15px 12px 12px;
    font-size: 12px;
  }
  
  .lightbox-info {
    padding: 15px;
  }
  
  .lightbox-info h3 {
    font-size: 18px;
  }
  
  .lightbox-info .school-location {
    font-size: 13px;
  }
  
  .lightbox-info .school-address {
    font-size: 11px;
  }
  
  .lightbox-info .school-website {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Scroll Animation for Gallery */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 35px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #144835, #2d5a47);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(20, 72, 53, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 72, 53, 0.4);
}

.back-to-top i {
    font-size: 18px;
}