/* ---- General Styles ---- */
.gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: .25rem;
    transition: transform 0.3s ease, z-index 0.3s ease; /* Include z-index transition */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Hover Effects ---- */
.gallery-item a:hover {
    transform: scale(1.1);
    z-index: 10; /* Bring the hovered item to the front */
}



.gallery-item .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    display: block; /* Hidden by default */
    transition: all 0.5s ease-in-out;
    opacity: .5;
}

.gallery-item:hover .icon {
    opacity: 1;
    font-size: 3rem;
}



/* ---- Icons ---- */
