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

/*  filter section end*/
/* gallery section start  */
.gallery label {
    display: flex;
    text-align: center;
    background-color: #eff1f2;
    text-transform: uppercase;
    color: #000;
    justify-content: center;
    min-height: 46px;
    line-height: 46px;
}
.gallery img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}


/* gallery popup  */
.gallery-item {
    cursor: pointer;
}
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}
.popup a {
    text-decoration: none;
}
.popup-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 400px;
    border: 6px solid #fff;
    border-radius: 5px;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    transition: 0.6s ease;
    user-select: none;
}
.prev {
    left: 0;
}
.next {
    right: 0;
}
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.bg-yellow {
    background-color: #f7e338;
    padding: 0.3rem 1.4rem;
    border-radius: 20px;
}

/* gallery section end  */
.gallery h3{
    font-size: 2rem;
}


/* new css added */
.img-card {
    position: relative;
    overflow: hidden; /* Ensures that any overflow during hover is hidden */
}

.img-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.img-card label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.img-card:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
    filter: brightness(0.8); /* Darkens the image slightly */
}

.img-card:hover label {
    opacity: 1;
}
