:root {
  --primary-color: #E65100;       /* Deep Saffron */
  --secondary-color: #283593;     /* Indigo Blue */
  --background-color: #F9F5EC;    /* Off White */
  --text-color: #4E342E;          /* Dark Brown */
  --accent-color: #689F38;        /* Leaf Green */
  --highlight-color: #8B0000;     /* Maroon Red */
}

/* Navigation for gallery topics */
.gallery-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px auto;
  flex-wrap: wrap;
}
.gallery-nav button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.gallery-nav button:hover {
  background-color: var(--text-color);
  transform: scale(1.05);
  color: white;
  transition: all 0.4s ease-in;
}

.gallery-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gallery-container h1,
.gallery-container h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  text-align: center;
  margin-top: 40px;
}


.gallery-container p {
    font-size: 1.1rem;
    color: #333;
    text-align: justify;
    padding: 0 10px;
    line-height: 1.8;
  }
  

.gallery-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed), filter var(--transition-speed);
  cursor: pointer;
}

.gallery-container img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-container ul {
  list-style-type: none;
  padding: 0;
  animation: fadeIn var(--transition-speed) ease-in-out;
}

.gallery-container li {
    font-size: 1.05rem;
    background-image: linear-gradient(135deg, #ffffff 60%, #f1f1f1);
    border-left: 5px solid var(--accent-teal);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
  }
  
  .gallery-container li:hover {
    transform: translateX(5px);
  }
  

  .gallery-container li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 15%;
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s ease;
  }
  
  .gallery-container li img:hover {
    transform: scale(1.1);
  }
  

.highlight {
  color: var(--accent-teal);
  font-weight: bold;
  animation: highlightFlash 1.5s infinite;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-color);
}

.gallery-container > div {
  background-color: #fff;
  border-left: 6px solid var(--primary-color);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  animation: fadeInUp var(--transition-speed) ease-in-out;
}

.gathering-2025-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gathering-2025-container img {
  flex: 1 1 calc(25% - 20px);
  max-width: 300px;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
  border-radius: 10px;
  animation: zoomIn 0.6s ease;
}

.gathering-2025-container img:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.fullscreen img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.fullscreen.hidden {
  display: none;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes highlightFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gathering-2025-container img {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 10px;
  }

  .gallery-container li {
    flex-direction: column;
    align-items: flex-start;
  }

  .gathering-2025-container img {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .gallery-container h1 {
    font-size: 1.5rem;
  }
  .gallery-container h2 {
    font-size: 1.2rem;
  }
  .gathering-2025-container img {
    flex: 1 1 100%;
  }
}
