/* * { border: 1px solid red } */

body.concurso { 
  background: url(img/bg-paper.webp) top center;
  background-size: 130% auto }

@media(max-width:767.98px){
body.concurso{
  background: url(img/bg-paper-xs.webp) no-repeat fixed;
  background-position: -40px top;
  background-size: 115% auto }
}

main, section { overflow-x: hidden }

.home .navbar{
  --flex-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

header .navbar-toggler { border: 0 }

header.navbar {
  /* --flex-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); */
  --flex-navbar-toggler-border-color: rgba(0,0,0,.5);
  --flex-navbar-padding-y: 1rem }

header .nav-link {
  color: #000;
  transition: 300ms all;
}

.home header .nav-link {
  color: #FFF;
}

header .nav-link:hover,
header .nav-link.active {
  color: var(--flex-danger) !important;
}

@media(max-width:991.98px){

    .navbar-brand img { height: 60px }
  
    header .navbar-collapse { 
      /* background:#F9F8F2 url(img/bg.webp) fixed center; */
      background: var(--flex-light);
      background-size: 110% auto;
      width: 100%;
      position: fixed;
      z-index: 100000;
      top: 0;
      left: 0  }
  
    header .navbar-nav {
      justify-content: center;
      width: 100%;
      height: 100vh }  
  
    header .nav-link { 
      text-align: center;
      color: #000 !important;
      padding: .75rem 3rem !important; 
      width: 100% }

    header a { font-size: 120% !important }

    header .dropdown { width: 100% }

    header .dropdown-menu {
      border: 0;
      border-radius: 0;
      width: 100%;
      background-color: rgba(0,0,0,.125) }

    header .dropdown-menu a { 
      text-align: center;
      padding: .5rem 1rem;
      color: #FFF }
}

#hero .h1 { font-size: clamp(3rem, 4rem + 2vw, 5vw) !important}


@media(max-width:767.98px){
  #hero .translate-middle { transform: translate(-50%, -150%) !important }
  #hero { background: #000 }
  #hero img { opacity: .75 }
}

.mosaic {
  column-gap: 1rem;
}

.mosaic-md-2 {
    column-count: 2;
}

.mosaic-md-3 {
    column-count: 3;
}

.mosaic-md-4 {
    column-count: 4;
}

.mosaic > div {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    margin-bottom: 3rem;
    break-inside: avoid;
    grid-row: 1 / -1;
    grid-column: 1;
}
#photos .mosaic > div:hover { z-index: 2 }

#photos .mosaic img {
  transition: 300ms all;
  scale: 1
}

#photos .mosaic > div:hover img { 
  scale: 1.15}

@media(max-width:767.98px){
  .mosaic-1 {
      column-count: 1;
  }

  .mosaic-2 {
    column-count: 2;
  }
}

.mosaic p { margin: 0 }




.posts .col > article { 
  top: 0;
  transition: all 300ms }

.posts .col > article:hover {
  background: #FFF;
  top: -.5rem;
  box-shadow: 0 0 0 1.5rem rgba(255,255,255,1), 0 .5rem 2rem 1.5rem rgba(0,0,0,0.075)
}

.post-body { font-weight: 500 !important; }

.post-body h2, 
.post-body h3 {
  letter-spacing: -1px;
  margin: 2.5rem 0 1rem } 

  
.post-body h2:first-child, 
.post-body h3:first-child { margin-top: 0 } 

.bg-dark .post-body *:not(h2, h3) { color: rgba(255,255,255,.5) }

.bg-dark .post-body strong,
.bg-dark .post-body em  { color: rgba(255,255,255,1) }

.post-body em {
  font-weight: normal;
  font-family: "Libre Baskerville", serif;
  font-style: italic }

.post-body blockquote {
  padding: 0 2rem;
  margin: 2rem 0;
  border-left: 5px solid var(--flex-primary);
}

.post-body blockquote > *,
.post-body li > * { margin: 0 }

.post-body li  { margin-bottom: .5rem !important }
.post-body li > * { margin-top: .5rem !important }

.post-body li:has(br)  { margin-bottom: 1rem !important }

.post-body pre {
  background: var(--flex-light);
  padding: 2rem;
  border-radius: .5rem;
  overflow-x: auto;
  line-height: 1.5;
}