.gallery-page {
  padding-top: 100px;
  min-height: 100vh;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ff0033 0%, #990000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  color: var(--gray-text);
  font-size: 1.1rem;
}

.gallery-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: 30px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--house-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* Decorations Section */
.decorations-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 51, 0.05) 0%,
    rgba(153, 0, 0, 0.05) 100%
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 0, 51, 0.2);
}

.decorations-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.decorations-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--house-gradient);
  border-radius: 3px;
}

.decorations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.decoration-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 0, 51, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.decoration-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--house-primary);
  box-shadow: var(--shadow-red-hover);
}

.decoration-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.decoration-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.decoration-card:hover .decoration-image {
  transform: scale(1.1);
}

.decoration-info {
  padding: 1.2rem;
  text-align: center;
}

.decoration-year {
  font-size: 1rem;
  color: var(--house-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.decoration-year i {
  color: var(--house-primary);
}

.year-section {
  margin-bottom: 3rem;
}

.year-heading {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 0, 51, 0.3);
  position: relative;
}

.year-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--house-gradient);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.photo-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 51, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-5px);
  border-color: var(--house-primary);
  box-shadow: var(--shadow-red-hover);
}

.photo-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-image {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-info {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-info {
  transform: translateY(0);
}

.photo-title {
  color: white;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.photo-year {
  color: var(--house-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.photo-year i {
  font-size: 0.8rem;
}

.photo-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--house-gradient);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
}

.loading-spinner i {
  font-size: 2.5rem;
  color: var(--house-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--house-primary);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--house-primary);
  transform: translateY(-50%) scale(1.2);
}

.lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  color: white;
  font-size: 1rem;
  text-align: center;
}

.lightbox-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.lightbox-year {
  color: var(--house-light);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .decorations-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .lightbox-info {
    bottom: -50px;
    font-size: 0.9rem;
  }
}

/* March Past Section */
.marchpast-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 51, 0.05) 0%,
    rgba(153, 0, 0, 0.05) 100%
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 0, 51, 0.2);
}

.marchpast-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.marchpast-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--house-gradient);
  border-radius: 3px;
}

.marchpast-year-group {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
}

.marchpast-year-heading {
  font-size: 1.5rem;
  color: var(--house-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
  padding-right: 1rem;
}

.marchpast-result-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--house-gradient);
  border-radius: var(--radius-full);
  border: none;
}

.result-text {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.marchpast-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.marchpast-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 0, 51, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.marchpast-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--house-primary);
  box-shadow: var(--shadow-red-hover);
}

.marchpast-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.marchpast-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.marchpast-card:hover .marchpast-image {
  transform: scale(1.1);
}

.marchpast-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.marchpast-card:hover .marchpast-overlay {
  opacity: 1;
}

.marchpast-info {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.marchpast-card:hover .marchpast-info {
  transform: translateY(0);
}

.marchpast-category {
  color: var(--house-primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.marchpast-year-display {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.marchpast-year-display i {
  color: var(--house-primary);
}

/* Lightbox Result Styles */
.lightbox-result {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.result-badge {
  background: var(--house-gradient);
  color: white;
  padding: 0.3rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marchpast-images-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .lightbox-result {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}