.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 */
    overflow: hidden; /* ✅ This clips the circle */
    border-radius: 5px;
}


.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;
}

.photo-item:hover img {
    transform: scale(1.03);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}

.circle {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.circle-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    transform: translate(-55px, -16px);
    color: white;
    font-family: var(--text-font);
    line-height: 1.3;
}

.photo-item:hover .circle {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
    visibility: visible;
    opacity: 1;
}

.photo-item:not(:hover) .circle {
    visibility: hidden;
    opacity: 0;
}

.circle .year {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #f0f0f0;
}

.circle .flag {
    position: relative;
    height: 18px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.circle .country {
    font-size: 11px;
    color: #e0e0e0;
    margin-top: 4px;
}
