.gallery-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 20px;
  width: 80%;
  
  
}

.gallery-modern .item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor:default
}
.gallery-modern .item2 {
    width: 900px;
    left: 27%;
    top: 19%;
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1000;
    text-shadow: 2px;
    padding: 10px 10px;
    pointer-events: none;
}
.gallery-modern .item3 {
    width: 900px;
    left: 43%;
    top: 34%;
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1000;
    text-shadow: 2px;
    padding: 10px 10px;
    pointer-events: none;
}

.gallery-modern .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.gallery-modern .item:hover img {
  transform: scale(1.10);
  filter: brightness(.7);
}

/* Tamaños especiales */
.gallery-modern .item.wide { grid-column: span 2; }
.gallery-modern .item.tall { grid-row: span 2; }
.gallery-modern .item.wide.tall {
  grid-column: span 2;
  grid-row: span 2;
}


/* Responsive */
@media (max-width: 768px) {
  .gallery-modern .item.wide,
  .gallery-modern .item.tall,
  .gallery-modern .item.wide.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.texto_com{
    text-shadow: 2px 2px 4px black, /* Sombra principal */
                -2px 2px 4px black, /* Sombra superior-izquierda */
                2px -2px 4px black, /* Sombra inferior-derecha */
                -2px -2px 4px black; /* Sombra inferior-izquierda */
}


.block-text {
  white-space: pre-wrap;
}