body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.image {
    position: relative;
    margin: 1.0em;
    /* overflow: hidden; */
    overflow: visible;

    /* height: 30vh; */
}



.image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;

    filter: blur(0em);
  transition: filter 0.5s;


  min-height: 20vh;
}

.image img:hover {
    transform: scale(1.1);
    transition: transform 0.3s, filter 0.5s;
}
/* .image img:hover::after { */
/*     background: inherit; */
/* filter: blur(20px); */
/* position: absolute; */
/* right: 0; left: 0; top: 0; bottom: 0; */
/* content: 'm; */
/* } */

.image img[data-src] {
    margin: 1.0em;
  filter: blur(1.0em);
    background: gray;
    width: 400px;
    height: 300px;
}


.placeholder {
    /* background: gray; */
  /* filter: blur(0.2em); */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.image:hover .overlay {
    opacity: 1;
}

.overlay a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.overlay a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Add CSS for the lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2;
    text-align: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    margin: 20px auto;
    display: block;
}

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