body, html {
    margin: 0;
    padding: 0;
    background-color: #FFE6E6; /* Light Pink background */
    color: #000000; /* Black text for readability */
    font-family: 'Arial', sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    background-color: #FF2626; /* Bright Red background */
    color: #FFFFFF; /* White text */
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

header h1, header p {
    margin: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three items per row */
    gap: 20px; /* Adjust the gap between the cards as needed */
    padding: 20px 0; /* Top and bottom padding */
    margin: 0 auto; /* Center the grid if the container is wider */
    max-width: 1200px; /* Max-width of the gallery for large screens, adjust as needed */
}

.item {
    background-color: #BD1616; /* Dark Red background for items */
    border-radius: 10px;
    overflow: hidden;
    position: relative; /* Positions the caption over the image */
}

.item a {
    display: block;
    width: 100%;
    padding-top: 100%; /* Padding-top as a percentage of the width creates a square */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px; /* Rounded corners for the link */
    overflow: hidden; /* Ensures no overflow from the content */
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for the caption */
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Two items per row for smaller desktops and tablets */
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr; /* One item per row for mobile */
    }
}