/* ========================================================
   Custom CSS for Maratona de Programação Project Section
   ======================================================== */

/* Reduce padding and height of the global top navbar */
.navbar {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  min-height: auto !important;
}

/* Adjust the navbar logo size to fit the compact header */
.navbar-logo {
  max-height: 1.6em !important;
}

/* Reduce vertical padding of header navigation links */
.navbar-nav .nav-link {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
}

/* Adjust top margin of content layout for the thinner navbar */
#quarto-document-content {
  margin-top: 1rem;
}

/* Gallery Grid Styles for Lightbox */
.maratona-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.maratona-gallery img {
  border-radius: 0.25rem !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  transition: transform 0.2s !important;
  cursor: pointer;
}
.maratona-gallery img:hover {
  transform: scale(1.03) !important;
}

.maratona-gallery p {
  margin: 0 !important;
  display: contents;
}
