/* General page styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Memory wall container using Masonry Grid */
#memory-wall {
  column-count: 4; /* Adjusts the number of columns */
  column-gap: 15px;
  padding: 20px;
}

/* Memory items (images & videos) */
.memory-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.memory-item:hover {
  transform: scale(1.05);
}

/* Image styling */
.memory-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Video container */
.video-container {
  position: relative;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* Video iframe */
.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: none;
}

/* Loading spinner */
.loading-spinner {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #memory-wall {
      column-count: 3;
  }
}

@media (max-width: 768px) {
  #memory-wall {
      column-count: 2;
  }
}

@media (max-width: 480px) {
  #memory-wall {
      column-count: 1;
  }
}

/* ============== GITHUB LINK STYLES ============== */
.github-link-container {
  text-align: center;
  margin: 30px 0;
}

.github-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #24292e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.github-link:hover {
  background-color: #0366d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}