/* Sponsors section dynamic cards */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}
.sponsor-grid img {
  max-width: 100%;
  height: auto;
  padding: 1rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.sponsor-grid img:hover {
  transform: scale(1.05);
}
.sponsor-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center center;
  background: #fff; /* Optional: to ensure clean background */
  padding: 10px;    /* Optional: give padding to avoid edge-hugging */
}
.sponsor-img-container {
  position: relative;
  text-align: center;
  background: #fff;
}

.sponsor-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.sponsor-fallback-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-weight: bold;
  font-size: 1.2em;
  display: none;
  pointer-events: none;
  padding: 0 10px;
  text-align: center;
}

.about-overlay {
  background-color: rgba(0, 0, 0, 0.65); /* dark overlay */
  color: #ddd; /* softer text, less harsh than pure white */
  max-width: 800px;
  margin: auto;
}
.about-overlay h2 {
  color: #fff;
}
.about-overlay p {
  color: #ccc;
}


@media (min-width: 768px) {
  .about-text {
    text-align: left;
  }
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-text .text-center {
  font-style: italic;
  color: #eee;
}

.about-text p {
  margin-bottom: 1.4rem;
}

.about-overlay {
  background-color: rgba(0, 0, 0, 0.75); /* was 0.65 */
  color:#ddd;
  max-width: 900px;
  margin: auto;
  backdrop-filter: blur(3px);
}
.about-overlay h2 {
  color: #fff;
}
.about-overlay p {
  color: #bbb;
}


#gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

#gallery-container > div {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  height: 250px;   /* fix height */
  position: relative;
}

#gallery-container img {
  width: 100%;
  height: 100%;        /* fill the container */
  object-fit: cover;   /* crop and zoom */
  display: block;
  transition: transform 0.3s ease;
  border-radius: 8px;
}


#gallery-container > div:hover img {
  transform: scale(1.03);
}

#videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


#videos-container > div {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  height: 250px; /* same fixed height */
  position: relative;
}

#videos-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: block;
}

#videos-container > div:hover img {
  transform: scale(1.03);
}

.video-play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: url('images/play-button.svg') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  opacity: 0.8;
}

.signature {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  margin-top: 2rem;
  text-align: right;
  color: #ffffff; /* Adjust if needed */
}
