/*Galería de imagenes la Cañada*/

.gallery {
    overflow: hidden;
    background: url(../imagenes/fondofree2.jpg)
    center center/cover no-repeat;
    height: auto;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

h1 {
    color: #fefae0;
    font-family: Amita;
    margin: 20px auto;
    width: 450px;
    font-size: 3rem;
    text-align: center;
    border-bottom: 10px double #bc6c25;
}
  
.gallery-img {
    overflow: hidden;
    width: 450px;
    height: 300px;
    margin: 15px;
    border: 10px solid #fefae0;
    -webkit-filter: sepia(100%);
    filter: sepia(100%);
    transition-duration: 1s;
}

.gallery-img:hover {
    border: 5px solid #fff;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-filter: none;
    filter: none;
}

.edit {
    background-color: #bc6c25;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    min-width: 100vw;
    margin-top: 20px;
}

  /* The Modal (background) */

.modal {
    display: none; 
    position: fixed;
    z-index: 1; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
    overflow: hidden;
}

/* Modal Content (image) */

.modal-content {
    margin:0 auto;
    display: block;
    width: 80%;
    max-width: 700px;
    padding-top: 150px;
    max-height: 80%;
}

/* Caption of Modal Image */

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */

.modal-content, #caption { 
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */

.close {
    position: absolute;
    top: 90px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Next & previous buttons */

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    border: none;
    background-color: transparent;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  font-size: 26px;
    background-color: rgba(0,0,0,0.8);
}

@media screen and (max-width:800px){
  .container{
    width:95%;
    margin: 0 auto;
  }
  h1 { 
    width: 100%;
    margin: 10px auto;
    line-height: 1.4;
  }
  .gallery-img{
    margin: 10px;
  }
  .edit{
    margin-top: 20px;
  }
}