.custom-gallery2-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Full width items (1st, 4th, 7th images) */
.item-1,
.item-4 {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 2nd and 3rd images (65% width) */
.item-2,
.item-3,
.item-7 {
    width: 65%;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

/* 5th and 6th images in the same container (65% width in total) */
.item-5-6 {
    display: flex;
    justify-content: space-between;
    width: 65%;
    height: 100vh;
}

.item-5,
.item-6 {
    width: 49%;
    /* Divide the 65% width between the two */
    background-size: cover;
    background-position: center;
}

.custom-gallery2-layout .gallery2-item {
    background-position: center;
    /* This will be overridden by inline styles with dynamic focus points */
}

@media (max-width: 1024px) and (min-width:426px){

    .item-2,
    .item-3,
    .item-7 {
        width: 100%;
    }

    .item-5,
    .item-6 {
        width: 100%;
    }

    .item-5-6 {
        width: 100%;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width:425px){
    .item-1, .item-2 , .item-3 , .item-4, .item-7{
        height : 40vh;
        width : 100%;
    }
    
    .item-5-6 {
        width: 100%;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .item-5,
    .item-6 {
        width: 100%;
    }
    
    .item-1, 
    .item-4 {
         background-attachment : unset;
    }
}