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

body{
  background-color: #E0DDDD;
  font-family: Helvetica;
}

.galeria-masonry-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px;
}

.galeria-masonry {
  column-count: 4;
  column-gap: 1em;
}

.galeria-masonry img {
  width: 100%;
  margin-bottom: 1em;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.galeria-masonry img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  position: relative;
  z-index: 10;
}

.btn-agregar {
    display: inline;
    margin: 0 auto;
    width: 50%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-bottom: 20px;
    text-align: center;
}

.btn-agregar:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 1200px) {
  .galeria-masonry {
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .galeria-masonry {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .galeria-masonry {
    column-count: 1;
  }
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background: #fff;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-title {
  font-size: 24px;
  margin-top: 10px;
}

.modal-description {
  font-size: 16px;
  margin-top: 5px;
  color: #333;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Flechas */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 10px;
  cursor: pointer;
  user-select: none;
}

.modal-arrow.left {
  left: 20px;
}

.modal-arrow.right {
  right: 20px;
}

