/*body {
    background-color: #434c50;
    min-height: 100vh;
    font: normal 16px sans-serif;
    padding: 40px 0;
}*/

.container.gallery-container {
    /*background-color: #fff;*/
    color: #35373a;
    min-height: 100vh;
    padding: 30px 50px;
}

.gallery-container h1 {
    text-align: center;
    margin-top: 50px;
    font-family: 'Droid Sans', sans-serif;
    font-weight: bold;
}

.gallery-container p.page-description {
    text-align: center;
    margin: 25px auto;
    font-size: 18px;
    color: #999;
}

.tz-gallery {
    padding: 40px;
}

/* Override bootstrap column paddings */
.tz-gallery .row > div {
    padding: 2px;
}

.tz-gallery .lightbox img {
    width: 100%;
    border-radius: 0;
    position: relative;
}

.tz-gallery .lightbox:before {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -13px;
    margin-left: -13px;
    opacity: 0;
    color: #fff;
    font-size: 26px;
    font-family: 'Glyphicons Halflings';
    content: '\e003';
    pointer-events: none;
    z-index: 9000;
    transition: 0.4s;
}


.tz-gallery .lightbox:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(46, 132, 206, 0.7);
    content: '';
    transition: 0.4s;
}

.tz-gallery .lightbox:hover:after,
.tz-gallery .lightbox:hover:before {
    opacity: 1;
}

.baguetteBox-button {
    background-color: transparent !important;
}

.lightbox-none {
	display: none;
}

/* ===== Mosaico Responsivo ===== */
    .gallery {
      column-count: 5;
      column-gap: 1rem;
	  max-width: 95%;
	  margin-top: 4.5em;
    }

    .gallery-item {
      margin-bottom: 1rem;
      display: inline-block;
      width: 100%;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .gallery-item:hover {
      transform: scale(1.02);
    }

    .gallery img {
      width: 100%;
      border-radius: 6px;
      display: block;
    }

    /* ===== Responsividade ===== */
    @media (max-width: 1200px) {
      .gallery { column-count: 4; }
    }
    @media (max-width: 992px) {
      .gallery { column-count: 3; }
    }
    @media (max-width: 768px) {
      .gallery { column-count: 2; } /* mobile: 2 colunas */
    }
    @media (max-width: 576px) {
      .gallery { column-count: 2; max-width: 95%; margin-top: 1em;
	  }
	  .modal-prev {
		left: 0.3em !important;
      }
      .modal-next {
        right: 0.3em !important;
	  }
	  .modal-close {
		  right: 0 !important;
	  }
    }

    /* ===== Modal ===== */
    .modal-dialog {
      max-width: 90vw;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
    }

    .modal-content {
      background-color: transparent;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .modal-body {
      text-align: center;
      padding: 0;
    }

    .modal-body img {
      max-height: 80vh;
      max-width: 90vw;
      width: auto;
      height: auto;
      border-radius: 8px;
      margin: auto;
      display: block;
    }

    /* ===== Setas de navegação ===== */
    .modal-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0, 0, 0, 0.4);
      color: white;
      border: none;
      font-size: 2rem;
      padding: 7px 12px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 10;
      transition: background 0.3s ease;
    }

    .modal-nav:hover {
      background-color: rgba(0, 0, 0, 0.7);
    }

    .modal-prev {
      left: 15em;
    }

    .modal-next {
      right: 15em;
    }
	
	 /* ===== Botão Fechar ===== */
    .modal-close {
      position: absolute;
      top: 10px;
      right: 15em;
      background-color: rgba(0, 0, 0, 0.6);
      border: none;
      color: white;
      font-size: 1.8rem;
      font-weight: bold;
      line-height: 1;
      padding: 4px 10px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 20;
      transition: background 0.3s ease;
    }

    .modal-close:hover {
      background-color: rgba(0, 0, 0, 0.8);
    }

    /* Legenda opcional */
    .modal-caption {
      color: white;
      text-align: center;
      margin-top: 10px;
      font-size: 1rem;
    }