* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 80px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

main {
  position: relative;
  width: 100%;
  height: 100%;
}

.footer {
  padding: 8px;
  text-align: center;
  margin: auto;
  clear: both;
  font-size: 12px;
  color: white;
}

/* Base Media Section Styling */
.media-section {
  background-color: #0e0e0e; /* Deep black */
  padding: 5rem 2rem;
  font-family: "Poppins", sans-serif;
  color: #f0f0f0;
}

/* Header Styling */
.media-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
}

.media-section h3 {
  text-align: center;
  font-size: 1.7rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 1px;
}

.media-section h3::after {
    content: "";
    display: block;
    width: 250px;
    height: 5px;
    background-color: #ffffff;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Vertical Layout */
.media-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

/* Card Styling */
.media-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  transition: transform 0.3s ease;
  border: 1px solid #2a2a2a;
}

.media-item:hover {
  transform: translateY(-6px);
}

/* Media Formats */
.media-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  display: block;
  object-fit: cover;
}

.media-item video,
iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  display: block;
  object-fit: cover;
}

/* Captions */
.media-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-align: center;
  color: #bbbbbb;
  font-weight: 300;
  font-style: italic;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .media-section {
    padding: 3rem 1rem;
  }

  .media-section h2 {
    font-size: 1.6rem;
  }

  .media-caption {
    font-size: 0.9rem;
  }
}
