body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 0; /* No space between images */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the entire area without distortion */
    display: block;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 800px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr); /* Stack images in a single column for smaller screens */
    }
}
