.container {
    position: relative;
}

.grid-container {
    position: relative;
    display: inline-block; /* Ensure container size matches image size */
}

.grid-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.grid-container::after {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    background-clip: content-box; /* Clip the background to the content box */
}
