@include laptop-landscape-medium {

    .eltdf-instagram-list-holder {
        $columns_number: ('four');

        @for $i from 0 to length($columns_number) {
            &.eltdf-il-#{nth($columns_number,$i+1)}-columns {
                $column_width: 100% / 3;

                .eltdf-il-item {
                    width: $column_width;
                }

                @media only screen and (min-width: $ipad-landscape-plus-pixel) {

                    .eltdf-il-item {

                        &:nth-child(3n+1) {
                            clear: both;
                        }
                    }
                }
            }
        }
    }
}

@include ipad-landscape {

    .eltdf-instagram-list-holder {
        $columns_number: ('six');

        @for $i from 0 to length($columns_number) {
            &.eltdf-il-#{nth($columns_number,$i+1)}-columns {
                $column_width: 100% / 3;

                .eltdf-il-item {
                    width: $column_width;
                }

                @media only screen and (min-width: $phone-landscape-plus-pixel) {

                    .eltdf-il-item {

                        &:nth-child(3n+1) {
                            clear: both;
                        }
                    }
                }
            }
        }
    }

    .eltdf-instagram-list-holder {
        $columns_number: ('three', 'four', 'five');

        @for $i from 0 to length($columns_number) {
            &.eltdf-il-#{nth($columns_number,$i+1)}-columns {

                .eltdf-il-item {
                    width: 50%;
                }

                @media only screen and (min-width: $phone-landscape-plus-pixel) {

                    .eltdf-il-item {

                        &:nth-child(2n+1) {
                            clear: both;
                        }
                    }
                }
            }
        }
    }

    .eltdf-instagram-list-holder {
        &.eltdf-il-with-effect {
            .eltdf-il-item {
                margin-top: 0!important;
            }
        }
    }
}

@include phone-landscape {

    .eltdf-instagram-list-holder {

        .eltdf-instagram-feed {
            .eltdf-il-item {
                width: 100% !important; // !important is set to override all other stronger selectors
            }
        }
    }
}