
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 15px;
    max-width: 900px;
    margin: auto;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.bottom-margin {
    margin-bottom: 20px;
}

.banner {
    position: relative;
    width: 100vw;
    max-height: 250px; /* Adjust the height to your liking */
    height: 30vh; /* 30% of the viewport height */
    overflow: hidden;
}

/* Make sure the image fully covers the banner */
.banner img {
    width: 100%;
    height: 120%; /* Make it slightly larger to compensate for the parallax shift */
    object-fit: cover;
}

/* Ensure no extra margins from surrounding containers */
.content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}



.photo-item {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Default aspect ratio 4:3 */
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Center-crop the image */
    object-position: center; /* Center the image */
    border-radius: 5px;
}


/* Double column images */
.photo-item[data-span="1-2"] {
    grid-column: span 2;
    padding-top: 37.5%; /* Aspect ratio for double-column images (8/3) */
}

/* Double row images */
.photo-item[data-span="2-1"] {
    grid-row: span 2;
    padding-top: 150%; /* Aspect ratio for double-row images (4/6) */
}

/* For images spanning both rows and columns */
.photo-item[data-span="2-2"] {
    grid-column: span 2;
    grid-row: span 2;
    padding-top: 75%; /* Aspect ratio for both (8/6 = 4/3) */
}

.photo-item[data-span="1-3"] {
    grid-column: span 3;
    padding-top: 25%; /* Aspect ratio for triple-column images (6/3) */
    grid-row: span 1;
}