#gallery {
    background-color: #f0f0f0;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
}

#image-gallery {
    margin-top: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image {
    margin-bottom: 20px;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    overflow: hidden;
}

.img-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    height: 250px;
}

.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
   
}

.img-overlay:hover {
    opacity: 1;
}

.img-overlay i {
    color: #fff;
    font-size: 24px;
}

.caption {
    display: none;
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
  
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: space-around;
    text-align: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
