/* =====================================================
   CONTENEDOR GENERAL Y LAYOUT
===================================================== */

.gallery-body {
  background: white;
}

.gallery-container {
  margin: 0 auto;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-links {
    text-align: center;
    margin-bottom: 0.5em !important;
  }

  .sidebar-links a {
    padding: 0px 8px !important;
  }

  .gallery-grid {
    padding: 0em 0.2em 0.5em 0.2em !important;
  }

  .filter-sidebar {
    padding: 0em 0.2em 0em 0.2em !important;
    order: -1;
  }
}

/* =====================================================
   HEADER
===================================================== */

.topbar-fb {
  background: blue;
  color: white;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.topbar-fb h1 {
  color: white;
  font-size: 1rem;
  margin: 0;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar-container {
  margin-bottom: 1em;
}
.filter-sidebar {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  padding-right: 0.8em;
}

.filter-sidebar p {
  font-size: 0.8rem;
  line-height: 1.1rem;
}

.filter-sidebar h3 {
  background: blue;
  color: white;
  font-size: 0.8rem;
  padding: 4px 6px;
  margin-bottom: 0.5em;
}

.filter-sidebar a {
  display: block;
  color: blue;
  text-decoration: none;
  padding: 0px 4px;
}

.filter-sidebar a:hover {
  text-decoration: underline;
  background: #e7f0ff;
}

.filter-sidebar a.sub {
  padding-left: 10px;
  font-size: 0.8rem;
}

.sidebar-links {
  margin-bottom: 1em;
  background:  rgb(199 199 199);
}

.sidebar-links a {
  display: inline-block;
  padding: 0px 15px;
  text-decoration: none;
  font-size: 0.9rem;
  color: white;
  font-weight: bold;
}

/* =====================================================
   MASONRY FAKE (column layout)
===================================================== */

.gallery-grid {
  column-count: 1;
  column-gap: 10px;
  padding: 0em 0em 0.5em 0.8em;
}

@media (min-width: 992px) {
  .modal-lg, .modal-xl {
      --bs-modal-width: 1500px !important;
      max-width: 95vw !important;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 3;
  }
}

/* =====================================================
   IMÁGENES
===================================================== */

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 8px;
  break-inside: avoid;
  background: #f1f1f1;
  border: 1px solid #bcbcbc;
}

.gallery-img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: 0.2s;
}

.gallery-img:hover {
  opacity: 0.95;
}

.gallery-info {
  background: #dcdcdc;
  border-top: 1px solid #bcbcbc;
  padding: 2px 6px;
  font-size: 0.7rem;
  color: #333;
  line-height: 1.2;
}

.gallery-img:hover {
  opacity: 0.9;
  /*transform: scale(1.01);*/
}

/* =====================================================
   MODAL
===================================================== */

#modalImage {
  max-height: 90vh;
  width: auto;
  border: 1px black solid;
}