body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #eaf6fb 0%, #f5f5f5 100%);
    min-height: 100vh;
}

.gallery-container {
  width: 98%;
  max-width: 1200px;
  margin: 32px auto;
  background: #f8fbfd;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(14, 121, 178, 0.08);
  padding: 24px 2vw 36px 2vw;
}

.gallery-container h1 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 2.4em;
  color: rgb(14, 121, 178);
  letter-spacing: 1px;
  font-weight: 700;
}

.gallery-container p {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.15em;
  color: rgb(14, 121, 178);
  opacity: 0.85;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-item {
  position: relative; /* Add this for button positioning */
  flex: 1 1 220px;
  max-width: 300px;
  min-width: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(14, 121, 178, 0.07);
  padding: 10px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(14, 121, 178, 0.10);
  transition: transform 0.3s;
  background: #eaf6fb;
  object-fit: contain; /* Changed from cover to contain */
}

.gallery-item img:hover,
.gallery-item video:hover {
  transform: scale(1.04);
}

/* Modern mute button styling */
.mute-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(14, 121, 178);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 121, 178, 0.12);
  opacity: 0.92;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  z-index: 2;
}

.mute-btn:hover, .mute-btn:focus {
  background: #0e7db2;
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

/* Only show the button if there's a video */
.gallery-item:not(:has(video)) .mute-btn {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .gallery-item img,
  .gallery-item video {
    max-height: 240px; /* Slightly taller for medium screens */
    object-fit: contain; /* Ensure full content is visible */
  }
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 10px 0 20px 0;
  }
  .gallery-item {
    max-width: 95vw;
    min-width: 90vw;
    padding: 4px;
  }
  .gallery-item img,
  .gallery-item video {
    max-height: 260px; /* Even taller for small screens */
    object-fit: contain; /* Ensure full content is visible */
  }
}