/* === HERO SECTION === */
.gallery-hero {
  background-color: #fcee30;
  padding: 60px 20px;
  text-align: center;
  color: #333;
}

.gallery-hero h2 {
  font-size: 2.5em;
  color: var(--green);
  margin-bottom: 10px;
}

.gallery-hero p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* === FILTER TABS === */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.tab-button {
  background-color: var(--green);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  background-color: #004d00;
}

/* === GALLERY SECTIONS === */
.gallery-section {
  padding: 60px 20px;
  background-color: var(--white);
  border-bottom: 1px solid #ddd;
}

.gallery-section h3 {
  font-size: 2em;
  color: var(--green);
  margin-bottom: 30px;
  text-align: center;
}

/* === MEDIA GRID === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === MEDIA ITEM (Image + Caption) === */
.media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-item img:hover {
  transform: scale(1.03);
}

.caption {
  margin-top: 10px;
  font-size: 1em;
  color: #444;
  text-align: center;
}

/* === VIDEO EMBEDS === */
.media-grid iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: none;
}

/* === RESPONSIVE VIDEO HEIGHT === */
@media (max-width: 600px) {
  .media-grid iframe {
    height: 200px;
  }
}

/* === HIDE SECTIONS === */
.hidden {
  display: none;
}

/* === LOAD MORE BUTTON === */
.load-more-container {
  text-align: center;
  margin: 40px 0;
}

#loadMoreBtn {
  background-color: var(--green);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#loadMoreBtn:hover {
  background-color: #004d00;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  /* === SLIDESHOW CONTROLS === */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: 0.3s;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #fcee30; /* highlight on hover */
}
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* === SCROLL-TO-TOP BUTTON === */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--green);
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
}

.scroll-top.show {
  display: block;
}

.scroll-top img {
  width: 30px;
  height: 30px;
}


/* auto play video*/
.video-preview {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #000;
  overflow: hidden;
  position: relative;
}

.video-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === SLIDESHOW CONTROLS === */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: 0.3s;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #fcee30; /* highlight on hover */
}

/* Sponsor Button */
.sponsor-invite {
  text-align: center;
  margin: 60px 0;
}

#sponsorBtn {
  background-color: var(--green);
  color: white;
  padding: 14px 28px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#sponsorBtn:hover {
  background-color: #004d00;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.donate-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #fcee30;
  color: black;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

